Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Developing an application like JConsole

 
Shikha Upadhyaya
Ranch Hand
Posts: 70
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Are there any freeware libraries available to develop applications like JConsole?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Shikha Upadhyaya
Ranch Hand
Posts: 70
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Similar post? May be its not, just that subject is same?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic