A process is a program that has been loaded into memory and is executing. The operating system gives each process a process ID (PID), its own address space, and a share of CPU time.
Why it matters
Looking at processes explains most performance and outage problems: which program uses all the memory, which one is stuck, and whether a service is actually running. A single program can start several processes, and each process can contain multiple threads.
When a process uses too much memory, Linux may terminate it with the out-of-memory killer.
Example
$ ps aux --sort=-%mem | head -3
USER PID %CPU %MEM COMMAND
mysql 941 2.1 38.4 /usr/sbin/mysqld
The database process uses about 38 percent of memory.
Common mistakes
- Killing a process with SIGKILL first, which gives it no chance to save data; try SIGTERM.
- Confusing a process with a thread.
- Leaving zombie or runaway processes running unnoticed.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.