It's possible you've got a leak in your application code ( accidentally not calling .end on a response stream is a common issue I've seen ).
There are profiling tools to help track this sort of thing down, but I'm not sure which is the best these days. Usually, I find that a code review is enough to track down this sort of thing. It's also possible there is a leak in core, or in one of the third-party modules you are using. Further investigation seems warranted. On Mon, Jul 30, 2012 at 12:44 PM, Rusty <[email protected]> wrote: > > Howdy folks, > > I have a node program using express, socket.io, and amqp. > > It seems to grow in memory usage very quick under load. By the time it > reaches about 25,000 events complete, process.memoryUsage() reports the > following. > { rss: 1072037888, heapTotal: 54075392, heapUsed: 30898800 } > > That is about 1GB of RSS and 54MB of total heap. The process is almost > 20x the heap size! > > Does that scare anyone else? :-/ > > During the time it is growing, the JS heap usage fluctuates between 10MB > and 42MB, depending on the number of clients connected and the type of > events being processed. > > I am currently running v0.8.4, but I saw the same problem on v0.8.2 > and v0.8.3. > > Anyone else seeing memory issues like this? > > ~Rusty > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
