Load Balancing - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Load Balancing

CoolrizCoolriz Posts: 3Member
Hi all,
I am trying to access the system level resources from a java program .. can any body guide me how to do it .. I just can't find any method...
I specifically need information about the CPU usage ... number of processes running on the system ... and the percentage of free mem available on the OS level (not the JVM level)....

I need this info very urgently... any sort of help, comment will be greatly acknowledged ...
thanxxx in advance
:)

Comments

  • kc2keokc2keo Posts: 110Member
    : Hi all,
    : I am trying to access the system level resources from a java program .. can any body guide me how to do it .. I just can't find any method...
    : I specifically need information about the CPU usage ... number of processes running on the system ... and the percentage of free mem available on the OS level (not the JVM level)....
    :
    : I need this info very urgently... any sort of help, comment will be greatly acknowledged ...
    : thanxxx in advance
    : :)
    :

    Well. If your trying to access system level resources I think you should use c or c++. In java I dont believe you could access System level resources. Did you try looking through the java api?

    George

    <------------------------------------------>

    Reach me at:

    AIM IM: kc2keo
    EMAIL: [email protected]

  • CodeSmithCodeSmith Posts: 2Member
    : : Hi all,
    : : I am trying to access the system level resources from a java program .. can any body guide me how to do it .. I just can't find any method...
    : : I specifically need information about the CPU usage ... number of processes running on the system ... and the percentage of free mem available on the OS level (not the JVM level)....
    : :
    : : I need this info very urgently... any sort of help, comment will be greatly acknowledged ...
    : : thanxxx in advance
    : : :)
    : :
    :
    : Well. If your trying to access system level resources I think you should use c or c++. In java I dont believe you could access System level resources. Did you try looking through the java api?
    :
    : George
    :
    : <------------------------------------------>
    :
    : Reach me at:
    :
    : AIM IM: kc2keo
    : EMAIL: [email protected]
    :
    : well if your app is going to run on a linux box, you can just read the files in the /proc filesystem, since the files in there contain the cpu usage, mem usage, amount of procceses. /proc = proccesses. Have no clue how you would do this. But I know what the filesystem is used for in linux. Hope this helps.

Sign In or Register to comment.