• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ambily G Nair
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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 ]
 
Mohamed Ennahdi El Idrissi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic