Blog

Linux Server Resource Limits: Diagnose CPU, Memory and Process Constraints

A server can have free memory and still reject a new process or kill an application that reaches its own limit. Resource limits operate at several layers: process limits, systemd service settings, container cgroups and hosting-account quotas. Determine which one is responsible before raising it.

Check system and process evidence

free -h
df -h
df -i
ulimit -a
systemctl --failed
journalctl -k -n 100 --no-pager

Run these commands in the appropriate Linux account. The output of ulimit describes the current shell and may not represent a service. If you manage the service, inspect its systemd configuration and resource properties, substituting its actual unit name:

systemctl show example.service -p MemoryMax -p TasksMax -p LimitNOFILE -p CPUQuotaPerSecUSec

Some properties and cgroup files vary by kernel and systemd version. A memory limit or process limit is distinct from physical RAM or CPU saturation.

Match errors to the limit

Symptom Check
Too many open files Process descriptor limits and application connection handling.
Process killed under load Kernel OOM events and cgroup memory limits.
Requests fail in one hosting account Account resource fault history and quotas.
Cannot create new files Disk space, inode availability and filesystem quotas.

Do not raise limits across the whole server as a first response. Identify the workload, fix leaks or excessive concurrency, and adjust only the relevant setting with a rollback plan. On managed shared hosting, provide the fault timestamps to support rather than attempting system-level changes.

For cPanel account limits, see our shared hosting resource limits guide.