Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By doWhile

Thread: CPU usage without JNI

  1. #1
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default CPU usage without JNI

    Hi all,

    I wonder there is a way to find the CPU usage without using any native approach. Search the web and I found a nice library, known as Sigar.

    Home - Sigar - Hyperic Support

    However seem it doesn't support dynamic updates. Did anyone of you have a better solution?

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: CPU usage without JNI

    May not be as comprehensive as you like, and I haven't used them myself, but java 7 has some updates to get the Cpu load:
    Monitoring and Management Interface for the Java Platform
    You also might want to check out this blog for a description, code, and possible problems associated with the above class
    Hidden Java 7 Features – System and Process CPU Load Monitoring
    Fubarable and Eranga like this.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default Re: CPU usage without JNI

    Sounds good. Actually I didn't move to 7 and not aware what going on really in details. Seems it is time to move lol.

    Anyway, thanks for the hint. I'll have a look and let you know.

Similar Threads

  1. multipart usage
    By shreya in forum Advanced Java
    Replies: 2
    Last Post: 04-06-2010, 03:26 AM
  2. SerialModemGateway() Usage
    By ajaxjagadish in forum Advanced Java
    Replies: 1
    Last Post: 03-25-2010, 08:24 AM
  3. Help with methods usage
    By bdario1 in forum New To Java
    Replies: 1
    Last Post: 03-18-2010, 02:26 AM
  4. useDelimiter usage
    By reis3k in forum New To Java
    Replies: 4
    Last Post: 12-24-2009, 11:01 AM
  5. Usage of HTTPS
    By Sayed in forum Advanced Java
    Replies: 8
    Last Post: 12-06-2008, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •