Hi Jez,thanks for your reply. I have another question.I’m using this code:
running processes:
- java –jar myApp.jar myArg1 myArg2
- ....
Java code:
ProcessInfo[] processInfo = monitor.processTable();
String myCommand = processInfo.getCommand
Result/Linux :
=> myApp.jar myArg1 myArg2 ...
Result/windows is without parameter :
=> myApp.jar
So I’m looking for some solution for it – how can I display also parameters/argumets on Windows platform?
thanks for advice.
ivan
On 2 March 2010 10:45, Jez Humble <j...@india.com> wrote:Hey IvanJavaSysMon tells you information about the operating system's processes. It has no special information about the JVM, or about threads inside a Java process. If you're running several Java processes, you can see these within JavaSysMon. To get process info, do something like this:JavaSysMon monitor = new JavaSysMon();
ProcessInfo[] processInfo = monitor.processTable();
For more information, see the javadoc: http://jezhumble.github.com/javasysmon/com/jezhumble/javasysmon/ProcessInfo.htmlThanks,Jez.On 2 March 2010 08:17, Ivan Stefko <ivan....@seznam.cz> wrote:
Hi,i found your project and i have interest of it. i need to list all jvms processes in java and i'm looking for some solution for it. of course - i can can use jps from java_home or tool.jar from java_home .. but tool.jar has 12MB .. so is not good idea because of listing processes.I have problem with javaSysMon library because I can't find some example for use. Could you help me with it?I need: list all running JVM processes from java.thx,ivan