Set the process name for a Java program

java -Dname=monitoring_core -jar core.jar

Use the ps Command to Find Running Processes:

ps -e -o pid,comm,command | grep 'monitoring_core'

References
https://stackoverflow.com/questions/1057247/how-can-i-set-the-process-name-for-a-java-program
https://www.tecmint.com/find-process-name-pid-number-linux/
https://linuxhint.com/ps_command_linux/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.