Re: !!!HELP!!! Zombies claim Sparc 2 running Solaris 2.5

From: Tony Walton <tony.walton_at_UK.Sun.COM.PLEASE.REMOVE.THIS.TO.REPLY>
Date: 1997/06/13
Message-ID: <33A11B78.63C7_at_UK.Sun.COM.PLEASE.REMOVE.THIS.TO.REPLY>#1/1


Thomas Kyte wrote:
>
> On 12 Jun 1997 13:48:33 GMT, "Bert Lee Medley" <medleyb_at_logica.com> wrote:
>
> >We have a continuously running process, written in C, that connects to an
> >ORACLE database, performs a set of tasks, disconnects, and then sleeps a
> >while using the Solaris C sleep function. No special accommodations are
> >made for sleep. The machine is filling up with <defunct> processes as a
> >result of this code!
> >
> >Doea anyone have any ideas why the <defunct> processes are created and how
> >to prevent them from birthing?
> >
> >
>
> They are the child processes generated when you connect to the database
> (dedicate servers)... You can either:
>
> - use sql*net to connect to the database. Then the listener will be responsible
> for cleaning up the zombies.
>
> - wait on the child processes yourself.

Or tell the kernel you won't be waiting

signal(SIGCLD, SIG_IGN)

Or similar incantations using sigset()

Tony

This posting does not constitute official support from Sun Microsystems. Received on Fri Jun 13 1997 - 00:00:00 CEST

Original text of this message