Results 1 to 2 of 2

Thread: libexec/zmmtaconfig not reaping children, bug?

  1. #1
    jeanphil is offline Starter Member
    Join Date
    Jun 2007
    Posts
    2
    Rep Power
    7

    Default libexec/zmmtaconfig not reaping children, bug?

    Hi,

    We have a zimbra (4.5.5_GA_838) installation on RHEL 4 and after a while, we get a lot of java zombie processes hanging around:

    zimbra 10339 6568 0 Jun12 ? 00:00:00 [java] <defunct>
    zimbra 14581 6568 0 Jun12 ? 00:00:00 [java] <defunct>
    zimbra 15254 6568 0 Jun12 ? 00:00:00 [java] <defunct>
    zimbra 15822 6568 0 Jun12 ? 00:00:01 [java] <defunct>


    The PPID is 6568 which in this case is zmmtaconfig. I checked the code and found out that catchSignal() is used to catch SIGCHLD signals which are ignored. I changed the code to the following:

    HTML Code:
    sub catchSignal {
      my $sig = shift;
      if ($sig eq "CHLD") {
        while ((my $pid = waitpid(-1, WNOHANG)) > 0) {
          logMsg(2, "Reaping child pid '$pid'");
        }
        return;
      }
      logMsg(3, "Shutting down. Received signal $sig");
      exit 0;
    }
    And it fixed the problem, no more zombie processes. According to the perl documentation, another way to go about it would be to set the SIGCHLD handler to 'IGNORE' which would let perl cleanup child processes but in that case we wouldn't be able to log about them...

    Ciao
    Jean-Philippe Bouchard
    Sitepak Inc.

  2. #2
    jeanphil is offline Starter Member
    Join Date
    Jun 2007
    Posts
    2
    Rep Power
    7

    Default

    Nevermind, turns out there was a already a bug report in bugzilla (Bug 17457 - Lots of defunct "java" processes on RHEL4 after upgrade). I attached my fix to it...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Backups fail after workaround for bug 10827
    By warbirdcharles in forum Administrators
    Replies: 1
    Last Post: 07-17-2007, 12:07 PM
  2. will be the accent char bug fixed anytime soon?
    By lfarkas in forum Developers
    Replies: 1
    Last Post: 05-15-2006, 03:19 AM
  3. serious IMAP download bug (6326)
    By ericding in forum Developers
    Replies: 5
    Last Post: 04-05-2006, 10:34 AM
  4. i18n, bug 5912 and other considerations
    By Kafka in forum I18N/L10N - Translations
    Replies: 9
    Last Post: 02-22-2006, 04:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •