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

Memory usage of java application with tomcat

 
Chethan Sharma
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Java Web based application(struts) is deployed to Tomcat and I need to find the memory usage / disk usage of this application.

Please let me know how to find the memory usage for a web based application.

Thanks,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The disk usage should be easy.
Your OS should have tools for recursively measuring the directory structure of your app.

Memory is another story.
There's heap memory, permgen, etc..
They all, of course, will vary according the load on your system.

Java 5 ships with the jConsole app which does a nice job of displaying memory usage in graphs.

The Server Status page in the Tomcat Manager app will show you your current, max, and available heap space.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat manager is highly recommended. In addition to memory it will show you the status of the Thread pool and request statistics. Very handy for spotting potential bugs.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic