Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 46432 invoked from network); 3 Aug 2009 15:33:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 15:33:32 -0000 Received: (qmail 85372 invoked by uid 500); 3 Aug 2009 15:33:37 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 85288 invoked by uid 500); 3 Aug 2009 15:33:37 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 85271 invoked by uid 99); 3 Aug 2009 15:33:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 15:33:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 15:33:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD7DB234C045 for ; Mon, 3 Aug 2009 08:33:14 -0700 (PDT) Message-ID: <1849672866.1249313594827.JavaMail.jira@brutus> Date: Mon, 3 Aug 2009 08:33:14 -0700 (PDT) From: "Damien Katz (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-370) If the CouchDB vm is dies or is killed, view subprocesses (js) are not automatically killed In-Reply-To: <1038255149.1243706647320.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738390#action_12738390 ] Damien Katz commented on COUCHDB-370: ------------------------------------- While I agree we should prevent unnecessary VM exits, we can't prevent them all and fortunately the VM is designed to terminate and restart quickly. This is part of CouchDB's design too, restarts are always fast. A correct solution is one or more watchdog processes that watch the VM and the subprocess, and if the VM dies, it kills all the subprocesses and then itself. > If the CouchDB vm is dies or is killed, view subprocesses (js) are not automatically killed > ------------------------------------------------------------------------------------------- > > Key: COUCHDB-370 > URL: https://issues.apache.org/jira/browse/COUCHDB-370 > Project: CouchDB > Issue Type: Bug > Components: JavaScript View Server > Affects Versions: 0.9 > Reporter: Damien Katz > Priority: Minor > > If CouchDB dies or is killed, it's subprocess are not forcefully killed. If the subprocesses are in infinite loops, they will never die. We need some kind of external watchdog process, or processes that kill the subprocess automatically if the CouchDB erlang vm dies. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.