This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes how to change JVM setting(-Xms-Xmx) of tomcat 5.0.19 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to change JVM setting(-Xms-Xmx) of tomcat 5.0.19" Watch "how to change JVM setting(-Xms-Xmx) of tomcat 5.0.19" New topic
Author

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

Ambily G Nair
Greenhorn

Joined: Aug 21, 2004
Posts: 28
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Nov 27, 2008
Posts: 3
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to change JVM setting(-Xms-Xmx) of tomcat 5.0.19
 
Similar Threads
Configuring Tomcat at DOS command Line
database connection pool and http connection thread capacity
Tomcat5 default root directory
JBoss 3.2.1
New to JSP(How to use JSP 2.4 in servlet-Tomcat 5.0.19)