Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat keeps grows much larger than -Xmx

 
James T. King
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic