• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 4.x memory

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so when tomcat is installed as a service it won't use CATALINA_OPTS?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic