shellcommand-linejvmsystem

how to list running java processes on linux and windows servers and identify the java version in use


I am looking at the simplest way to retrieve from various Linux and windows servers the name of processes running with java 7 (or any other versions). I do not wish to install tools as there are multiple servers involved.

solution at get java version of a running java process are for a single process.

any suggestions ? thx


Solution

  • I believe you can use ps -ef | grep java in Linux as it shows all JAVA applications up and running. In Windows also you should be able to use tasklist | findstr java in Terminal