Skip to content

Instantly share code, notes, and snippets.

@serby
Created October 22, 2012 18:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serby/3933039 to your computer and use it in GitHub Desktop.
Save serby/3933039 to your computer and use it in GitHub Desktop.
Increase max file descriptors SmartOS
projdel node
projadd -c "node settings" -U admin -G staff -K "process.max-file-descriptor=(basic,65535,deny)" node
svccfg -s node-nodestack-service setprop 'method_context/project=node'
svcadm disable node-nodestack-service
svcadm enable node-nodestack-service
pgrep node
plimit <PID>
nofiles(descriptors) 1024 65536
# Should be 65535!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment