Where would you add that line 6 in a windows 2003 install ?
Hi Richard,
where on Windows do you have an /opt/openfire/bin path?
openfire-service.vmoptions or openfired.vmoptions should help one on Windows to set JVM parameters.
LG
I can’t seem to find /opt/openfire anywhere in this openfire folder, don’t know if I’ve missed something but
I think I have been through every sub folder and cannot find it
I have tried all the above things nothing works for me and facing lot of problem any bady here no the perfect solution on this
I am using centos and openfire 3.3.3
amol
in /etc/sysconfig/openfire
add:
OPENFIRE_OPTS="-Xms256m -Xmx512m"
or whatever settings you want.
tried all that things mentioned here in this discussion no use
Hi Amol,
do you mind posting the first 10 lines of the openfire start script which you did modify to set the Xmx value?
LG
if you used the /etc/sysconfig/openfire option you would need to restart openfire for the settings to be noticed. In fact for any of the solutions here you would need to restart openfire.
service openfire restart
(on Fedora + Redhat based systems)
Hi All
Following are the starting lines of my server please correct me If I am doing any misstake
- $RCSfile$
- $Revision: 1194 $
- $Date: 2005-03-30 13:39:54 -0300 (Wed, 30 Mar 2005) $
- tries to determine arguments to launch openfire
- OS specific support. $var must be set to either true or false.
#!/bin/sh # # INSTALL4J_ADD_VM_PARAMS="-Djava.net.preferIPv4Stack=true -Xms512m -Xmx1200m -Xss128k -Xoss128k -XX:ThreadStackSize=128" cygwin=false;
darwin=false;
linux=false;
case “uname
” in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true
if ; then
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi
;;
Linux*) linux=true
jdks=ls -r1d /usr/java/j*
for jdk in $jdks; do
if ; then
JAVA_HOME="$jdk"
break
fi
done
;;
esac
Hi Amol,
are you using the rpm install? I never saw an Openfire script which starts like this so I wonder if this one accepts this parameter.
You may want to look for the line which starts with “nohup … java … startup.jar” and place your Xmx value after java. It should then look similar to
cd ${OPENFIRE_HOME}/logs
nohup ${JAVA_HOME}/bin/java -Xms64m -Xmx128m -jar ../lib/startup.jar >../logs/SDTOUT.log 2>../logs/SDTERR.log &
LG
yes I am using rpm installer
this script is located in \opt\oenfire\bin\openfire.sh
can you please guide me how & what should I install or may i need to replace this script with any other \
please guide Looking forword for your help ASAP
amol
Hi All
This problem is resolved by adding OPENFIRE_OPTS="-Xmx1512m"
in /etc/sysconfig/openfire file I restarted the services after that
Thanks a lot all of you for your support Now arround 1200 users are accessing this server from 3 different location in India
and IT is working nice
Thank you all
I just ran into a problem where my Java VM memory was pegged. I increased it from 64mb to 256mb and all is well for now. My question is what should be an acceptable limit for 400 users? Also are switching to Spark as the client if that makes a difference for this?
Thanks
my observation it should be twice of the user size in your case I will suggest 800 to 1000MB
sbrissen forums@jivesoftware.com wrote: amolkel,
A new message was posted in the thread “Increasing Java Memory”:
http://www.igniterealtime.org/community/message/164485
Author : sbrissen
Profile : http://www.igniterealtime.org/community/people/sbrissen
Message:
For FreeBSD users, add a line similar to the following to /etc/rc.conf:
openfire_javargs="-Xms512m -Xmx1024m"
Then bound Openfire:
/usr/local/etc/rc.d restart
Hello everybody,
what about Solaris 10 version of openfire ? Which config file and which settings should I change ?
Thank you.
Below mine settings on fbsd:
openfire_javargs="-Xms256M -Xmx512M -Djava.net.preferIPv4Stack=true"
but my system is not very big implementation so suppose these memory settings (default ?) would be sufficient.**
**
Perfect, it works for me too.
I use CentOS 7
Where would you add that line 6 in a windows 2003 install ?