Live Resource usage for a User
Introduction
CloudLinux provides resource isolation for hosting accounts, allowing administrators to monitor and control CPU, memory, and entry process usage for individual users. Monitoring resource consumption helps identify accounts that are exceeding their allocated limits and assists in troubleshooting website performance issues.
This guide explains how to check live resource usage for a specific user using the lveinfo utility available on CloudLinux servers.
Prerequisites
- Root or SSH access to the server
- CloudLinux is installed and enabled on the server
- LVE Manager and CloudLinux utilities installed
Implementation
Step 1: Connect to the Server
Log in to the server via SSH as the root user.
Step 2: Check Resource Usage for a Specific User
Run the following command:
lveinfo –period=1W -u username
Replace “username” with the actual cPanel username.
Example:
lveinfo –period=1W -u jahwaggy
Step 3: Review the Output
Example output:
ID aCPU mCPU lCPU aEP mEP lEP aMem mMem lMem MemF MepF
544 1 7 8 1 3 100 209.2M 365.0M 1.0G 0 0
591 1 5 8 1 4 100 255.9M 482.5M 1.0G 0 0
614 1 5 8 1 4 100 236.3M 434.3M 1.0G 0 0
616 0 3 8 0 1 100 9.3M 101.1M 1.0G 0 0
Understanding the Output
- aCPU – Average CPU usage
- mCPU – Maximum CPU usage
- lCPU – CPU limit assigned to the user
- aEP – Average Entry Processes
- mEP – Maximum Entry Processes reached
- lEP – Entry Process limit assigned
- aMem – Average memory usage
- mMem – Maximum memory usage
- lMem – Memory limit assigned
- MemF – Number of memory faults
- MepF – Number of Entry Process faults
Step 4: Identify Resource Limit Hits
Pay attention to the following values:
- High CPU usage approaching the CPU limit
- Entry Processes reaching the configured limit
- Memory usage close to the assigned memory limit
- Non-zero values in MemF or MepF columns
These indicators may suggest that the account requires optimization or a resource upgrade.
Conclusion
The lveinfo utility provides detailed insight into resource consumption for CloudLinux users. Regular monitoring of CPU, memory, and entry process usage can help identify performance bottlenecks, troubleshoot resource-related issues, and ensure that hosting accounts operate within their allocated limits.
