How to Set Unlimited Resources for LVE Limits in CloudLinux

May 30, 2025 / Security and Backup

CloudLinux uses LVE (Lightweight Virtual Environment) to isolate and limit resource usage per user in shared hosting environments. This helps maintain server stability by avoiding any single account from consuming unnecessary resources.

However, in certain cases, such as for admin users, resellers, or dedicated hosting clients, you may need to remove resource limits entirely.

This article illustrates how to set unlimited LVE limits safely and effectively.

Important Notes

  • Setting limits on unlimited can allow a user to consume as many resources as needed, which may negatively impact server performance if not properly managed.
  • Only apply unlimited limits to trusted users or isolated environments (e.g., VPS, dedicated hosting).

Method 1: Set Unlimited LVE Limits via Command Line

  1. Log in to the server as the root user via SSH.
  2. Use the following command to set unlimited values for all major LVE parameters:
    lvectl set-user <username> --speed=0 --nproc=0 --mem=0 --io=0 --pmem=0 --entryprocs=0 --vmem=0
  3. Explanation of parameters:
    –speed sets the CPU speed limit
    –nproc defines the maximum number of processes a user can run
    –mem controls the allocation of physical memory (RAM)
    –io sets the disk I/O rate
    –pmem parameter limits the maximum memory allowed per process
    –entryprocs restricts the number of concurrent Apache connections (entry processes)
    –vmem specifies the amount of virtual memory available to the user
    Note: The value 0 in CloudLinux means unlimited for most resource types.

Method 2: Set Unlimited LVE Limits via WHM (Web Host Manager)
If you have LVE Manager installed in WHM:

  1. Log in to WHM as root.
  2. Navigate to:
    WHM » LVE Manager
  3. Locate the target user from the list.
  4. Click the “Edit” icon next to the user.
  5. Set each limit (CPU, RAM, I/O, etc.) to 0.
  6. Click Save.

Verification:
To confirm that the limits have been applied correctly, run:

lvectl list

Look for the specified user and verify that the values are all set to 0.

Reverting to Default Limits:
To reset a user’s LVE limits to the server’s default hosting plan settings, use:

lvectl apply-user <username>

Setting unlimited LVE limits is useful in special scenarios where performance constraints need to be lifted. Always apply such changes with caution and monitoring.

Spread the love