• 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

Monitoring standalone java program

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 56
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please try JConsole. There are tabs for memory usage and threads. See http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic