node-bunyan icon indicating copy to clipboard operation
node-bunyan copied to clipboard

Memory Leak: bunyan still running after piped process is killed on Linux

Open bblatnick32 opened this issue 4 years ago • 2 comments

Steps to Reproduce on Linux:

  1. Run tail -f on a file and pipe into bunyan For example: "tail -f /var/log/web-log.log | bunyan"
  2. Ctrl-C to kill tail.
  3. "ps aux | grep bunyan" shows bunyan still running.

bblatnick32 avatar Feb 23 '21 23:02 bblatnick32

Sorry instead of Ctrl-C....exit out of the tab. Start a new tab to run step 3

bblatnick32 avatar Mar 10 '21 20:03 bblatnick32

Interesting. This is happening only when I add a new stream like bunyan-elasticsearch-bulk.

Running stream.end() for each stream source works fine as a workaround for me.

austinfelipe avatar Mar 17 '22 18:03 austinfelipe