Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 89815 invoked from network); 17 Nov 2010 15:49:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 15:49:10 -0000 Received: (qmail 52425 invoked by uid 500); 17 Nov 2010 15:49:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 52211 invoked by uid 500); 17 Nov 2010 15:49:39 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 51543 invoked by uid 99); 17 Nov 2010 15:49:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 15:49:38 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 15:49:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAHFnHLf002179 for ; Wed, 17 Nov 2010 15:49:17 GMT Message-ID: <17485928.150231290008957301.JavaMail.jira@thor> Date: Wed, 17 Nov 2010 10:49:17 -0500 (EST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4856) Add thread dump information when derby crash MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932993#action_12932993 ] Kristian Waagan commented on DERBY-4856: ---------------------------------------- Another point supporting Bryan's suggestion, is that derby.log is by default overwritten. This can be, and hopefully is, changed in production environments, but I still think a separate file is an approach worth considering (we may have to deal with write privileges then). > Add thread dump information when derby crash > -------------------------------------------- > > Key: DERBY-4856 > URL: https://issues.apache.org/jira/browse/DERBY-4856 > Project: Derby > Issue Type: Bug > Components: Services > Reporter: Lily Wei > Priority: Minor > Attachments: corruptdb.zip, derby-4856-1a.diff, derby.log > > > On system crash or session ending error, Derby should dump as much information as possible. Such as: forcing a javacore if possible or at least thread dump and system environment information. This should only occur if a running session crashes not on boot error due to fail recovery etc. > The IBM jvm provides a way to programmatically dump a javacore. i.e. com.ibm.jvm.Dump.JavaDump() And, the SUN jvm will force a thread dump using the Unsafe class and there may be a better way. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.