Viewing Running Processes on your Dedicated Server Updated on April 17, 2024 by InMotion Hosting Contributor 1 Minutes, 36 Seconds to Read In this tutorial: Using the “top” command Using the “ps” command In this tutorial we show you how to view current running process on your Dedicated server. This is done using command line interface over SSH. We will show you two commands, as well as example results. View Running Processes using the “top” command Log into your Dedicated server via SSH. Keep in mind you will see the results based on your user, so if you want to see all processes login as the “root” user. Run the following command (highlighted in red) in your shell instance:[email protected] [~]# top -icd1You will then see a list of how long the server has be up (in days), how many users are currently connected, and the load average (from 1, 5, and 15 minutes ago). Listed will also be information regarding running Tasks, Cpu(s), Mem(ory), and Swap (Hard Disk). It will look similar to this, but keep in mind it will depend on your specific sites, and scripts:top – 06:56:05 up 151 days, 20:42, 2 users, load average: 0.17, 0.23, 0.24Tasks: 47 total, 1 running, 45 sleeping, 0 stopped, 1 zombieCpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stMem: 1572864k total, 1512676k used, 60188k free, 0k buffersSwap: 2621440k total, 291720k used, 2329720k free, 1145668k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND23607 user5 20 0 13004 1196 944 R 0.0 0.1 0:01.37 top -icd1 View Running Processes using the “ps” command Log into your Dedicated Server via SSH. Using the following command should allow you to see all processes, including those being run by the “root” user. Run the following command (highlighted in red) in your shell instance:[email protected] [~]# ps auxYou will then see a list of running processes similar to the results below:USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.0 19236 516 ? Ss 2015 0:18 initroot 2 0.0 0.0 0 0 ? S 2015 0:00 [kthreadd/9198]root 3 0.0 0.0 0 0 ? S 2015 0:00 [khelper/9198]dbus 774 0.0 0.0 21436 72 ? Ss 2015 0:00 dbus-daemon –systemroot 1013 0.0 0.2 100892 4388 ? Ss 06:40 0:00 sshd: user5 [priv] Congratulations, now you know how to view current running process on your Dedicated server! Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles SSH Commands: The Practical Guide for Developers and Site Owners How to Connect to Your Server with SSH How to Use SCP For Secure File Transfer A Complete SSH Tutorial for Beginners How to Connect to Your Server via SSH How to View MariaDB Databases Using the Command Line How to Add SSH Keys to Your GitHub Account How to Change Directories using SSH Commands How to SSH Into Your Shared/Reseller Server Viewing Running Processes on your Dedicated Server
Thank you SOOO much for this. AMAZING! Now to figure out how to find out which processes are causing my site to crash!