• 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

Tomcat keeps grows much larger than -Xmx

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

Long time reader, first time poster. My problem is this I've set the both the Xmx and the Xms, but tomcat seems to grow way larger than the Xmx and starts off smaller than Xms. When doing a ps I get "/home/java/bin/java -Xms256m -Xmx256m ..." so it looks like I set the the JAVA_OPTS correctly. But when I look at it in top I this at start up:

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
16767 tomcat 25 0 125M 125M 20756 S 0.0 12.6 1:01 0 java

And this after about 20 hours up uptime:

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
16767 tomcat 25 0 511M 510M 20756 S 0.0 25.4 51:22 0 java


I'm not sure if top is showing me the wrong numbers or what I should be looking at. At first I thought it had to do with memory leaks with c libraries (A.K. oracle libraries), but I've updated them all and they seem fine. I have never gotten an "OutOfMemmory" exception and everything seems to run fine, but the memory consumption is starting to bother me.

I'm using Tomcat 5.5.16 and java 1.5.0 R6. Any help would be much appreciated.

James
 
James T. King
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another note, when I go into the manger app it says:

Free memory: 26.30 MB Total memory: 255.31 MB Max memory: 255.31 MB

Which would make me think it's working correctly, but top still says it's up around 511M which is a big discrepency.

Thanks again.
 
reply
    Bookmark Topic Watch Topic
  • New Topic