• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Any Memory Usage Limitation for Tomcat 5 or 6?

 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is their any built in memory usage limitation for Tomcat 5? For example, we can add a JAVA_OPTS and specify -Xms and -Xmx to tell the JVM the maximum memory space that can be used. But if I have 8 GB RAM in my server and I tell Xms to be 4 GB and Xmx to be 8 GB to Tomcat 5, will it be able to utilize 8 GB memory if required? Is there a limitation around it for Tomcat 5 (like maximum 2 GB will be used)? And for Tomcat 6? I tried to find the answer in tomcat documentation without success.

Your comments will be appreciated.
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ashik,

the amount of memory Tomcat can use mainly depends on the JVM and OS. If you want to use multiple GBs of RAM you will have to use a 64 bit OS/JVM. Then you can set the catalina options for Tomcat to higher values than the default for 32 bit JVMs (which is depending on the OS ~ 1,5 GB).

Marco
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For more detail of the limitations of 32-bit systems, and a graphic of how the memory is laid out: http://java-monitor.com/forum/showthread.php?t=570

Kees Jan
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ashik, keep in mind that a larger heap will cause garbage collection pauses to increase because there is more heap to scan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic