I installed version 5.5 and java 1.5 on a system running windows server 2003 with 1.5G of RAM. I created a system environment variable JAVA_OPTS = -Xms128m -Xmx512m to set the initial heap size to 128M and the maximum to 512M. After creating the variable, I restarted the tomcat service. Despite this, my servlet is running out of memory. I added code to the init method to log the total memory and free memory available to the JVM
Total memory 6.6650112E7 Free memory 2.2165176E7
The total memory indicates that it is still set to 64M. How do I increase it?
When I click on the start menu option to configure tomcat (or the one to monitor tomcat), I get the message "an instance of 'tomcat5' application is already running". I tried stopping the server and I get the same message.
Can I configure these in a tomcat config file or only by the configuration program?
Thanks for you help. Problem solved. There was a tomcat administration process (not application) already running. How it was statred, I do not know. After stopping this process, I could get to the admin screen to configure the memory. I restarted the tomct service and it works