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