Skip to content

CloudLinux LVE limits — what each one actually means

CPU, IO, EP, NPROC, PMEM, VMEM, IOPS — seven limits per LVE container, each with a specific failure mode when exceeded. Here is what each one controls.

CloudLinux LVE is the per-account container that keeps one cPanel tenant from eating the host. It exposes seven limits, each with a distinct definition and a distinct symptom when the tenant hits the ceiling. Most support tickets about “the site is slow” come down to one of these limits being hit — and the difference between hitting PMEM and hitting EP is the difference between “OOM killer ran” and “PHP refused to spawn”. Knowing which limit is being touched is the first move in any LVE incident.

What’s happening

LVE is a kernel-level resource container, separate from cgroups, that wraps each user’s processes. The seven limits:

  • CPU — percentage of one CPU core, summed across all the user’s processes. 100% = one full core.
  • IO — kilobytes per second of disk read+write throughput. Limit is enforced at the block layer.
  • IOPS — disk operations per second. Independent of IO bandwidth; a workload can hit IOPS without hitting IO bytes.
  • EP (Entry Processes) — concurrent processes that entered the LVE from outside (i.e. PHP-FPM workers handling a web request). The cap most often triggers a 508 response.
  • NPROC — total processes in the LVE, including children spawned inside. Cron jobs, shell scripts, and forked workers count here.
  • PMEM (Physical Memory) — RSS in MB summed across all processes. Hitting this triggers the LVE OOM killer.
  • VMEM (Virtual Memory) — address space reservation, including swap and unallocated. Usually deprecated in favor of PMEM on modern setups.

How to verify

For a specific user, the live limits and current usage:

lvectl limits <username>
lvectl info <username>
lveinfo --period=1h --user=<username>

To see who is hitting limits across the whole host:

lveinfo --period=24h --by=cpu | head -20
lveinfo --period=24h --by=ep --show-incidents
lveinfo --period=24h --by=pmem --show-incidents

The --show-incidents output lists every minute a limit was hit. A user with many incidents on the same limit needs either a higher limit or an application fix.

The fix

The limit you raise depends on what is being hit:

  1. CPU pegged with no EP incidents — the app is genuinely CPU-bound, often from a missing opcode cache or a regex-heavy ModSec rule. Raise CPU only after checking OpCache and ModSec.
  2. EP exhausted with low CPU — PHP-FPM is queueing requests. Either the app is slow per request (so few EPs handle many requests) or external API calls are blocking workers. Raise EP only after timing the actual request.
  3. PMEM hits — a leaky plugin, an unbounded query, or a runaway cron. Find the culprit before raising PMEM; otherwise you delay the OOM by hours instead of preventing it.
  4. IOPS or IO — almost always a missing index or an unbounded log write. Look at MySQL slow queries and at iotop for the user before adjusting.

To raise a limit for a single account: lvectl set <username> --cpu=200 --ep=40 then lvectl save. To change a package default, edit /etc/container/<package>.yaml and lvectl apply all. Stack Harbor tunes LVE limits per workload as part of cPanel server administration.