I\'m writing a node.js application which stdout is piped to a file. I\'m writing everything with console.log. After a while my Application reaches the 1GB Limit and stops. T
Don't.
What you want to do is pause()
your input when the output is full, like the pump()
method does, then resume()
it when you've got space to write. If not, your process balloons out to gargantuan size.
You probably want to use the more direct outputStream
stuff for that, though, or the write()
call, not console.log()
.