Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 4.x memory

 
Bart Saelen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bart Saelen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so when tomcat is installed as a service it won't use CATALINA_OPTS?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic