Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

disable-oom-killer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disable-oom-killer

Disable the OOM (Out Of Memory) Killer for a process (linux only)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

disable-oom-killer

Build Status

Disable the OOM (Out Of Memory) Killer for a process (linux only)

examples

var disableOomKiller = require('disable-oom-killer')

disableOomKiller(function (err) {
	// swallow errors
})
var cp = require('child_process')
var disableOomKiller = require('disable-oom-killer')

var lsr = cp.spawn('ls', [ '-R' ])

disableOomKiller(lsr)

api

var disableOomKiller = require('disable-oom-killer')

disableOomKiller([opts], [cb])

  • opts is an optional object:
    • pid is a string/number of the pid to kill. Defaults to process.pid. If the PID is not running, it will likely cause an error.
    • oom_adj is a string/number of the oom_adj. Defaults to -17
    • oom_score_adj is a string/number of the oom_score_adj. Defaults to -1000
  • cb(err) is an optional callback function. Will call back with an error if on a non-linux system. If no callback is supplied, errors will be thrown.

disableOomKiller.sync([opts])

Synchronous version of disableOomKiller(). Any errors that occur will be thrown.

  • opts - Same as above.

install

With npm do:

npm install disable-oom-killer

license

MIT

Keywords

FAQs

Package last updated on 16 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc