Home / Software / Managing Linux System Programs and Processes

Managing Linux System Programs and Processes

TOP
Question: Something is hogging the CPU cycles on my Linux dedicated server. It has gotten really slow. How can I monitor running programs and processes?

Answer: Linux has a handy little tool called “top” that, when run, reveals your top running processes. It also gives you information about your memory usage, server load average, logged-in users, swap usage, uptime, and total number of tasks.

Running “top” is simple. Just login to your server via SSH and type “top”. It will tell you the PID of the process, the user running it, the amount of memory it is using, the cpu percentage, memory percentage, time running, and the command’s name.

If you do happen to find a runaway process, press “q” to exit top, and then kill the process by typing “kill xxxx”, replacing the “xxxx” with the process PID number. If you find a process running under a suspicious user, you might have a security breach. For that, top cannot help you, but at least you will be a step closer to solving your problem.

Check Also

servers

Importance of web hosting to business

The world of business is very ruthless and unfair in some cases. It is a …