Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

how to change JVM setting(-Xms-Xmx) of tomcat 5.0.19

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am working on tomcat 5.0.19 server and I want to change the Heap size.I know that the command is JVM_OPTIONS="-Xincgc -Xms128m -Xmx256m" but I don't know how to use it and where we have put this change.I am looking forward for any help.


Thank you.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Catalina.bat I find the note:

But I don't find JVM_OPTIONS mentioned anywhere in my Tomcat 5 directory - in code or text file. Where did you find the information?
It appears that the installation did create some entries in the Registry, so I suspect thats where the parameter goes.
With a Google search I found this discussion.
If I were you I would certainly backup the registry before trying to fiddle with the settings.
[ August 21, 2004: Message edited by: William Brogden ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what you should you do, is to:
- set the file $CATALINA_HOME/bin/catalina.bat
- look for JAVA_OPTS
- add -Xms128m -Xmx256m
my file contains this:

set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
-Xms128m -Xmx256m
 
reply
    Bookmark Topic Watch Topic
  • New Topic