Skip to content

Instantly share code, notes, and snippets.

@viniciusdiogo
Created May 22, 2017 01:32
Show Gist options
  • Select an option

  • Save viniciusdiogo/23c17f1f5b391353867a830ef40ec789 to your computer and use it in GitHub Desktop.

Select an option

Save viniciusdiogo/23c17f1f5b391353867a830ef40ec789 to your computer and use it in GitHub Desktop.
Mac Limit Open File NodeJs
#!/bin/sh
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536
ulimit -n 65536 65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment