I've downloaded Sigar API ( http://support.hyperic.com/display/SIGAR/Home ) and would like to use it in a project to get information about different processes which are running.
My problem is that I can't really find some useful code snippets to learn from and the javadoc from their website isn't of much help, because I don't know what I should be looking for.
Do you have any ideea where I could find more information?
If you are using Windows 7 try doing something
To find the
pid
(which is needed to find out information about a certain process), you can use aProcessFinder
. The method to find a single process pid isfindSingleProcess(String expression)
. Example:The expression syntax is this:
Where:
More info here: http://support.hyperic.com/display/SIGAR/PTQL
In their latest package, they give a lot of usage examples under
bindings\java\examples
. Check them out.