Chris Brat wrote:
> Unfortunately I worked on an existing application that did run out of
> file-handles and caused the environent to sieze.
>
> To manage the problem the support team wrote a script to periodically
> check the number of open filehandles and when a pre-defined limit was
> reached the application would reboot, to prevent the environment
> siezing.
Good sound support engineering
In fact, if you have a leak in code you can't get at, such as the OS or a
third-party library, then there may be nothing you can do except restart at
intervals. I think it's a good idea for long-running processes to restart
themselves automatically from time to time -- just as a precaution.
-- chris