Skip to content

Instantly share code, notes, and snippets.

@dlabey
Created September 2, 2015 19:15
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 dlabey/ebbc8e2bf93f34d9bbaa to your computer and use it in GitHub Desktop.
Save dlabey/ebbc8e2bf93f34d9bbaa to your computer and use it in GitHub Desktop.
Node Garbage Collector
if (global.gc) {
global.gc();
} else {
console.log('Garbage collection unavailable, pass --expose-gc when launching node to enable forced garbage collection');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment