Linux virtual memory not increasing with -Xms?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
Gamebrew
Posts: 57
Joined: 25 May 2007, 06:18

Linux virtual memory not increasing with -Xms?

Post 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?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
Gamebrew
Posts: 57
Joined: 25 May 2007, 06:18

Post by Gamebrew »

It works great, thanks Lapo!
Post Reply