what is the minmum memory requirement for nodejs?

2,223 views
Skip to first unread message

李白字一日

unread,
Sep 18, 2011, 1:24:44 PM9/18/11
to nod...@googlegroups.com
and how to reduce the memory space?
i start node command
and found it take 213mb?
it is true or i am wrong?

"
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
4049 eric      20   0  614m 9500 4524 S  0.0  7.8   0:00.09 node
"

Aria Stewart

unread,
Sep 19, 2011, 9:28:09 PM9/19/11
to nod...@googlegroups.com

That's a virtual size of 614mb, and a real memory resident of 9.5mb.

Virtual is what's allocated, including memory maps. Resident set size is "real" RAM use -- not counting swap.

----
Aria Stewart

李白字一日

unread,
Sep 20, 2011, 3:37:13 AM9/20/11
to nod...@googlegroups.com
is it possible to configure the default size for node memory space?
i would like to run a node server in a tiny vps.

Zang MingJie

unread,
Sep 20, 2011, 5:00:12 AM9/20/11
to nod...@googlegroups.com
It depends on which js engine you r using.

you can try --max-old-space-size=512 on v8, the unit is MB.

李白|字一日

unread,
Sep 20, 2011, 5:37:26 AM9/20/11
to nod...@googlegroups.com
thanks.
it works perfectly:)

2011/9/20 Zang MingJie <zealo...@gmail.com>
It depends on which js engine you r using.

you can try --max-old-space-size=512 on v8, the unit is MB.

--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply all
Reply to author
Forward
0 new messages