Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2001 10:02:08 +0100 (BST)
From:      Alex Dyas <alex@twowaytv.co.uk>
To:        Graham White <graham@bravenet.com>
Cc:        FreeBSD-questions <FreeBSD-questions@FreeBSD.ORG>
Subject:   Re: Apache Perl Script
Message-ID:  <20010806095056.Y16514-100000@r2d2.twowaytv.co.uk>
In-Reply-To: <CIEEIPPHEMBKLIMPEJFBKEOKCDAA.graham@bravenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Not as such no. having said that tho, if it's apache particularly you're
interested in, try mod_status ( http://httpd.apache.org/docs/mod/mod_status.html
) and turning extended status on.  apache's status information is very useful
for assessing load.  writing a perl script to hit this page and process the
numbers shouldn't be too hard.

as a side note, i'm not sure restarting processes when they get overloaded is
the best course of action.  sounds like a larger problem needs fixing.

alex..

On Fri, 3 Aug 2001, Graham White wrote:

> Does anyone have an example of a perl script that continually loops checking
> for load average and restarts a program (like Apache) if it is (loadaverage)
> over a certain amount.
> Thanks
>
> GW
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010806095056.Y16514-100000>