I've certainly seen surprising amounts of RSS used for trivial apps like the "hello world" example under node 0.12 That starts with about 20M of RSS, hit it hard with a simple benchmarking client like 'ab' and it shoots up to 70M of RSS. What on earth could it possibly need 50M for just to return the string 'hello world' over HTTP?
I realise node.js is constrained by the behaviour of V8, but still, can't V8 do any better? I don't know what your app does but an RSS of 300MB sounds pretty scary to me. On Saturday, 28 February 2015 02:50:43 UTC, Sanath Kumar Ramesh wrote: > > Hello, > > Few hours after switching to Node 0.12, RSS in my node process in > production started quickly climbing to 1GB. With Node 0.10, my node > process's RSS hovers around 300MB and rarely goes up to 500MB. When I > switched back to Node 0.10, memory was back under control. > > I reproduced the problem locally by making a bunch of parallel requests to > my server. RSS on Node 0.10 maxed out at around 700MB, and dropped to > ~500MB after the requests stopped. But with Node 0.12, memory stayed at > around 1.2GB for many minutes after requests stopped. I called global.gc() > couple of minutes after stopping requests. 0.12 dropped to 600MB and 0.10 > dropped to around 300MB. When I called global.gc() a few more times, RSS on > 0.12 will eventually drop to around 300MB. > > Is the garbage collector on Node 0.12 less aggressive? Is this an intended > side-effect of switching to 0.12? I couldn't find any information regarding > this in the release notes too. > > Thanks, > Sanath > > PS: I looked at heap dumps before and after local repro requests. I didn't > find anything alarmingly growing or wrong. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/8a8ac5ff-a7f5-42ba-9bd3-214eded34e7f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
