You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

How to set soft or hard limit for the number of user's processes “nproc”?

edited Feb 27, 2024 5:05AM in Linux

APPLIES TO:

Oracle Linux Cloud Service - Version Oracle Linux 6.0 and later

Linux OS - Version Oracle Linux 6.0 and later

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

 

GOAL:

This note provides a guideline for Linux system administrators to control and limit the number of processes each user can run on a linux system.

 

SOLUTION:

To set the nproc soft and hard values, you can edit either the /etc/security/limits.conf file or files within the /etc/security/limits.d/ directory:

 

1- Edit the /etc/security/limits.conf file to set nproc soft and hard values:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!