How do I view the Java process and get the process ID?

Source: Internet
Author: User

1. Pressing the TAB key after entering 1-2 characters on the LINUX command platform automatically complements the next part (provided that you have this thing, for example, if you have Tomcat, enter Tomcat to press TAB).
2. The PS command is used to view the currently running process.
grep is a search
Example: Ps-ef | grep java
Represents the process information for viewing all processes where CMD is Java
Ps-aux | grep java
-aux Show All States
Ps
3. Kill command to terminate the process
Example: kill-9 [PID]
-9 means the forced process stops immediately
Usually use PS to view the process PID, terminate the process with the KILL command

How do I view the Java process and get the process ID?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.