JavaFX - System Monitor

Teknoloji

26 Jun 2009

In my previous post - LineChart. Its using simulated data. Just thought of updating that to show live CPU and Memory information.

This is my tribute to all    users

For Applet mode, click on above image

For standalone mode

One of the way to implement this is to use some existing command line utilities. I used - top - command to get the CPU and Memory usage information. Execute top using ProcessBuilder, get the Process instance. Get the output stream from process and read the output of top command. Now parse this content (a bit tricky, each version had its own output format) to get the information.

Note: The implementation is not concrete (as it relies on simple text parsing), may not work on some platforms or locales due to difference in output of top command. It will not work on platforms which does not support top command.

Try it out and let me know feedback

Source/Kaynak : http://blogs.sun.com/rakeshmenonp/entry/javafx_system_monitor

Comment Form

Content In Different Language


Recent Comments


  • dima: Guys, thank you very much it helped me a lot ! [...]
  • jitendra: i tried install ubuntu virtualbox 3.0 on my acer aspire 5610 laptop. i get message " dependency is [...]
  • Gurkan Erdogdu: You can also look at Apache Incubator JSR 299 implementation called OpenWebBeans. It has lots of sam [...]
  • Gurkan Erdogdu: You can also Apache Incubator JSR 299 implementation called OpenWebBeans. It has lots of samples sho [...]
  • vijayanand: Please share your experence getting TOGAF certified? What are the pre-requite eligibility... Basic [...]
  • Our Scores