Page 1 of 1

Linux virtual memory not increasing with -Xms?

Posted: 19 May 2008, 02:12
by Gamebrew
I tried this a few times already it always says my VM Max Memory is 66M in the logs and on the Admin Tool. My dedicated server has 1G of memory and usually has 550M available. I use the command "./sfs restart" to get running and in my "start.sh" I have:

java -Xms128M -Xmx512M -cp "./:./sfsExtens ...

Am I missing something?

Posted: 19 May 2008, 06:48
by Lapo
Yes, there are two ways of starting the server under Linux
start.sh launches the JVM directly
sfs starts the server as daemon

If you use sfs you should do the following:
Open your Server/cfg/wrapper.conf file
Scroll down until you get to these lines:

Code: Select all

# Java Additional Parameters
wrapper.java.additional.1=-Dfile.encoding=UTF-8
wrapper.java.additional.2=-Djava.util.logging.config.file=logging.properties
and add the following:

Code: Select all

wrapper.java.additional.3=-Xms64M
wrapper.java.additional.4=-Xmx256M
Save and restart.

Posted: 19 May 2008, 13:41
by Gamebrew
It works great, thanks Lapo!