--max-old-space-size v8 options not working with sizes>1900 in v0.8.x

845 views
Skip to first unread message

Thomas Fritz

unread,
Aug 3, 2012, 10:36:24 AM8/3/12
to nodejs list
Hi,

I just tried to increase the heap size of v8.

<code>
node --max-old-space-size=4096 script.js
</code>

Every size above about 1900 is ignored.
I am definately on a x86_64 machine. So higher limits should work.
Has this behaviour maybe changed in the past. It is described to be
working here http://blog.caustik.com/2012/04/11/escape-the-1-4gb-v8-heap-limit-in-node-js/
at least.

I tried it with v0.8.4 and v0.8.5. I installed the versions with nvm.

Has anyone the same behaviour?


Kind regards

---

Thomas FRITZ
web http://fritzthomas.com
twitter http://twitter.com/thomasf

Thomas Fritz

unread,
Aug 3, 2012, 4:01:21 PM8/3/12
to nodejs list
How do i increase the maximum memory a single node process can use?
I tried under Linux and Mac OSX and i could not increase it with the max-old-space-size.
Every value above 1900 gets ignored. Is this intended behaviour? Or am i doing something
wrong?

Kind regards

Ben Noordhuis

unread,
Aug 3, 2012, 6:45:04 PM8/3/12
to nod...@googlegroups.com
On Fri, Aug 3, 2012 at 4:36 PM, Thomas Fritz <frit...@gmail.com> wrote:
> Hi,
>
> I just tried to increase the heap size of v8.
>
> <code>
> node --max-old-space-size=4096 script.js
> </code>
>
> Every size above about 1900 is ignored.
> I am definately on a x86_64 machine. So higher limits should work.
> Has this behaviour maybe changed in the past. It is described to be
> working here http://blog.caustik.com/2012/04/11/escape-the-1-4gb-v8-heap-limit-in-node-js/
> at least.
>
> I tried it with v0.8.4 and v0.8.5. I installed the versions with nvm.
>
> Has anyone the same behaviour?

No. What makes you think that it's ignored? It seems to work for me.

Marcel Laverdet

unread,
Aug 3, 2012, 6:50:51 PM8/3/12
to nod...@googlegroups.com
I am definately on a x86_64 machine. So higher limits should work.

Are you running 64 bit node? What does `process.arch` return for you?


--
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