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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. phar: command not found
  2. How to install virtual machines optimized and configured for the Red Hat Virtualization environment
  3. How to Mask or Unmask a Service in CentOS/RHEL 7 and 8
  4. cpufreq-aperf: command not found
  5. bsdtar command – Read and write tape archive files
  6. gdebi Command Examples in Linux
  7. qtchooser: command not found
  8. “su: Authentication failure” – in Docker
  9. chattr: command not found
  10. How to uninstall nodejs software package in Ubuntu

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright