File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Monitoring standalone java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Monitoring standalone java program" Watch "Monitoring standalone java program" New topic
Author

Monitoring standalone java program

indu pai
Greenhorn

Joined: Dec 29, 2004
Posts: 17
Hi,

I have a jar file that contains many java files. It has a main class, and many service classes. The main class is invoked at scheduled intervals, through shell scripts.
There are multiple applications calling this main class in my jar file. There is a chance that at the same time more than one application invokes the
jar file. I would like to monitor the thread and memory utilization for this jar file. IS it possible? Which tool is best to use in this scenario?

Regards,
Indu
Ramon Anger
Ranch Hand

Joined: Apr 19, 2011
Posts: 56

Please try JConsole. There are tabs for memory usage and threads. See http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html


Blackbelt on BlackBeltFactory.com.
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 852
Or you can also use visualvm if you use jdk 1.6 update 7 for solaris and update 4 for mac. It does what jconsole and adds a few new features. I have recently been using it to monitor tomcat however it works on any jvm.

http://visualvm.java.net/description.html


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Monitoring standalone java program
 
Similar Threads
Jar Files
Can't find ..\lib\ext\ packages
JAR from NetBeans
How to make jar file executeable ?
Jar - more than 1 main