X
X

Select Your Currency

Türk Lirası $ US Dollar
X
X

Select Your Currency

Türk Lirası $ US Dollar

Knowledge Base

How to View Resource Usage on Debian Server?

 

Monitoring Resource Usage on Debian Servers

 

Monitoring the performance of Debian servers is critical for maintaining system stability and efficiency. Regularly tracking resource usage enables early detection and resolution of potential performance issues. Below are fundamental methods to monitor CPU, memory, disk, and network resources on Debian systems.

 

1. CPU and Memory Usage

 

The top command can be used to view running processes and real-time resource consumption. For a more detailed and user-friendly interface, the htop tool is preferred.

To install: sudo apt install htop

To run: htop

 

2. Disk Usage

 

Disk space utilization can be checked with the df -h command. Additionally, detailed usage of specific directories can be examined using du -sh /var/*.

 

3. Network Traffic Monitoring

 

Real-time network traffic can be monitored with tools like iftop or nload.

To install: sudo apt install iftop nload

Usage example: sudo iftop -i eth0

Note: The eth0 interface name may vary depending on the system. The correct interface name can be identified using the ip a command.

 

4. Overall System Status

 

Summary information about the system status can be obtained with the vmstat command. For a more comprehensive and user-friendly system monitoring, the glances tool is recommended.

To install: sudo apt install glances

To run: glances

 

5. Processes Consuming the Most Resources

 

Processes with the highest CPU and memory consumption can be listed using the following commands:

ps aux --sort=-%mem | head -n 10

ps aux --sort=-%cpu | head -n 10

 

6. Historical Resource Usage Tracking (sysstat and sar)

 

For more detailed and historical system statistics, the sysstat package and its sar command can be used.

To install: sudo apt install sysstat

To view CPU usage: sar -u 1 5 (measures 5 times at 1-second intervals)

To view memory usage: sar -r

 

Tracking resource usage on Debian servers is essential for maintaining system performance and preventing potential bottlenecks. By regularly utilizing the tools and methods outlined above, system management can be optimized effectively.

Did you find it useful?
(0 times viewed / 0 people found it helpful)

Can't find the information you are looking for?

Create a Support Ticket
Top