All Projects → feross → unlimited

feross / unlimited

Licence: MIT License
Upgrade the maximum file descriptor number ('nofile') that can be opened by this process

Programming Languages

javascript
184084 projects - #8 most used programming language

unlimited travis npm downloads javascript style guide

Upgrade the maximum file descriptor number ('nofile') that can be opened by this process

install

npm install unlimited

usage

To attempt to upgrade the maximum file descriptor number that can be opened by this process to effectively unlimited (65536):

var unlimited = require('unlimited')
unlimited()

Or specify a specific 'nofile' number to use:

unlimited(10000)

If the current user's permissions or the system's 'hard' limit do not allow the maximum file descriptor number to be increased, this function will do nothing (no-op).

For best results, start your node process as root, run unlimited(), then downgrade the user permissions with the downgrade package.

On non-posix platforms (e.g. Windows), this module does nothing.

license

MIT. Copyright (c) Feross Aboukhadijeh.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].