> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Increasing number of processes that can be run by a user in Linux
- URL: https://kudithipudi.org/how-to-increasing-number-of-processes-that-can-be-run-by-a-user-in-linux/
- Published: 2012-03-15T03:15:32.000Z
- Updated: 2012-03-15T03:15:32.000Z
- Description: By default, most of the Linux distros limit the number of processes that a user can spawn. This is put in place to limit (un)intended cases...
- Author: admin
- Tags: HOWTO, Linux, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

By default, most of the Linux distros limit the number of processes that a user can spawn. This is put in place to limit (un)intended cases when a process might just fork off processes without a limit and bring down a server.

For RHEL (and CentOS), the default is 1024 processes per user. In some cases, you do need to increase the number of processes that a particular user can spawn. For example if you are running a database or an application server, you definitely want to tweak this number because these apps tend to create a lot of threads.

As a side note, if you run into this limitation on a machine running jboss, you typically see an error with the following string in your server logs

```
java.lang.OutOfMemoryError: unable to create new native thread.
```

. Looking at the error, one would think it is related to memory issues :).

OK.. back to the subject at hand. Here is the process for identifying your limits and then tweaking them as required in RHEL or CentOS.

- Restart the server. The updated settings won’t take affect until this is done

Check if you have the new limits by running

```
ulimit -u
```

Edit the /etc/security/limits.d/90-nproc.conf file and update it to have the same soft limits. By default, it has 1024 as the limit. So an updated file with my new limits as in the example above would look like this

```

# Default limit for number of user’s processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
*          soft    nproc     2000
```

Edit the /etc/security/limits.conf file and add the required limits. You can get all the possible options by running man limits.conf. For example, if I wanted all the users to have a soft limit of 2000 and a hard limit of 4000, my limits.conf file wold look like this

```
# Increase the number of threads per process
*       soft    nproc   200
*       hard    nproc   4000
```

Check the current limits on the number of processes a user can run by executing

```
ulimit -u
```

You can also check the limits of a particular user by finding a process ID being executed by that user and running

```
sudo cat /proc/PROCESS_ID/limits
```