Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E5A4200BB6 for ; Fri, 4 Nov 2016 17:57:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5D05B160B04; Fri, 4 Nov 2016 16:57:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD760160AFE for ; Fri, 4 Nov 2016 17:56:59 +0100 (CET) Received: (qmail 32227 invoked by uid 500); 4 Nov 2016 16:56:58 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 32146 invoked by uid 99); 4 Nov 2016 16:56:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 16:56:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 747322C1F56 for ; Fri, 4 Nov 2016 16:56:58 +0000 (UTC) Date: Fri, 4 Nov 2016 16:56:58 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-6482) Possible thread leak ? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 16:57:00 -0000 [ https://issues.apache.org/jira/browse/AMQ-6482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636979#comment-15636979 ] ASF subversion and git services commented on AMQ-6482: ------------------------------------------------------ Commit 450cabe4ead1fb78eec2e94013d2868a5bf864da in activemq's branch refs/heads/master from [~cshannon] [ https://git-wip-us.apache.org/repos/asf?p=activemq.git;h=450cabe ] https://issues.apache.org/jira/browse/AMQ-6482 Adding a timeout for websocket sends to prevent the transport thread from getting stuck and blocking. The default is 30 seconds. > Possible thread leak ? > ---------------------- > > Key: AMQ-6482 > URL: https://issues.apache.org/jira/browse/AMQ-6482 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.14.1 > Reporter: Maxence Dunnewind > Labels: threading > Attachments: thread_dump > > > We have an activemq broker running for ~ 24 hours, handling ~ 100k topics and up to 8k connections (for ~ 24k consumers). > Looking at my graph, I see that I get a big increase of threads count happended (in 4 steps, ~ 500 more threads each time) as shown here : https://snapshot.raintank.io/dashboard/snapshot/ExUb4pgNYnmBo92JgbZrvJ6fiBm3PNrI > However, even if the traffic dropped in the night, the thread count never decreased and is still ~ 2500. > I checked a thread dump and it looks like (full dump attached) : > ``` > # grep Thread.State thread_dump |awk '{ print $2 }' |sort|uniq -c > 26 RUNNABLE > 70 TIMED_WAITING > 2446 WAITING > ``` > Mhh, so many WAITING threads, let's check why : > ``` > # grep 'parking to' thread_dump |cut -d '>' -f 2 |sort |uniq -c > 1 (a java.util.concurrent.CountDownLatch$Sync) > 1308 (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > 1159 (a java.util.concurrent.locks.ReentrantLock$NonfairSync) > 41 (a java.util.concurrent.SynchronousQueue$TransferStack) > ``` > I'm not a big java expert but seems a bit unexpected behavior to me. > For various reason (big number of topics etc ) we use custom GC config, here it is : > ``` > ACTIVEMQ_OPTS_MEMORY="-Xms128M -Xmx10G -Xloggc:/home/log/activemq/gc.log -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=75 -XX:NewRatio=4" > ``` > Maxence -- This message was sent by Atlassian JIRA (v6.3.4#6332)