TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Node.js memory optimization

5 pointsby uptownhrover 10 years ago
Never noticed this before but I recently stated running multiple node processes on my server and each process is eating up bunch of memory. 100+ mb. Is this because node processes do not share resources? What is the best way to combat this? Is the only option to combine all processes into one?<p>Another question is in regards to modules and memory. If your single node process loads a module that is also loaded inside another module, is the module loaded multiple times? Or is it shared inside a single process?

1 comment

gothyover 10 years ago
Node processes do not share resources. Exception is some shared libraries that they might use like any other process on the system.<p>Yes, modules are loaded and used independently in V8. Node just wraps it around and adds some additional features.