get memory usage

View: New views
2 Messages — Rating Filter:   Alert me  

get memory usage

by Igor Nemilentsev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi. Could you give me some tips how I can
get memory usage of computer(OS Linux) with Groovy.
I am looking for same values as a command `free` gives.
I only able to do a parsing of result of command
or there are another means?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: get memory usage

by Jochen Theodorou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Igor Nemilentsev schrieb:
> Hi. Could you give me some tips how I can
> get memory usage of computer(OS Linux) with Groovy.
> I am looking for same values as a command `free` gives.
> I only able to do a parsing of result of command
> or there are another means?

Groovy does not provide anything for that... but doesn't Java have those
mxbeans?  but I cannot find that anyone of those would give that information

bye blackdrag

--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email