The stupid question is the question not asked | |
PerlMonks |
Re: Perl Daemonsby Joost (Canon) |
on Jul 28, 2004 at 17:43 UTC ( [id://378130]=note: print w/replies, xml ) | Need Help?? |
Perl does return memory to the OS, just not all of it all the time. :-)
Anyway, I'd go for the solution the apache webserver uses: run a really simple controlling process, that fork()s off children to do the real work, and kill them after handling a certain number of requests. That way, you only have to worry about bloat in the controlling program. In fact, you can even use code in the children that you KNOW are not safe in the long run. update: typo fixed ("the solution")
In Section
Seekers of Perl Wisdom
|
|