aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 4.x memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 4.x memory " Watch "Tomcat 4.x memory " New topic
Author

Tomcat 4.x memory

Bart Saelen
Greenhorn

Joined: Aug 18, 2006
Posts: 9
Hi

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?

thanks
Bart
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.

These get stored in the registry.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bart Saelen
Greenhorn

Joined: Aug 18, 2006
Posts: 9
I need to know how what is the best option for tomcat 4, because the application does not run on tomcat 5.
But thanks anyway.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.
Bart Saelen
Greenhorn

Joined: Aug 18, 2006
Posts: 9
so when tomcat is installed as a service it won't use CATALINA_OPTS?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 4.x memory