Skip to content

Instantly share code, notes, and snippets.

@it-can
Last active January 2, 2017 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save it-can/8a12710ed5ed48973b9b2858d51c351c to your computer and use it in GitHub Desktop.
Save it-can/8a12710ed5ed48973b9b2858d51c351c to your computer and use it in GitHub Desktop.
ulimit -a

mcedit /etc/sysctl.conf

add:

fs.file-max = 100000

mcedit /etc/security/limits.conf

add (before #end):

* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535

reload sysctl

sysctl -p

MariaDB

mcedit /usr/lib/systemd/system/mariadb.service add (at the end):

LimitNOFILE=65535
LimitNPROC=65535
systemctl daemon-reload
systemctl restart mysqld.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment