You can adjust the startup parameters to increase the max heap when
WorldServer starts. For 32 bit environments, the max heap can be up to approximately 1/3 of the available memory, while for 64-bit environments there is no such restriction. These are the values to allocate
2 GB: XX:MaxPermSize=256m -Xmx2048m
4 GB: XX:MaxPermSize=256m -Xmx4096m
8 GB: XX:MaxPermSize=256m -Xmx8192mTo apply the change, follow these steps:
- Stop WorldServer from the services console, namely stop the Idiom Process Monitor.
- Open a command-line window on the WorldServer server. The typical WS installation directory is C:\Program Files\Idiom\WorldServer.
- Navigate to the \\WorldServer\svc directory.
- Back up the
idiom.cfg file
. - Edit the
idiom.cfg
file to modify the -Xmx1024m
value to the level you need it to be, for example -Xmx2048m
. The file contents looks like this:
Display Name: Idiom-Jakarta
Command Line: C:\\PROGRA~1\\Idiom\\WORLDS~1\\jre\\bin\\java.exe -server -XX:MaxPermSize=256m -Xmx1024m -XX:+UseConcMarkSweepGC -
XX:+CMSClassUnloadingEnabled -Djava.endorsed.dirs=C:\PROGRA~1\Idiom\WORLDS~1\tomcat\common\endorsed -classpath C:\PROGRA~1\Idiom\WORLDS~1\tomcat\bin\bootstrap.jar;C:\PROGRA~1\Idiom\WORLDS~1\tomcat\bin\tomcat-juli.jar;C:\PROGRA~1\Idiom\WORLDS~1\jre\lib\tools.jar -Dcatalina.base=C:\PROGRA~1\Idiom\WORLDS~1\tomcat -Dcatalina.home=C:\PROGRA~1\Idiom\WORLDS~1\tomcat -Djava.io.tmpdir=C:\FTS_SH~1\temp org.apache.catalina.startup.Bootstrap start ;Working Dir:Retries: 10
- From the command line, unconfigure the service:
idiomrun -unconfig Idiom-Jakarta
- Reconfigure the service to pick up the new value:
idiomrun -config idiom.cfg
- Restart WorldServer.
Note:You can list the available commands for
idiomrun
by typing
idiomrun -?
in the command line.
Also, you can get an idea about your memory usage with
debug.jsp
. Modify the WorldServer URL to match this URL example:
http://[server]:[port]/ws/debug.jsp?secret=[Database User ID] - for example:
http://mytestserver:8080/ws/debug.jsp?secret=dbadminThe information output starts server and memory information:
General Information:
Operating System: | Windows 2003 (5.2) |
WorldServer Instance ID: | 439272702 |
Total Memory: | 759M |
Used Memory: | 320M |
Available Memory: | 439M |
JDK: | 1.5.0_11 (Sun Microsystems Inc.) |