I have installed tomcat 4.1.24 as a service under windows 2003. Now the application running on that tomcat has some memory problems. I have set the -Xmx512M -Xms265M parameters in the CATALINA_OPTS environment variable. But does a Tomcat installed as service use the CATALINA_OPTS variable? I also found something about setting those params in the registry via regedit. I'm not sure what i schould do, use CATALINA_OPTS or use the registry way? Can someone help me with this?
I'm not sure about 4.1 but in Tomcat 5x, if you install as a service with the .exe installer, you also get the option to install the start menu items. In the start menu items is a config screen where you can change the memory settings.
When you run Tomcat as a window service, the Java settings are stored in the registry. I don't know if Tomcat 4 provides an easy way to alter those settings. Since you're using it, you might want to try installing it with the Start Menu Options enabled (if they exist in 4x) and see if the Tomcat config screen gives you a way to alter them.
If not, you may need to alter them with regedit.
Joined: Aug 18, 2006
so when tomcat is installed as a service it won't use CATALINA_OPTS?