Re: [users@httpd] "monitor hooks" docs in apache 2.2

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

 



On Sunday 12 February 2006 13:48, Jacqui Caren wrote:
> Is there any documentation regarding the 'monitor hooks' feature of
> apache2.2?

Not really.  There's the "what's new" page and the source code.
When my book comes out it'll say just a little more.

The vital question here is whether you have a proper understanding of
Apache's hooks.  Since it's you, I'll guess the answer is yes - or at least
that it will be by the time you deploy something with the monitor hook.
Be aware that it's very different to other hooks, and could be dangerous.

The monitor hook runs periodically in the parent process.  The original
motivation for it was to support a "watchdog" module, that keeps watch
on the scoreboard and kills any child processes that appear to be stuck
in a state for longer than some max time.  That saves the server from the
worst efects of buggy applications, or could be used in the manner of
ulimit to place limits on users of a hosting service.

The conceptual gotcha is being in the parent process (which also means
it'll run as root).  The practical gotcha is that you need to take a lot more
care over using the pool, or you'll get a memory leak (or worse).

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux