Monitor Real time resource usage in CloudLinux

Monitor

CloudLinux OS is the leading platform for multitenancy. It improves server stability, density, and security by isolating each tenant and giving them allocated server resources. This creates an environment that feels more like a virtual server than a shared hosting account. By doing so, CloudLinux OS reduces operating costs and churn rates, and increases profitability. Let’s see how to Monitor Real time resource usage in CloudLinux.

LVE (Lightweight Virtual Environment) is a kernel level technology developed by the CloudLinux team. It is lightweight and transparent. The goal of LVE is to make sure that no single website can bring down your web server.

The kernel makes sure that all LVEs get fair share of the server’s resources, and that no customer can use more than the limits set for that customer.

Today we can limit CPU, Memory (virtual and physical), IO, number of processes as well as the number of entry processes (concurrent connections to apache) on user specific.

One of the best way to monitor current usage of users is “lvetop” , which is similar to the ‘top’ tool we are familiar with .

It will show you CPU, Memory , Entry Processes and other usage for a particular account in real time, as below :

 ID     EP    PNO    TNO     SPEED      MEM         IO       IOPS

user1     0      3      3            5%           137            4          1

user2     0      2      2           1%            130            3          1

user3      0      1      1           0%           15              0          0

user4      0      1      1          0%            22              0          0

lvetop fields:

ID        user name if LVE id matches user id in /etc/passwd, or LVE id

EP        number of entry processes (concurrent scripts executed)

PNO        number of processes within LVE

TNO        number of threads within LVE

CPU        CPU usage by LVE, relative to total CPU resources of the server

MEM    Memory usage by LVE, in KB

I/O        I/O usage

IOPS   number of read/write operations per second

In this way, we can monitor and locate the account hitting the Entry Processes via command line.

A GUI interface of this tool is present in WHM as well :

WHM Home » Server Configuration » CloudLinux LVE Manager

For more monitor tools, please click here