On Tue, 6 Mar 2001, Daniel wrote:
> Hi, I'm having a bit of trouble using Apache::Speedlimit
...
> After running for about 5 minutes the handler dies with the following in 
> the logfile:
> 
> 
> [Tue Mar  6 17:32:07 2001] [error] [Tue Mar  6 17:32:07 2001] null: 
> Munged shared memory segment (size exceeded?)

I would suggest that you ditch Apache::Speedlimit, since it uses
IPC::Shareable which is known to have some performance issues and is
giving you grief about memory size.  Do a quick search in the list
archives for Randal's Stonehenge::Throttle code.  It's fairly easy to
adapt it to use cookies and to count hits within a time window rather
than CPU.  It uses files, and doesn't have to lock them.  Quite fast under
Linux, and even works over NFS if you need a clustered solution.
- Perrin

Reply via email to