• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Cannot Increase “nproc” Value More Than 1024 in CentOS/RHEL 6

by admin

The Problem

“/etc/security/limits.conf” is updated with the following and the server is rebooted:

# vi /etc/security/limits.conf
* - nproc 16384

However, “ulimit -a” (for root & all users) still shows the 1024 for “max user processes” instead of 16384:

# ulimit -a
...
max user processes              (-u) 1024
...

The Solution

CentOS/RHEL 6 has another file for setting the nproc value – /etc/security/limits.d/90-nproc.conf

# cat /etc/security/limits.d/90-nproc.conf
*          soft    nproc     1024

In order to change the “max user process” value to “16384”, update “/etc/security/limits.d/90-nproc.conf” and change

*    soft    nproc     1024

to

*    soft    nproc     16384

Filed Under: CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. echo: command not found
  2. How To Configure NIS (Network Information System) Master and Slave Servers in CentOS/RHEL
  3. lastcomm Command Examples in Linux
  4. aws backup: Unified backup service designed to protect Amazon Web Services services and their associated data
  5. CentOS / RHEL : How to add swap file
  6. ifconfig Command Examples in Linux
  7. dua Command Examples in Linux
  8. “glab pipeline” Command Examples
  9. How to Tune Btrfs Filesystem for Better Performance
  10. docsify: Initialize and serve markdown documentation

You May Also Like

Primary Sidebar

Recent Posts

  • gml2gv Command Examples
  • glow Command Examples
  • glib-compile-resources Command Examples
  • glances Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright