Service Desk Practitioners Forum
cancel

how to increase JVM size

Highlighted
Ulto
Outstanding Contributor.

how to increase JVM size

Hi Guys,

I need your help please.
I had a problem with ServiceDesk and I found out that I should increase the size of JVM.
this is the solution:
If you start the application server using the sd_server.bat batch file do the
following:
Edit the sd_server.bat file in the application server \bin directory. Add new
parameters to this file, or use the pre-configured settings by removing the rem
comment and adding the rem comment to the original pre-configured settings. The
settings shown in this excerpt from sd_server.bat are intended for a 1 GB
machine:

java -XX:MaxNewSize=64M -XX:NewSize=64M -Xms200M -Xmx1000M -cp lib\classloader.
jar com.hp.startup.Bootstrap com.hp.ifc.bus.AppServer -showconsoleoutput %1 %2 %3 %4 %5 %6 %7 %8 %9

rem java -cp lib\classloader.jar com.hp.startup.Bootstrap com.hp.ifc.bus.
AppServer -showconsoleoutput %1 %2 %3 %4 %5 %6 %7 %8 %9


If you start the application server using the application server service do the
following:
Edit the installservice.bat file in the application server \bin directory. Add
new parameters to this file, or use the pre-configured settings by removing the
rem comment and adding the rem comment to the original pre-configured settings.
The settings shown in this excerpt from installservice.bat are intended for a 1
GB machine:

sd_serverservice.exe -install "hp OpenView service desk 4.5 server" DEFAULT -XX:
MaxNewSize=64M -XX:NewSize=64M -Xms200M -Xmx1000M -Djava.class.path="%
SD_SERVERHOME%lib\classloader.jar" "-Duser.dir=%SD_SERVERHOME%\" -start com.hp.
startup.Bootstrap -params com.hp.ifc.bus.AppServer -stop com.hp.startup.Bootstrap
-method shutdown -params com.hp.ifc.bus.AppServer -current "%SD_SERVERHOME%\"

rem sd_serverservice.exe -install "hp OpenView service desk 4.5 server" DEFAULT -
Djava.class.path="%SD_SERVERHOME%lib\classloader.jar" "-Duser.dir=%SD_SERVERHOME%\" -start com.hp.startup.Bootstrap -params com.hp.ifc.bus.AppServer -stop com.hp.
startup.Bootstrap -method shutdown -params com.hp.ifc.bus.AppServer -current "%
SD_SERVERHOME%\"


As a general guideline, set -XX:NewSize= to one third of the amount of memory
allocated for one JVM, and set -XX:MaxNewSize= to two thirds of the same memory allocation.


Please guys, can anyone tell me how to increase the JVM size? which parameter? & what should i put?

Thanks in advance.
4 REPLIES
smatador
Honored Contributor.

Re: how to increase JVM size

Hi Elias,
Do the test, and apply what the guideline says
" set -XX:NewSize= to one third of the amount of memory allocated for one JVM, and
set -XX:MaxNewSize= to two thirds of the same memory allocation"

Or for example, if you box have 2G, you could try to duplicate the size of the 1G example
MaxNewSize=64M -XX:NewSize=64M -Xms200M -Xmx1000M
try for 2G
MaxNewSize=128M -XX:NewSize=128M -Xms400M -Xmx2000M after you could see what 's happenning with you JVM.
Ulto
Outstanding Contributor.

Re: how to increase JVM size

Hi,

Thank you for your reply.
I've tried your solution but it didn't work.

how can i know the size of JVM??? so I could put the new size & max size to 1/3 and 2/3 of the memory???

Ulto
Outstanding Contributor.

Re: how to increase JVM size

anyone??? please i need some help.

Thanks
The Pike
Acclaimed Contributor.

Re: how to increase JVM size

Elias,

JVM stands for Java Virtual Machine. JVM does not have a size. You mean JVM memory heap size. If I remember correctly, by default these values are 2MB for garbage collection generations, and 64MB for max heap size.

How can you tell the values are not being applied if you can't determine what the heap size is?

Of course, if you are changing the values in installservice.bat you need to reinstall the service for the new values to pick up. If you are using sd_server.bat, then there should be no problem with it.

Also, I'd be careful with smatador's recommendation, particularly because some operating systems do not allow for large amounts of memory to be assigned to a single process (e.g. Win2k and Win2k3 without special switches).

Hope this helps!
Do not forget to assign points for the answer.

The Pike