How to get the list of java processes along with their PID(process id) that are running on UAT server under a specfic account?
A jar file was failed to deploy on a UAT server.
Because when we are trying to rename it,it is showing
“cannot rename the file it is been used by another user”.
step choosen in order to solve the problem
log on UAT server(xxx).
we need the list of java processes along with the PID on our UAT server
which is running under the account XXXAPPFUNC.
Please tell me how can I do this?
Thanks in Advance.
2 Solutions collect form web for “How to get the list of java processes along with their PID(process id) that are running on UAT server under a specfic account?”
Did you try the
The jps tool lists the instrumented
HotSpot Java Virtual Machines (JVMs)
on the target system. The tool is
limited to reporting information on
JVMs for which it has the access
The list of JVMs produced by the jps
command may be limited by the
permissions granted to the principal
running the command. The command will
only list the JVMs for which the
principle has access rights as
determined by operating system
specific access control mechanisms.
The output of the jps command follows the following pattern:lvmid [ [ classname | JARfilename | "Unknown"] [ arg* ] [jvmarg* ] ]
For example, to list the instrumented JVMs on the local host:
$ jps 18027 Java2Demo.JAR 18032 jps 18005 jstat
Run it under the desired account.
Have you tried Process Explorer
“Ever wondered which program has a particular file or directory open? Now you can find out. Process Explorer shows you information about which handles and DLLs processes have opened or loaded.”
Doesn’t just work for java processes.