LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2009, 07:56 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
Java monitoring


Hi there,

I have a Java program which I want to monitor its runtime, and memory allocation. Can anybody suggest any tool for doing that? I tried to use jconsole, but I do not know how to find what is the process id of this program. Furthermore, the application is quiet small, and I have not placed it in jar file.

Thank you.
 
Old 05-14-2009, 08:44 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Jconsole doesn't require the application to be in a jar file.

Even while you are unable to locate your application PID, jconsole still allows you to select from the application main class name.
 
Old 05-15-2009, 10:36 AM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
Dear jlliagre,

I would like to get the chance to ask you something. The case is that my application is quiet fast so when I start the application I can not really find the time to start the jconsole before the application terminates. I therefore put in the main method Thread.sleep(10000) in order to find the time to load jconsole. As I noticed, when the application terminates jconsole terminates as well. Do you know how it is possible to keep jconsole running after the end of application (in order to look at the statistics)? Furthermore, is anyway that I can first start jconsole without having started my application? Do you or anybody knows any other monitoring tool quiet similar to jconsole that work can work like that?

Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitoring free memory with enterprise monitoring application Steelb Linux - Enterprise 2 02-13-2008 10:10 AM
LXer: Performance and monitoring enhancements in the latest Java LXer Syndicated Linux News 0 10-01-2007 05:50 PM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM
LXer: Sun Microsystems Introduces NetBeans Profiler Milestone 11 for Optimized Java Application Run-Time Monitoring LXer Syndicated Linux News 0 12-23-2005 05:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration