Ps-ef|grep Java
PS: Show a process
-a displays all programs.
-E The effect of this parameter is the same as specifying the "A" parameter.
-F Displays Uid,ppip,c and Stime fields.
The grep command is to find
The Middle | is a pipeline command that refers to the PS command executing concurrently with grep
This order means that the process related to Apachejetspeed is displayed.
UID PID PPID C stime TTY time CMD
The meaning of the relevant information:
The UID program is owned by the UID.
PID is the ID of this program.
PPID is the ID of its parent program
Percentage of resources used by the C CPU
Stime system Start-up time
TTY Login Terminal Location
Time used to consume the CPU.
What are the commands that CMD has issued?
Uptime
The results of the uptime command include how long the server has been running, how many logged-in users, and the overall evaluation of server performance (load average)
Top
The top command shows the actual CPU usage, which by default shows the CPU-intensive task information on the server and refreshes every 5 seconds. You can categorize them in a number of ways, including PID, time, and memory usage.
Common CentOS commands and explanations