• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Increasing JVM memory in TOMCAT 5.0

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

In our project, we increased the JVM memory in cogifuration panel of TOMCAT 5.0 using -server -Xmx 512m option.

IN our web application when we tried to see the allocated JVM memory
it was not showing the allocation 512m.

Is the TOMCAT not recognizing the set -Xmx option in configuration
or can we set anywhere else in the configuration files ?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by rr suryae:
Hi -

In our project, we increased the JVM memory in cogifuration panel of TOMCAT 5.0 using -server -Xmx 512m option.

IN our web application when we tried to see the allocated JVM memory
it was not showing the allocation 512m.

Is the TOMCAT not recognizing the set -Xmx option in configuration
or can we set anywhere else in the configuration files ?



There are two settings commonly used for specifying the heap size.
Xmx and Xms. The former (which is what you set) specifies the max heap size.
The latter specifies the initial heap size.
Try setting them both to the same thing and checking with the Tomcat manager app (click the Server Settings link)

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic