How we can kill the running java application in Linux?
Approach 1:
Step1: Find the process id of running the application
Command: ps aux | grep 'java -jar';ubuntu 3409 0.1 45.1 2423768 452520 ?Sl 2020 50:44 java -jar -Dspring.profiles.active=aws app.jar
Step1: kill running application using PID
Command: kill -9 PID
Approach 2: Find process id using top and htop command
Step 1:
command: top or htop
Step2: kill running application using PID
Command: kill -9 PID
No comments:
Post a Comment