Thanks for reporting this. I’m sure of how the stats UI and logs differ in where they’re getting their information from so will run this by the dev team and will find out.
Took me a while to understand where the problem was! In getMemoryUsage, you’re subtracting the memory usage of your process, so the thing you’re measuring is how much memory our internal server is using
Just return total_rss, or total_rss minus a fixed amount of memory (say 60MB, it won’t take much more than that anyway). Hope this helps
Could very well be something wrong with the module, but it seems very strange and I’m pretty sure I had the same problem with the lzma-native module. I’ll keep investigating.
Update: Looks like it is a problem with the node-zstd module. The lzma-native module processes a similar file well past the 10k lines mark (it’s at 30k as of writing with no sign of stopping):