Re: [nodejs] why this code memory leak

2012-02-29 Thread Linus G Thiel
As I answered on your Stackoverflow question ( http://stackoverflow.com/questions/9496346/why-node-js-memory-leak-when-restart-redis), it's most probably because node_redis will buffer commands when it's offline. On Wed, Feb 29, 2012 at 10:25, jason.桂林 wrote: > If you run below code, and restart

Re: [nodejs] why this code memory leak

2012-02-29 Thread Phoscur
> 9 > 10 > 11 > 12 > 13 > 14 > 15 > 16 > > setInterval(function(){ > > someExpensiveOperation(); > }, 1); > What happens here if the operation takes longer than one millisecond? setInterval will continue to add you operation onto the eventloop while the execution lags behind -> eventloop i

Re: [nodejs] why this code memory leak

2012-02-29 Thread Arnout Kazemier
I dont think so On Feb 29, 2012, at 17:09, jason.桂林 wrote: > exec(function(err, data){}) this won't listen error? > > 在 2012年2月29日 下午7:56,Arnout Kazemier 写道: > You don't have any error listeners assigned to redis > > On Wednesday, February 29, 2012 at 10:25 AM, jason.桂林 wrote: >> If you run be

Re: [nodejs] why this code memory leak

2012-02-29 Thread jason . 桂林
exec(function(err, data){}) this won't listen error? 在 2012年2月29日 下午7:56,Arnout Kazemier 写道: > You don't have any error listeners assigned to redis > > On Wednesday, February 29, 2012 at 10:25 AM, jason.桂林 wrote: > > If you run below code, and restart you redis server, you will got one or > two u

Re: [nodejs] why this code memory leak

2012-02-29 Thread Arnout Kazemier
You don't have any error listeners assigned to redis On Wednesday, February 29, 2012 at 10:25 AM, jason.桂林 wrote: > If you run below code, and restart you redis server, you will got one or two > uncaughtException, but no more errors any more, and then, the memory will > growing very fast, I wa

Re: [nodejs] why this code memory leak

2012-02-29 Thread Jann Horn
Why do you care? When there's an uncaught exception, restart node. Am 29.02.2012 10:25 schrieb "jason.桂林" : If you run below code, and restart you redis server, you will got one or two uncaughtException, but no more errors any more, and then, the memory will growing very fast, I want to know why

[nodejs] why this code memory leak

2012-02-29 Thread jason . 桂林
If you run below code, and restart you redis server, you will got one or two uncaughtException, but no more errors any more, and then, the memory will growing very fast, I want to know why 123456789101112131415161718192021 /** * This code will memory leak, if you restart redis server when the no