• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Developing an application like JConsole

 
Ranch Hand
Posts: 70
Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Are there any freeware libraries available to develop applications like JConsole?
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Similar post? May be its not, just that subject is same?
 
Mohamed Sanaulla
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic