aspose file tools*
The moose likes Tomcat and the fly likes Memory usage of java application with tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Memory usage of java application with tomcat" Watch "Memory usage of java application with tomcat" New topic
Author

Memory usage of java application with tomcat

Chethan Sharma
Ranch Hand

Joined: Mar 22, 2006
Posts: 59
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,


chaithu
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory usage of java application with tomcat