Find Process ID
For me this is divided into these use cases.
Find Process Listing on Port
Shell
lsof -i :3000 #find processes listing on port 3000
Find Java Process
For Java processes there is jps
. Which can be used as:
jps
: list all JVM processesjps -q
: list all JVM processes with only PIDjps -m
: display the arguments passed to the processesjps -l
: display the full package name of all processesjps -v
: Display the arguments passed to the JVM