How to check resources usage in DirectAdmin

In DirectAdmin, monitoring and managing resource usage of a given server is very important. These resources include Disk, RAM, CPU and I/O Disk. Consistent checking of the resources on the server leads to detect any user/website over consuming any of the resources. As one is detected, then it can be managed and resolved.

A- Why Resource Usage need to be Monitored

1. Disk:- If disk space is full, it cause websites, database and email to stop working.

2. RAM (Memory):- Over use of memory by a web applications or other services on the server, will lead to shortage of global memory on the server and can cause crashed.

3. CPU:- The capacity of a processor, determines the speed at which the server execute processes. When a particular user found to be over using the CPU, for instance 99% usage by this user and the remaining 1% is used by the server. This scenario can cause websites loading very slow.

4. Disk I/O:- As this resources is over loaded, it leads to high I/O read/write thereby causing website and database slow loading.

B- Steps to Check Server Resources

This required administrator login. Simply login to your DirectAdmin server e.g. https://server-IP:2222 and follow the steps:

Admin Level >> System Info & Files >> System Information

Note that: DirectAdmin are of different versions and one may differ from the above guide but it has fs_in_system_info setting controlling filesystem information on the System Information to guide you trace the version of your DirectAdmin and follow the documentation guide.

C- Steps to Check CPU and Memory Usage via Command Line

The server have to be access via the SSH and run the command on the terminal:

1- Checking memory usage

The Output:

 

total

used

free

shared

buff/cache

available

Mem:

128G

23.5G

7.6G

220M

4.9G

104.5G

Swap:

4G

800M

3.2G

   

The figures indicates how much memory is used, available and the total amount allocated on the server.

2- Checking CPU usage

 

or:

or:

htop



D- Step to Check Disk Space Run the following on the SSH terminal: df -h
Filesystem
Size
Used
Avail
Use%
Mounted on
/dev/sda1
80G
45G
35G
57%
/
/dev/sda2
200G
120G
80G
60%
/home
The figures indicates the disk used, the available and the total capacity on the server. E- Step to Check Disk Usage by a User in DirectAdmin

Login to DirectAdmin Panel and follow the step:

Admin Level >> Account Manager >> Show All Users

Select the user >> open the user’s resource information.

Disk, RAM, CPU and I/O Disk are the most important resources to put into consideration and in DirectAdmin, constant checking of these resources is part of the server administrator routine checking to ensure safety and stability of the server.