I wonder if opening thousands of files is actually faster than opening [some sweet spot number] of files at a time.
On Thu, Jun 4, 2015 at 4:47 PM, Peter Rust <[email protected]> wrote: > *> what is the best way to determine what my memory footprint is* > > The *easiest* way is process.memoryUsage() > <https://nodejs.org/api/process.html#process_process_memoryusage>, the > *best* way depends on what exactly you want (there are some cool > analytics/memory profiling tools in the aforementioned links) > > *> how can I control it?* > > There is a command-line flag, --max_old_space_size > <https://github.com/joyent/node/wiki/FAQ#what-is-the-memory-limit-on-a-node-process>, > but it only goes to a max of 1.4gb. If you need to go beyond that, this > article > <http://blog.caustik.com/2012/04/11/escape-the-1-4gb-v8-heap-limit-in-node-js/> > discusses options. > > The article also mentions the "ulimit" command, which you may need if > you're on OSX and running up against the default maximum number of files > open simultaneously. > > > > > -- > 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 a topic in the > Google Groups "nodejs" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/nodejs/paiiviSs8P8/unsubscribe. > To unsubscribe from this group and all its topics, 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/de0cc1b7-79e7-41ca-b9b3-d6c7546f0b9c%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/de0cc1b7-79e7-41ca-b9b3-d6c7546f0b9c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *THOMAS BOUTELL, *DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com -- 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/CAORXhG%2BrUZcq3Wcy5uhRoNJUvbAnYUwniwcXe0V2np9Hf90Ntw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
