Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2FB1CD16 for ; Fri, 14 Mar 2014 18:18:46 +0000 (UTC) Received: (qmail 50528 invoked by uid 500); 14 Mar 2014 18:18:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 50502 invoked by uid 500); 14 Mar 2014 18:18:45 -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 50480 invoked by uid 99); 14 Mar 2014 18:18:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 18:18:44 +0000 Date: Fri, 14 Mar 2014 18:18:44 +0000 (UTC) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6510) Deby engine threads not making progress 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-6510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13935376#comment-13935376 ] Mike Matrigali commented on DERBY-6510: --------------------------------------- the posted query plan looks pretty straight forward. I was looking for stuff like views and nested sub queries which have caused issues in the past, but did not see any. All the row estimate counts look reasonable. > Deby engine threads not making progress > --------------------------------------- > > Key: DERBY-6510 > URL: https://issues.apache.org/jira/browse/DERBY-6510 > Project: Derby > Issue Type: Bug > Components: Network Server > Affects Versions: 10.9.1.0 > Environment: Oracle Solaris 10/9, Oracle M5000 32 CPU, 128GB memory, 8GB allocated to Derby Network Server > Reporter: Brett Bergquist > Priority: Critical > Attachments: dbstate.log, derbystacktrace.txt, prstat.log, queryplan.txt > > > We had an issue today in a production environment at a large customer site. Basically 5 database interactions became stuck and are not progressing. Part of the system dump performs a stack trace every few seconds for a period of a minute on the Glassfish application server and the Derby database engine (running in network server mode). Also, the dump captures the current transactions and the current lock table (ie. syscs_diag.transactions and syscs_diag.lock_table). We had to restart the system and in doing so, the Derby database engine would not shutdown and had to be killed. > The stack traces of the Derby engine show 5 threads that are basically making no progress in that at each sample, they are at the same point, waiting. > I will attach the stack traces as well as the state of the transactions and locks. > Interesting is that the "derby.jdbc.xaTransactionTimeout =1800" is set, yet the transactions did not timeout. The timeout is for 30 minutes but the transactions were in process for hours. -- This message was sent by Atlassian JIRA (v6.2#6252)