Oct 18, 2007 5:25 AM
Increase java memory
-
Like (0)
Hi
How i can increase java memory because default is to low??
************************************************************************
Memoria de Java
9,55 MB of 63,31 MB (15,1%) used
************************************************************************
regards
Have a look at this tutorial: http://www.igniterealtime.org/community/docs/DOC-1033
You're probably interested in the section that is called 'heap settings'.
This is an excerpt from the Openfire Installation Guide found in your documentation folder of the Openfire server install folder:
Advanced users may wish to pass in parameters to the Java virtual machine (VM) to customize the runtime environment of Openfire. You can do this by creating vmoptions files in the bin/ directory of your Openfire installation. For the Windows service, you'd create a new text file called openfire-service.vmoptions. Each parameter to the VM should be on a new line of the file. For example, to set the minimum heap size to 512 MB and max VM heap size to 1024 MB, you'd use:
-Xms512m -Xmx1024m
To create parameters for the normal launcher, create a file called openfired.vmoptions (since the openfire.exe launcher invokes the openfired.exe executable to actually start the server).
I running openfire on fedora 8 x86_64, I have create a file called openfired.vmoptions but don't increase the memory, also create another file called openfire-service.vmoptions but don't work, i have restart the service after every change. I create the files in /opt/openfire/bin
regards
as a work around, I ususally uncomment the line in bin/openfire:
INSTALL4J_ADD_VM_PARAMS="-Xmx20g"
note: 20g is what I have.
I have not figure out why *.vmoptions file is sometimes not read.
This is the solution
Add a line like this in /etc/sysconfig/openfire
OPENFIRE_OPTS="-Xms256m -Xmx512m"
Add a line like this in /etc/sysconfig/openfire
OPENFIRE_OPTS="-Xms256m -Xmx512m
******************************************************************
This way worked to me in a Centos 5. tnx
Hello
I'm using OpenFire on Ubuntu 8.04.
How can i increase the Java Memory???
Many thx by advance.
Hello and many thx for your answer
I've checked this page and i've added the string in "System Properties" but it unfortunately stay at 63.31 Mb
Could you please help more???
Many thx
You dont have to add this to your System Properties. You should read that doc carefully. There is a link to Openfire Settings. Here, a quote:
Advanced users may wish to pass in parameters to the Java virtual machine (VM) to customize the runtime environment of Openfire. You can do this by creating vmoptions files in the bin/ directory of your Openfire installation. For the Windows service, you'd create a new text file called openfire-service.vmoptions. Each parameter to the VM should be on a new line of the file. For example, to set the minimum heap size to 512 MB and max VM heap size to 1024 MB, you'd use:
-Xms512mTo create parameters for the normal launcher, create a file called openfired.vmoptions (since the openfire.exe launcher invokes the openfired.exe executable to actually start the server).
-Xmx1024m
I'm really sorry but i don't watch any link to Openfire Setting in the quote!
I've installed Openfire with the .deb find here:
http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openf ire_3.6.4_all.deb
on an Ubuntu 8.04
Where is the directory of the OpenFire installation??
I'm sorry... to insist
I'm not sure about the deb installation. Maybe you should try to ask LG (the author of these docs) directly.
One more doc http://www.igniterealtime.org/community/docs/DOC-1033
At the bottom there are instructions about openfired.vmoptions file.