jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes JVM heap size setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JVM heap size setting" Watch "JVM heap size setting" New topic

JVM heap size setting

Ambily G Nair

Joined: Aug 21, 2004
Posts: 28

We have seen your posting.Actually we are also facing certain problem with the JVM heap size.We are working on tomcat 5.0.19 .We want to change the heap size setting .When I tried to make a change in Jprobe profiler heap size setting it is working there perfectly.But in jmeter testing again the previous heap size is taken .How can I change the heap size and the most important question is where I have to put the command.
In certain site I have seen the command given below.

set JAVA_OPTS = -server -Xms512m -Xmx512m -XX ermSize=32m -XX:MaxPermSize=64m
Shall I use this command.If yes where I have to put this? Is it in catalina.bat?

Please help me..

Thank you.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
Setting JAVA_OPTS in catalina.bat should work for Tomcat started as an application.
I agree. Here's the link: http://aspose.com/file-tools
subject: JVM heap size setting
It's not a secret anymore!