joyent/node — Issue #2181: [domains, crazy] Allow optional domain-based http connection count, buffer size sum, cpu time counter
Author: thejh
Created: 2011-11-24 20:49:08+00:00
State: open

Crazy idea, might be useful for hunting down leaks or high CPU usage or even programmatically detecting who is trying to kill a server by maxing out its CPU usage, filling up its RAM, forcing it to do many HTTP requests and whatever: How about adding a property to domains that, when set to true, tracks some things that happen inside of the domain? Some ideas:

- memory usage of `Buffer`s (should hook into GC or whatever to decrease count when buffers get collected)
- CPU usage
- open pending HTTP requests
- open sockets