If it's hard to test, it's not there yet.
Jps -l works too, it's available in the JDK (and maybe even in the JRE)
nice tip :) Thank you!However, it has a drawback of not being able to list JDK 1.5 process info if you use jps from a JDK1.6 (only pid is shown, not command line)
Oh nice, thanks for share!
Wow… This is great! I can say that this is the first time I visited the site and I found out that this blog is interesting to read. Thanks for this awesome monitor.
"tasklist" also works
tasklist doesn't give you a detailed command like the above method. It doesn't show you java classpath nor java system properties, all part of the command.
the amount of info you get from tasklist is very minimal$ tasklist /v | grep java java.exe 41524 Console 1 140,324 K Unknown tabby\hhuynh 0:00:09 N/A The pid.rb script wraps the wmic command in the post$ ruby pid.rb 41524 C:\jdk\jdk1.6.0_29\bin\java.exe -Xmx512m -XX:MaxPermSize=128m -classpath C:\cygwin\home\hhuynh\tools\apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar -Dclassworlds.conf=C:\cygwin\home\hhuynh\tools\apache-maven-3.0.4/bin/m2.conf -Dmaven.home=C:\cygwin\home\hhuynh\tools\apache-maven-3.0.4 org.codehaus.plexus.classworlds.launcher.Launcher install -DskipTests
THANK YOU!!!! I really hate Windows but alas have to build stuff for the platform - this is great
I do this with Cygwinps -W | grep java | cut -c-9 | xargs env kill -f
Post a Comment