how to increase memory in Jazz Server?

I have a CLM 5.0.2 (with express setup) in tomcat running as a windows service. It is by default 4G in memory, how can I increase it? when I increase the the "-Xmx4GB" to "-Xmx5GB" in the "tomcat7w.exe" my service does not start up it has problems.
I'm increasing it correctly? do I need to increase it somwhere else?
PD: My server has 16 GB , what do you recommend in memory if i'm using the server just for CLM . 40% of the 16GB? like 6GB or 50% 8 gb.
Thanks
I'm increasing it correctly? do I need to increase it somwhere else?
PD: My server has 16 GB , what do you recommend in memory if i'm using the server just for CLM . 40% of the 16GB? like 6GB or 50% 8 gb.
Thanks
Accepted answer

It may have nothing to do with the JVM setting if the Tomcat Windows service cannot start. For CLM, you need to follow a quite lengthy procedure to configure the environment to make it work. The JVM heap size is configured at step 8. Don't skip step 9 otherwise the configuration there may override that at step 8.
https://jazz.net/help-dev/clm/topic/com.ibm.jazz.install.doc/topics/t_run_rqm64_win_service.html
If you don't have to use Windows service, just use the server.startup.bat script to manually start Tomcat and you can increase the JVM heap size by modifying the -Xmx setting in this script.
https://jazz.net/help-dev/clm/topic/com.ibm.jazz.install.doc/topics/t_run_rqm64_win_service.html
If you don't have to use Windows service, just use the server.startup.bat script to manually start Tomcat and you can increase the JVM heap size by modifying the -Xmx setting in this script.
One other answer

Hello,
If you have nothing else running on the server, you should be able to allocate up to 50% of the RAM for CLM.
Martha (Ruby) Andrews
Jazz Foundation L3 Development Team Lead
If you have nothing else running on the server, you should be able to allocate up to 50% of the RAM for CLM.
Martha (Ruby) Andrews
Jazz Foundation L3 Development Team Lead
Comments

Hi Martha
And where should I put the new value?

Hi Cesar,
I have not done this myself. I see that Tomcat documentation lists a command line argument:
https://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
And this stack overflow conversation has recommendations:
http://stackoverflow.com/questions/5984540/how-do-i-increase-memory-on-tomcat-7-when-running-as-a-windows-service
I hope that helps!
Ruby