aspose file tools*
The moose likes Java in General and the fly likes Developing an application like JConsole Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Developing an application like JConsole" Watch "Developing an application like JConsole" New topic
Author

Developing an application like JConsole

Shikha Upadhyaya
Ranch Hand

Joined: Aug 17, 2011
Posts: 70

Hi,

Are there any freeware libraries available to develop applications like JConsole?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3099
    
  33

You want to build another JConsole? or you want to make use of the features of JConsole?

If its the later you can check out the JConsole API. I dont know if you have heard of VisualVM, which I think has more features than JConsole. Another useful link for VisualVM

If it is the former- that you want to build another JConsole, you might want to explore the JMX package.

Mohamed Sanaulla | My Blog
Shikha Upadhyaya
Ranch Hand

Joined: Aug 17, 2011
Posts: 70

Mohamed Sanaulla wrote:You want to build another JConsole? or you want to make use of the features of JConsole?

If its the later you can check out the JConsole API. I dont know if you have heard of VisualVM, which I think has more features than JConsole. Another useful link for VisualVM

If it is the former- that you want to build another JConsole, you might want to explore the JMX package.

I have an application which is continuously running few scripts in the background. As the application is running, the hourly report of its performance is recorded in log files automatically. Now, I have to take these log files as input and generate a runtime display of the same like in JConsole. So I guess I have to go with the former. Am I right?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3099
    
  33

Similar post? May be its not, just that subject is same?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3099
    
  33

Shikha Upadhyaya wrote:
I have an application which is continuously running few scripts in the background. As the application is running, the hourly report of its performance is recorded in log files automatically. Now, I have to take these log files as input and generate a runtime display of the same like in JConsole. So I guess I have to go with the former. Am I right?

Which means your application would be different from JConsole right? You have some data which is already in your logs and you fetch it and display graphically. JConsole would come into picture when you want to inspect your Java applications. But in this case you already have some scripts running and recording the performance (what data is being recorded?) so you dont really need JConsole or any such monitoring tool.
By the way how are you fetching the required performance data?
Shikha Upadhyaya
Ranch Hand

Joined: Aug 17, 2011
Posts: 70

Mohamed Sanaulla wrote:Which means your application would be different from JConsole right? You have some data which is already in your logs and you fetch it and display graphically. JConsole would come into picture when you want to inspect your Java applications. But in this case you already have some scripts running and recording the performance (what data is being recorded?) so you dont really need JConsole or any such monitoring tool.
By the way how are you fetching the required performance data?

I used the JSch library to retrieve the log files from the remote system where the application is running. I have stored these files in the local system in the form of text files. I have been able to parse one of the file and get all the numericals in it too. I displayed it using the JFreechart library. But that is a very basic kind of displaying. What I intend to have have something like JConsole.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3099
    
  33

So the idea is to build something like JConsole- which is nothing but Swing based application with charts having live data. So you would have to fetch the data at some interval and bind it to the chart data.

You need to extend your basic application to add the features supported by JConsole- They use JTabbedPane, JMenu, JTree, JLIst and so on.

This is turing out to be similar to this thread.
Shikha Upadhyaya
Ranch Hand

Joined: Aug 17, 2011
Posts: 70

Mohamed Sanaulla wrote:So the idea is to build something like JConsole- which is nothing but Swing based application with charts having live data. So you would have to fetch the data at some interval and bind it to the chart data.

You need to extend your basic application to add the features supported by JConsole- They use JTabbedPane, JMenu, JTree, JLIst and so on.

Ok. I will start off and get back when I am stuck.

Mohamed Sanaulla wrote:This is turing out to be similar to this thread.

Yes I had posted this. I had not got a satisfactory conclusion. Hence re-posted. Thanks for your replies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Developing an application like JConsole