ps -eaf | grep java
command is not a solution here to identify if a process is a java process or not, as many of my java processes are not listed in the output after executing this command.
On Linux, you can view processes with the ps command. It is the simplest way to view the running processes on your system. You can use the ps command to view running Java processes on a system also by piping output to grep . OpenJDK, however, has its very own specific process monitor.
If you want to check the work of java application, run 'ps' command with '-ef' options, that will show you not only the command, time and PID of all the running processes, but also the full listing, which contains necessary information about the file that is being executed and program parameters.
Short answer (hopefully someone writes a more comprehensive one):
Get process PID
Go to /proc/<pid>
Look up the process binary file from there
Run commands file
and ldd
on it and see what you can figure out from their output (check man pages of the commands, of course).
Use lsof
command to see which files the process has open, and see if those include telltale libraries or similar files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With