On Wed, Aug 13, 2014 at 9:54 PM, Sridhar <[email protected]> wrote:
> Hi Ben,
>
> Thanks for quick response, No that doesn't seem to work. I have  tried
> recompiling node (0.10.30) with changes that caustik suggested..
> (Or) may be I am failing to understand if the heap is what I set when
> starting node.
>
> I'm starting node with the following options.
>
> ../bin/node --max_old_space_size=8192 --max_executable_size=8500
> --max_new_space_size=400000 --trace-gc --trace-gc-nvp app.js
>
> I am printing memoryUsage, This is what i get , am i missing something ?
>
> 7:51:43pm [app]:  Memory  { rss: 42717184, heapTotal: 39765312, heapUsed:
> 19030552 } in bytes

I'm not 100% sure what you're asking but I suspect that your confusion
stems from the fact that V8 and node.js allocate memory on demand.
--max_old_space_size sets the upper limit.  You can set it to 8 GB but
if your application uses only 40 MB, then only 40 MB is used.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to