FAQ
hi, everybody. i have problem above. i see it when me run script then:

var array = [];
for (var i = 0; i < 100000000; i++) {
array.push(i);
}
console.log("finish");
console.log(array[2000000]);
console.log(array.length);

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

---
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 nodejs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Greelgorke at Mar 7, 2014 at 12:14 pm
    there is a cap of how much memory v8 can handle, it's about 1,7GB

    Am Freitag, 7. März 2014 10:11:47 UTC+1 schrieb Le Lee:
    hi, everybody. i have problem above. i see it when me run script then:

    var array = [];
    for (var i = 0; i < 100000000; i++) {
    array.push(i);
    }
    console.log("finish");
    console.log(array[2000000]);
    console.log(array.length);
    --
    --
    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 nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Karl Ostendorf at Mar 7, 2014 at 1:42 pm

    On 07.03.2014, at 13:13, greelgorke wrote:

    there is a cap of how much memory v8 can handle, it's about 1,7GB

    Care to explain? Normally an app has access to as much RAM as it can acquire.


    --
    karl | karl@ostendorf.com | https://ostendorf.com/

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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Greelgorke at Mar 7, 2014 at 2:23 pm
    since v8 is the js engine of chrome, it was designed to be a good cittizen
    on client machines. plus in browser there is rarely a need fo so much
    memory in js. so v8 caps its memory size to protect the host system. here
    is the faq
    https://github.com/joyent/node/wiki/FAQ#wiki-what-is-the-memory-limit-on-a-node-process

    Am Freitag, 7. März 2014 14:42:24 UTC+1 schrieb Karl Ostendorf:

    On 07.03.2014, at 13:13, greelgorke <greel...@gmail.com <javascript:>>
    wrote:
    there is a cap of how much memory v8 can handle, it's about 1,7GB

    Care to explain? Normally an app has access to as much RAM as it can
    acquire.


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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Karl Ostendorf at Mar 7, 2014 at 2:56 pm

    On 07.03.2014, at 15:23, greelgorke wrote:

    was designed to be a good cittizen on client machines
    Thanks for that. Makes sense while at the same forcing dev to distribute large tasks across processes. I like that.


    --
    karl | karl@ostendorf.com | https://ostendorf.com/

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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Le Lee at Mar 8, 2014 at 3:02 am
    Thanks everybody, i have read "memory limit on a node process" in
    https://github.com/joyent/node/wiki/FAQ#wiki-what-is-the-memory-limit-on-a-node-process<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjoyent%2Fnode%2Fwiki%2FFAQ%23wiki-what-is-the-memory-limit-on-a-node-process&sa=D&sntz=1&usg=AFQjCNFB39Fy4rNzGzueT9bKj0ryWLDs5w>

    But i want to user variable global cache, so memory of it is very large.
    Have a way for it?



    Vào 21:56:14 UTC+7 Thứ sáu, ngày 07 tháng ba năm 2014, Karl Ostendorf đã
    viết:

    On 07.03.2014, at 15:23, greelgorke <greel...@gmail.com <javascript:>>
    wrote:
    was designed to be a good cittizen on client machines
    Thanks for that. Makes sense while at the same forcing dev to distribute
    large tasks across processes. I like that.


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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Karl Ostendorf at Mar 8, 2014 at 7:12 am

    On 08.03.2014, at 04:02, Le Lee wrote:

    But i want to user variable global cache, so memory of it is very large. Have a way for it?
    Try Redis or Riak. Node is the wrong tool for the job but Node has great Redis and Riak client modules.

    --
    Ostendorf Software
    https://ostendorf.com/
    mailto: karl@ostendorf.com



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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Le Lee at Mar 10, 2014 at 3:46 am
    Tks @Karl Ostendorf
    I have create socketio so when connection become big enough about a
    few million. It will die.
    I trying edit source v8 of node and build it. but i not successful.

    i
    reading: http://blog.caustik.com/2012/04/11/escape-the-1-4gb-v8-heap-limit-in-node-js/





    Vào 14:12:46 UTC+7 Thứ bảy, ngày 08 tháng ba năm 2014, Karl Ostendorf đã
    viết:
    On 08.03.2014, at 04:02, Le Lee <letie...@gmail.com <javascript:>> wrote:

    But i want to user variable global cache, so memory of it is very large.
    Have a way for it?

    Try Redis or Riak. Node is the wrong tool for the job but Node has great
    Redis and Riak client modules.


    Ostendorf Software
    https://ostendorf.com/
    mailto: ka...@ostendorf.com <javascript:>


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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Greelgorke at Mar 10, 2014 at 7:44 am
    you can avoid this cap with the cluster module. if you create few million
    socket.io connections, then i asume memory isn't the only thing you have to
    handle. also the cpu will be the problem.

    Am Montag, 10. März 2014 04:46:12 UTC+1 schrieb Le Lee:
    Tks @Karl Ostendorf
    I have create socketio so when connection become big enough about a
    few million. It will die.
    I trying edit source v8 of node and build it. but i not successful.

    i reading:
    http://blog.caustik.com/2012/04/11/escape-the-1-4gb-v8-heap-limit-in-node-js/





    Vào 14:12:46 UTC+7 Thứ bảy, ngày 08 tháng ba năm 2014, Karl Ostendorf đã
    viết:
    On 08.03.2014, at 04:02, Le Lee wrote:

    But i want to user variable global cache, so memory of it is very
    large. Have a way for it?

    Try Redis or Riak. Node is the wrong tool for the job but Node has great
    Redis and Riak client modules.


    Ostendorf Software
    https://ostendorf.com/
    mailto: ka...@ostendorf.com


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

    ---
    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 nodejs+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
categoriesnodejs
postedMar 7, '14 at 9:11a
activeMar 10, '14 at 7:44a
posts9
users3
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2022 Grokbase