Recently I’ve been getting this question quite a lot so I decided to share my thoughts with the community!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
One of the tools that I use to do so is the
top
command. Thyetop
command works quite well, all you need to do is to runtop
in your terminal and then hit one of the following keys to sort the processes by the information that you are looking for:M
- Sorts by current resident memory usageP
- Sorts by current CPU usage (this is the default)?
- Displays a usage summary for all top commandsThis is very important information to obtain when troubleshooting a slow server or a computer. This would help you make a decision on what processes to kill/software to uninstall.
An alternative of
top
ishtop
. It is an interactive system-monitor process-viewer and process-manager. It is designed as an alternative to the Unix program top. Some of the benefits ofhtop
is that it comes with colors and is interactive, meaning that you could scroll the process list horizontally and vertically using the arrow keys, kill a process by pressing the F9’, sort the processes by Memroy/CPU usage and etc. by just clicking with your mouse.Hope that this helps! Regards, Bobby
Hello there,
Everyone who needs more information on How To Use Top, Netstat, Du, & Other Tools to Monitor Server Resources can check our tutorial here
https://www.digitalocean.com/community/tutorials/how-to-use-top-netstat-du-other-tools-to-monitor-server-resources
Regards
Where do I need to save this script file (do i need to give it any special name)?