monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Monit and Apache-restart


From: Martin Pala
Subject: Re: [monit] Monit and Apache-restart
Date: Tue, 15 Jun 2010 18:26:37 +0200

The 'totalmem' counts memory of all apache children (http processors) ... it is 
possible that during peaks lot of children are spawned to handle lot of 
parallel requests and the summary will exceed 200MB. You should review the 
limits and if 200MB is OK situation, then either rise the limit or disable this 
check ... it depends on your enviroment (how much memory the server has, etc.)

Regards,
Martin


On Jun 7, 2010, at 9:27 AM, Kai Behncke wrote:

> Dear users,
> 
> I use monit at my server. The problem is, that nearly 7-8 times a day (or 
> more) my Apache is shut down now and restarted. 
> E.g. I get a mail from monit like:
> 
> Resource limit matched Service apache2
> 
>    Date:        Fri, 04 Jun 2010 10:51:09 +0200
>    Action:      restart
>    Host:        h1765421
>    Description: 'apache2' total mem amount of 210136kB matches resource limit 
> [total mem amount>204800kB]
> 
> Your faithful employee,
> monit
> 
> ------------------------------------
> That entry I have in my monit-config:
> 
>  check process apache2 with pidfile /var/run/apache2.pid
>    start program = "/etc/init.d/apache2 start"
>    stop program  = "/etc/init.d/apache2 stop"
>    if cpu > 60% for 2 cycles then alert
>    if cpu > 80% for 5 cycles then restart
>    if totalmem > 200.0 MB for 5 cycles then restart
>    if children > 250 then restart
> #    if loadavg(5min) greater than 10 for 8 cycles then stop
>    if failed host www.tourismus-maps.de port 80 protocol http
>    then restart
> ----------------------------------------
> 
> Is    "if totalmem > 200.0 MB for 5 cycles then restart" maybe not the right 
> entry in the config, should I better use someting like 
>> 500.0 MB ??
> Or might it be more a Apache/Server problem?
> 
> Thank you very much and best regards, Kai
> 
> 
> 
> 
> 
> 
> -- 
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

[Prev in Thread] Current Thread [Next in Thread]