Skip to content

Instantly share code, notes, and snippets.

@abarringer
Created February 23, 2010 20:30
Show Gist options
  • Save abarringer/312669 to your computer and use it in GitHub Desktop.
Save abarringer/312669 to your computer and use it in GitHub Desktop.
How to increase file handles on ubuntu
/etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
#notice bottom line
#
# /etc/pam.d/common-session - session-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive). The default is pam_unix.
#
session required pam_unix.so
session required pam_limits.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment