Re: [nodejs] How do you release memory and control usage

2013-01-13 Thread Dave Ryan
try JSONStream https://github.com/dominictarr/JSONStream if you havent heard of streams at all then have a look here https://github.com/substack/stream-handbook and here http://nodejs.org/api/stream.html cheers _dR On Sun, Jan 13, 2013 at 3:34 AM, Ket kettin...@gmail.com wrote: Can you

Re: [nodejs] How do you release memory and control usage

2013-01-12 Thread Ket
Can you please tell me more about the Stream module. I've never heard about it. Thanks On Saturday, January 12, 2013 1:18:47 PM UTC+7, hacksparrow wrote: The large file in JSON format could be the likely cause. The Stream module might be what you want to use. El Capitan -- Job Board:

Re: [nodejs] How do you release memory and control usage

2013-01-11 Thread Luis Reis
Have you tried using a memory profiler ? If you can, run the code on this gist (https://gist.github.com/4073604). It will generate heapdumps that you can analyze later on chrome. Luis -- On Fri, Jan 11, 2013 at 2:17 AM, Ket kettin...@gmail.com wrote: Hi, I've an experience that my app

Re: [nodejs] How do you release memory and control usage

2013-01-11 Thread Ket Nonting
Thank you, For more information. I send large file in a json format continuously and I don't use Express. I'll try a profiler. On Sat, Jan 12, 2013 at 5:56 AM, Luis Reis luis.m.r...@gmail.com wrote: Have you tried using a memory profiler ? If you can, run the code on this gist

Re: [nodejs] How do you release memory and control usage

2013-01-11 Thread Hack Sparrow
The large file in JSON format could be the likely cause. The Stream module might be what you want to use. El Capitan On Sat, Jan 12, 2013 at 8:27 AM, Ket Nonting kettin...@gmail.com wrote: Thank you, For more information. I send large file in a json format continuously and I don't use

[nodejs] How do you release memory and control usage

2013-01-10 Thread Ket
Hi, I've an experience that my app eat up my web server memory and it stop working. How do you release memory when the app is not in use and how do you manage memory allotment so that node.js would not use up all the memory again and again. Thank you. -- Job Board: http://jobs.nodejs.org/