RE: POE process getting too busy

Markus Jansen <[email protected]> Tue, 21 Aug 2012 12:09:53 +0200
Newsgroups gmane.comp.lang.perl.poe
Message-ID <4682B762ECD8E9428E39B8ED2EEDF3EA48C3F775CC@ESESSCMS0365.eemea.ericsson.se>
Hi,

thanks a lot for the immediate answer, I also changed the code immediately,=
 and started another long-term test run.
Just found the process 99% busy again - the good news is that the signal pi=
pe does not seem to be the culprit :-).

Any other suggestions are highly welcome ...

Thanks & best regards,
	Markus

-----Original Message-----
From: Tod McQuillin [mailto:[email protected]]=20
Sent: den 16 augusti 2012 02:46
To: Markus Jansen
Cc: [email protected]
Subject: Re: POE process getting too busy

On Wed, 15 Aug 2012, Markus Jansen wrote:

> I have discovered an annoying phenomenon, where after some while=20
> (days, weeks) a process (which is part of a multi-server POE network) all=
 of a sudden goes berzerk by using all resources of its CPU.
> The good news is that the process itself remains fully functional, but fr=
om a system usage/load perspective, the situation is quite intolerable.

This sounds very familiar to me.

I encountered a similar problem on solaris and was able to make it stop by =
putting the following line of code at the beginning of my POE program:

BEGIN { eval "sub POE::Kernel::USE_SIGNAL_PIPE () { 0 }" }

There seems to be a problem with the signal pipe on some platforms, but I h=
aven't yet done more research to track down what's going wrong.
--
Tod