Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C10A810A1D for ; Mon, 8 Dec 2014 09:19:15 +0000 (UTC) Received: (qmail 82426 invoked by uid 500); 8 Dec 2014 09:19:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 82296 invoked by uid 500); 8 Dec 2014 09:19:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 82123 invoked by uid 99); 8 Dec 2014 09:19:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 09:19:15 +0000 Date: Mon, 8 Dec 2014 09:19:15 +0000 (UTC) From: "Mark Thomas (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (POOL-281) Infinite loop 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/POOL-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Thomas updated POOL-281: ----------------------------- Fix Version/s: (was: 2.2) Labels: (was: patch) Summary: Infinite loop (was: Dead Loop) Clean up report attributes. > Infinite loop > ------------- > > Key: POOL-281 > URL: https://issues.apache.org/jira/browse/POOL-281 > Project: Commons Pool > Issue Type: Bug > Affects Versions: 2.2 > Environment: Linux,JDK1.6.23,Tomcat6 > Reporter: lqm > > I use the pool2 as a tcp connection pool,when I start tomcat,one thread occur an infinite loop In the advance() method,but it sometimes happens, not always,the java statck information is as follows: > Thread 2194: (state = IN_JAVA) > - org.apache.commons.pool2.impl.LinkedBlockingDeque$AbstractItr.advance() @bci=42, line=1163 (Compiled frame; information may be imprecise) > - org.apache.commons.pool2.impl.LinkedBlockingDeque$AbstractItr.next() @bci=29, line=1184 (Interpreted frame) > - org.apache.commons.pool2.impl.GenericKeyedObjectPool.clearOldest() @bci=85, line=741 (Interpreted frame) > - org.apache.commons.pool2.impl.GenericKeyedObjectPool.create(java.lang.Object) @bci=56, line=991 (Interpreted frame) > - org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(java.lang.Object, long) @bci=59, line=356 (Interpreted frame) > - org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(java.lang.Object) @bci=6, line=277 (Interpreted frame) > Thread 2195: (state = BLOCKED) > - sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame) > - java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=158 (Interpreted frame) > - java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt() @bci=1, line=811 (Interpreted frame) > - java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(java.util.concurrent.locks.AbstractQueuedSynchronizer$Node, int) @bci=48, line=842 (Interpreted frame) > - java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=112, line=2033 (Interpreted frame) > - org.apache.commons.pool2.impl.LinkedBlockingDeque.pollFirst(long, java.util.concurrent.TimeUnit) @bci=50, line=569 (Interpreted frame) > - org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(java.lang.Object, long) @bci=105, line=363 (Interpreted frame) > - org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(java.lang.Object) @bci=6, line=277 (Interpreted frame) > -- This message was sent by Atlassian JIRA (v6.3.4#6332)