Jason Yates | 20 Jul 2012 15:39
Favicon

Smokeping FCGI Issue?

Hi,

 

I’m noticing an issue with the latest version of Smokeping & FCGI in that it appears to spawn new processes without killing old ones correctly and I’m wondering if anybody else sees the same. Over a period of a week or two this slowly fills up the memory on my server until either the box crashes or I manage to kill the processes.

 

Over the course of the last 10 days I ended up with 200+ of the following processes which I’m assuming is attributed to FCGI as if I hit the GUI a few times it will spawn another one.

 

apache    1088     1  0 03:19 ?        00:00:03 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config

apache    2794     1  0 11:47 ?        00:00:02 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config

apache    7109     1  0 12:40 ?        00:00:03 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config

apache    7607     1  0 06:32 ?        00:00:04 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config

 

For now I have a script that runs periodically and kills any old processes but I haven’t done anything special with smokeping or FCGI & I’m using the .fcgi that comes bundled with smokeping – is there something I’ve missed or is this a bug?

 

Also along the same lines – I find that I have to restart apache after updating the config file in order to see the changes reflected in the GUI.

 

Thanks in advance.

 

--------------------------

Regards,

Jason Yates

 


________________________________________________________________________
In order to protect our email recipients, Betfair Group use SkyScan from
MessageLabs to scan all Incoming and Outgoing mail for viruses.

________________________________________________________________________
_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Eric Brander | 20 Jul 2012 15:44
Favicon

Re: Smokeping FCGI Issue?

On Fri, Jul 20, 2012 at 7:39 AM, Jason Yates <Jason.Yates <at> betfair.com> wrote:
> Hi,
>
> Also along the same lines – I find that I have to restart apache after
> updating the config file in order to see the changes reflected in the GUI.
>
>

Jason,

I can't speak to your first question but on the second, this has to do
with how FastCGI caches the CGI and speeds up page generation. There's
no way around it and it seems that restarting apache is the best
solution. I think eventually it will get stale and refresh on its own
but I'm not sure on that one.

Regards,

Eric

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Tobias Oetiker | 20 Jul 2012 16:16
Picon
Gravatar

Re: Smokeping FCGI Issue?

Hi Jason,

Today Jason Yates wrote:

> Hi,
>
> I'm noticing an issue with the latest version of Smokeping & FCGI in that it appears to spawn new processes
without killing old ones correctly and I'm wondering if anybody else sees the same. Over a period of a week
or two this slowly fills up the memory on my server until either the box crashes or I manage to kill the processes.
>
> Over the course of the last 10 days I ended up with 200+ of the following processes which I'm assuming is
attributed to FCGI as if I hit the GUI a few times it will spawn another one.
>
> apache    1088     1  0 03:19 ?        00:00:03 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config
> apache    2794     1  0 11:47 ?        00:00:02 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config
> apache    7109     1  0 12:40 ?        00:00:03 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config
> apache    7607     1  0 06:32 ?        00:00:04 /usr/bin/perl /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config
>
> For now I have a script that runs periodically and kills any old processes but I haven't done anything
special with smokeping or FCGI & I'm using the .fcgi that comes bundled with smokeping - is there something
I've missed or is this a bug?
>
> Also along the same lines - I find that I have to restart apache after updating the config file in order to see
the changes reflected in the GUI.

this depends on the configuration of your webservers fastcgi module
... in apache, you can configure how many instances get spawnd and
how long they stick around ...

cheers
tobi

>
> Thanks in advance.
>
> --------------------------
> Regards,
> Jason Yates
>
>
> ________________________________________________________________________
> In order to protect our email recipients, Betfair Group use SkyScan from
> MessageLabs to scan all Incoming and Outgoing mail for viruses.
>
> ________________________________________________________________________

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 775 9902 / sb: -9900

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


Gmane