Home WebsiteCloudLinux LVE Limits Explained: Tune CPU, IO, EP and NPROC to Stop 508 Errors

CloudLinux LVE Limits Explained: Tune CPU, IO, EP and NPROC to Stop 508 Errors

by Knowledge Base Linux
CloudLinux LVE Limits Explained — CloudLinux LVE Limits Explained: Tune CPU, IO, EP and NPROC to Stop 508 Errors

Few errors frustrate hosting customers more than 508 Resource Limit Is Reached. The site is not down, the server is fine — one account simply hit its ceiling. Those ceilings are CloudLinux LVE limits, and tuning them well is the difference between a stable shared server and a support queue full of angry tickets. This guide explains what every LVE limit actually controls, where the 508 error comes from, and how to set sane values in LVE Manager or from the command line with lvectl. If you have not converted your server yet, start with our guide on how to install CloudLinux on cPanel and DirectAdmin first. This article covers CloudLinux LVE Limits Explained in detail.

What Is an LVE and How Do CloudLinux LVE Limits Work? – CloudLinux LVE Limits Explained

An LVE (Lightweight Virtualized Environment) is a kernel-level container that wraps each hosting account. The CloudLinux kernel tracks the resources consumed by every process belonging to that account — web, PHP, cron, SSH, mail — and enforces the limits you set. When an account reaches a limit, only that account is slowed down or refused new work; every other customer on the server keeps running normally. That isolation is the whole point of CloudLinux.

Limits are assigned per account, usually through hosting packages (plans) and a server-wide default. You manage them in LVE Manager (CloudLinux Manager) inside WHM or DirectAdmin, or with the lvectl command-line tool. Nothing is enforced until the account is inside an LVE — which is automatic for panel users.

Tuning CloudLinux LVE limits for CPU, memory, IO and entry processes

Every LVE Limit Explained – CloudLinux LVE Limits Explained

SPEED (CPU)

The CPU limit, shown as SPEED in the current interface. It is expressed as a percentage where 100% equals one full CPU core. A limit of 200% lets the account burst across two cores; 50% gives it half a core. This is a hard cap — once the account’s processes have consumed their share in the measurement window, they are throttled. Busy WordPress sites are usually CPU-bound first, so SPEED is the limit you will adjust most often.

PMEM (Physical Memory)

The maximum physical RAM the account’s processes may use, for example 1 GB or 2 GB. If an account exceeds PMEM, the newest processes are killed — visitors typically see a 500 error or a half-loaded page rather than a clean message. Set this with real headroom: a single uncached WooCommerce request can briefly need several hundred MB across its PHP workers.

VMEM (Virtual Memory)

A legacy limit on virtual memory (address space), which is always much larger than real RAM usage. Because applications reserve far more virtual memory than they use, most hosts leave VMEM at 0 (unlimited) and control memory with PMEM only. If you set VMEM too low you will cause random allocation failures that look like software bugs.

IO and IOPS (Disk Throughput)

IO caps disk throughput in KB/s; IOPS caps operations per second. Hitting an IO limit does not produce errors — processes are simply made to wait, so the symptom is a slow site and rising load from processes in disk-wait. On modern NVMe storage, IOPS is usually the more meaningful of the two.

EP (Entry Processes)

The number of simultaneous “entry processes” — roughly, concurrent requests being processed by the web server for that account (for mod_lsapi, each running PHP process counts). When all EP slots are busy, new visitors get the famous 508 error until a slot frees up. EP is the single most common cause of 508s on WordPress hosting.

NPROC (Number of Processes)

The total number of processes the account may run at once — PHP workers, cron jobs, shell commands, everything. When NPROC is exhausted, new processes fail to start, which also surfaces as 508 errors (and broken cron jobs). NPROC should always be comfortably higher than EP, because every entry process is also a process, but not every process is an entry process.

Where the 508 Error Really Comes From

The 508 is generated when a request arrives but the account cannot start serving it — in practice, when EP is full or NPROC is exhausted. It is a protective refusal, not a crash. To find out which limit is responsible, open CloudLinux Manager’s Statistics view: it records faults per account and per limit type. An account with thousands of EP faults needs more entry processes (or faster PHP so slots free up sooner); an account faulting on NPROC may have stuck cron jobs or runaway scripts. The lveps command shows live per-LVE usage and fault counters from the shell, which is invaluable during a live incident. General CPU pressure has other causes too — see our guide to diagnosing high CPU usage on a Linux server if the whole machine, rather than one account, is saturated.

Setting Limits in LVE Manager and with lvectl

In WHM, open CloudLinux Manager → Packages to edit the limits attached to each hosting plan, or the Users tab to override limits for a single account. DirectAdmin exposes the same settings in its CloudLinux Manager page and in reseller/user packages. Changes take effect immediately — no restart is needed.

From the command line, lvectl does the same job. To view current limits and to set custom limits for one user:

lvectl list
lvectl set <username> --speed=200% --pmem=2G --io=8192 --iops=2048 --ep=40 --nproc=120
lvectl apply all

Useful companion commands:

lvectl limits all          # show limits for all LVEs
lveps                       # live usage and faults per LVE
lveps -p                    # processes currently inside LVEs
lvectl delete <username>    # remove custom limits, back to default/package

Reasonable starting points for typical WordPress hosting plans: SPEED 100–200%, PMEM 1–2 GB, IO 4096–8192 KB/s, IOPS 1024–2048, EP 20–40, NPROC 100–120, VMEM 0. Treat these as a starting grid, not gospel — your hardware and customer mix decide the final numbers.

A Practical Tuning Method That Stops 508 Errors

  1. Start generous, then tighten. Set launch limits above what honest sites need. It is better to lower a limit later than to 508 a new customer on day one.
  2. Watch faults for a week. In the Statistics view, sort accounts by faults. Faults tell you exactly which limit is undersized — never guess.
  3. Raise the faulting limit only. EP faults → raise EP (and check PHP is running under mod_lsapi or LSAPI so processes release quickly). PMEM faults → raise PMEM slightly and check for memory-hogging plugins.
  4. Investigate outliers instead of feeding them. One account with constant faults at generous limits has a problem — a traffic spike, a bot flood, or bad code. Unlimited limit raises just export that problem to the whole server.
  5. Encode the result in packages. Once tuned, bake the numbers into your hosting plans so new accounts inherit them automatically.

Troubleshooting: Still Getting 508s?

508s at low traffic. Check whether NPROC is being consumed by stuck processes or aggressive cron jobs — lveps -p shows what is actually running inside the account’s LVE.

508s only during traffic peaks. Classic EP saturation. Either raise EP or make PHP faster (caching, LSAPI, fewer heavy plugins) so each entry process finishes sooner.

Intermittent 500 errors instead of 508s. That pattern points to PMEM kills. Look for PMEM faults in Statistics and check the account’s error log for “Cannot allocate memory”.

Sites slow but no errors. IO or IOPS throttling. The account is not refused work, just queued — raise IO/IOPS or move the account to faster storage.

Conclusion

CloudLinux LVE limits are simple once you map each one to its symptom: SPEED throttles CPU, PMEM kills processes, IO/IOPS slow the disk, and EP/NPROC produce 508 errors. Set sensible defaults, drive every change from the fault statistics, and reserve limit increases for accounts that genuinely need them. Do that, and the 508 error becomes what it should be — a rare, informative signal, not a daily complaint.

You may also like

KbLinux

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.