Is it possible to reduce NodeJS memory usage (e.g., Ghost blogging platform)
Solution 1:
Ghost runs a single node process per instance. I believe what you're seeing there is that htop
shows the underlying threads of processes, so it looks like you have one Ghost instance running but node/v8 has five active threads. Despite JavaScript being single-threaded, the engine/vm itself can be multi-threaded.
We (the Ghost project) do pay attention to the memory footprint so that we can do whatever we can do keep it as small as possible. I personally think 80MB is pretty good but obviously different people and situations have different criteria for what's "pretty good."