Lighttpd and memory

I’m finding lighttpd rather hard to work with on my PS server. I can watch the memory every 10 seconds and it’ll be going along just fine, well under the limit and suddenly it’ll be way above and lighttpd will then crash because it’s out of memory. Is there any way to tune it to be more restrictive on how much memory it uses.

I’ve got a nice cron script and monitor that dynamically adjust the memory based on usage, but it runs at 5 minute intervals and if I can’t see it in 10 second intervals, then it certainly won’t at 5 minutes…

Any ideas?