Processes & PIDs
Every running program is a process with a unique Process ID (PID). Parent/child relationships help you understand who started what.
Solaris · Process Management
Solaris · Lesson 10
Monitor processes using ps and prstat. Kill and priority handling. Troubleshoot high CPU usage. Real production scenarios.
Processes are the running programs on your Solaris system. As an administrator, you must be able to see what is running, identify heavy processes and clean up hung ones without destabilising the server.
In this lesson, we focus on core process tools that you will use almost daily: ps, prstat, pgrep, pkill, kill and renice.
Every running program is a process with a unique Process ID (PID). Parent/child relationships help you understand who started what.
Tools like prstat show you which processes are consuming CPU and memory so you can quickly spot bottlenecks.
Commands like kill, pkill and nice let you send signals to processes to stop, reload or change their priorities.
Run each of these command sequences in your Solaris lab VM. Observe how the output changes when you start or stop applications in another terminal.
ps -ef shows a snapshot of all running processes with their PIDs, parents, and commands.
prstat is like top on Solaris. It shows CPU and memory usage for processes in real time.
Use pgrep to find PIDs by name and pkill to send signals. This is safer than grepping ps output manually.
Always try a gentle signal (TERM) before using KILL. Confirm the PID carefully.
nice and renice change process scheduling priority. Higher nice value means lower priority (more friendly to others).
ps -ef and prstat.pgrep and pkill to find and stop your test processes by name.nice and change its priority using renice, then observe the effect in prstat.In the next lessons on service management and monitoring, you will see how process-level information combines with SMF and system logs for full troubleshooting.