Affects Version/s: None
Fix Version/s: None
currently -S option of couchjs sets stack chunk size for js contexts
Documentation recommends 8K and I have seen cases where it was raised to 1G+ in production!. That doesn't seem right at all and also probably kills performance and eats memory.
Docs from above say:
Instead we should be setting the max gc value which is set in the runtime
Experimentally a large maxbytes seems to fix out of memory error caused by large views. I suspect that it works because it stops GC. At some point we probably drops some object, GC collects them and we crash...