O'Reilly logo

Red Hat Enterprise Linux Troubleshooting Guide by Benjamin Cane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing user limits

Since we suspect the open files limit is preventing the application from executing, we can set its limit to a higher value. However, this is not as simple as executing ulimit –n; the following output is what we get when it's executed:

$ ulimit -n
1024
$ ulimit -n 5000
-bash: ulimit: open files: cannot modify limit: Operation not permitted
$ ulimit -n 4096
$ ulimit -n
4096

By default, on our example system the highest the vagrant user is allowed to raise the open files limitation to is 4096. As we can see from the preceding error, anything higher is denied; but like most things with Linux we can change this.

The limits.conf file

The user limits that we have been using and modifying are part of Linux's PAM system. PAM or Pluggable ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required