In order for us to explain the WHM control panel features related to the Process Management of your server, we need to make sure you understand what a process is. Basically, you can picture it as being а program or script in action which contains instructions in the form of a code that is read and then executed. Each instruction can be considered as a simple task that the process executes. This script is then displayed as a process that will run until it finishes all of the tasks defined in its code.
Usually, in order for you to see this process, you would need to use the SSH protocol so you can connect to the server and then type a specific command that will list the process. Luckily the WHM control panel offers two functionalities that hold a list of the processes running on the server along with all their associated data. You may use these tools to browse the processes, trace them and even kill them if necessary. Let’s get right into it!
First, you need to log into the WHM service for your VPS or Dedicated Server. If you are not sure how to do that, please check our How to Access WHM tutorial. After you have logged in, please navigate to the search bar on the left side of the page and type “Show Current Running Process”.
When the functionality shows up below the search bar, please click on it so you can be sent to the “Show Current Running Process” page.
On the next page, you will notice a table view containing all the currently running processes. When you land on this page, you may feel overwhelmed at first, as the list is quite long. However, you should not worry, as there is a way you can sort it to easily find what you need. In order for you to get a better understanding, we will go through all of the columns and explain what they mean.
As mentioned earlier the table gives you the option to sort data based on the above parameters. All you need to do is click the bolded text on top of the column depending on what you want to view.
For instance, if you are running a PHP-based application - it will be spawning PHP processes shown under the “Command Line” column. If you would like them to appear closer to the top of the table, please click on the “Command Line” bolded text.
This will make it so it is arranged alphabetically from the last letter in the English alphabet “z” to the first “a”. “p” is much closer to “z”, thus appearing closer to the top of the column, allowing you to easily locate what you are looking for.
Please go to the search bar on the left side of the screen and type “Process Manager”.
When the functionality shows up below the search bar, please click on it so you can be sent to the “Process Manager” page.
On the top of the screen, right below the “Process Manager” heading, you will see a text “Kill all processes by user:”, a dropdown menu on its right side, and a button labeled “Kill user’s processes”.
Sometimes, a single program can spawn a lot of processes - either because it is being used too much or there is something wrong with it. Instead of having to go through the entire list and kill each process individually, WHM gives you the option to kill the process based on the user who spawned them. An example would be if you have noticed that the incoming email service is being stalled and has spawned a lot of dovecot processes. Click on the dropdown menu and then find the “dovecot” user.
After you have selected it, please click on the “Kill user’s process” button. This will redirect you to a new page, stating that all processes owned by the user in question have been killed. You will also be presented with a blue “Back” link, allowing you to go back to the previous screen.
Underneath, you will find a similar table section to the first functionality, however, this time there are certain columns that were not present earlier. Let’s go through them.
Under the “Pid” column, you will notice the blue clickable links “Trace” and “Kill”. The “Kill” link will terminate the individual process. Again, we will use one of the “dovecot” processes as an example.
Once the “Kill” link is pressed, you will be redirected to a page containing information about the process that had been just killed. You will also see a blue “Back” link that brings you back to the previous page if you want to continue with your process killing spree!
The last functionality we are going to discuss on this page is “Trace” which is located under the “Pid” column, preceding the “Kill” functionality.
Each individual process may be traced and this gives output in real-time what is happening during its execution. In this example, we will be tracing the “mysqld”.
We won’t cover how to read the output, as it a really complex task and you need to have a great understanding of how the service itself works and which part of the output you can use in order to troubleshoot, control, or manage the process.
Here you go! This guide covers two very handy features in the WHM control panel which you may use to track your processes or the users who are spawning them. We hope that our explanations were thorough enough and you are now able to use these tools to their full extent. As always, our Technical Team is 24/7 available at your disposal and if you have any questions or doubts, feel free to contact them over the ticketing system in your Client Area.
Sebahat is a young and bright woman who has become an invaluable part of our team. She started as a Customer Care Representative, mastering that role and, along the way, growing into a tech-savvy individual who is well acquainted with every support layer of the company. Driven by her aim to improve our customers’ experience constantly, she is committed to enhancing the extraordinary support we deliver.