Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to specify maximum memory usage for Java VM in Tomcat?

843840May 2 2002 — edited Dec 4 2003
Does any one know how to setup memory usage for Java VM, such as "-Xmx256m" parameter, in Tomcat?

I'm using Tomcat 3.x in Apache web server on Sun Solaris platform. I already tried to add the following line into tomcat.properties, like:
wrapper.bin.parameters=-Xmx512m

However, it seems to me that this doesn't work. So, how about if my servlet will consume a large amount of memory that exceeds the default 64M memory boundary of Java VM?

Any idea will be appreciated.

Haohua
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2004
Added on May 2 2002
4 comments
401 views