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 C07EC200C72 for ; Fri, 28 Apr 2017 04:54:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BF032160BB2; Fri, 28 Apr 2017 02:54:06 +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 DCD08160BA7 for ; Fri, 28 Apr 2017 04:54:05 +0200 (CEST) Received: (qmail 73229 invoked by uid 500); 28 Apr 2017 02:54:00 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 73217 invoked by uid 99); 28 Apr 2017 02:53:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 02:53:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 43C72189565 for ; Fri, 28 Apr 2017 02:53:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.77 X-Spam-Level: ** X-Spam-Status: No, score=2.77 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_BADIPHTTP=2, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id U1_crdtli6o9 for ; Fri, 28 Apr 2017 02:53:56 +0000 (UTC) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5C99F5F1BA for ; Fri, 28 Apr 2017 02:53:56 +0000 (UTC) Received: by mail-vk0-f43.google.com with SMTP id q78so27201468vke.3 for ; Thu, 27 Apr 2017 19:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=SlG48PRvGdWVMQwdU846CKPbWzxPDXFFjcc2WEaNg7M=; b=ACYolva6BHxQDGHvAfxSHFhMSlnLhxSIcVUU3yK6ocWhxli9Z/nx089iT2CF2UQr+P CMR8GcEy20wUYKp9zDoAXHYYWRUlTS2yIlNw1x2DBAYmOriwII6yzkKMSizusGM+N4Kk BhvsTr3GkusgGfEjEC2iLxp3movnSgDxfcDA9FmWD2vLYm+Ejtma046GoojMl0tqiJtf /uv2sXr8mT6BdoB6wqGw2iUpKeyPhWAPfgviXfGEmm2l8dNMJHkEp14mDNXOOUfPElNf tE4hHYKOsMWfffGC8cIcESqsfJ58JhClSUmWezAc8KValX2qtSvuSiGYjh9Bp4AZzYaY rSVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=SlG48PRvGdWVMQwdU846CKPbWzxPDXFFjcc2WEaNg7M=; b=dDMpysEdaTgEWN2z2Zg2MibwYqMW61UQzQvcdSjgIGdq+EoqHE0VCG4bVN0+tle4Dc /uEBO7OYNKr9Xunubx4Ecb+nNTmDBkZG4NRfIO8PauA2hiISO1787iIfwVL9k7r7QRqn fMILYRTy61MVPWqpHtsTDgdhEOunGftzXsqxDg+5vfA2Q3zmMYqm6KxyuzW05YPrCGrT I3vBvZxZELq00YtlEgjjAtRrnZrglPHOTb4QPJRwgQYDaAZggTO+vOaU65qFrT2oDJEs ObWmmgSa7/0R0EGF6pK+EhdnuSXOWOZ/zUInmqgKharYvBiFzBSWUn/zgv9pY2Wp+2GE 7Lfw== X-Gm-Message-State: AN3rC/5z947gl8iDjmtL1z+MWLf9zdpz9ObtXFzpQMbOnYtCeTbasQq4 OG3n1UsaKOaBPQSKGJaTkvx1qv9b5A== X-Received: by 10.31.140.131 with SMTP id o125mr4763416vkd.100.1493348035636; Thu, 27 Apr 2017 19:53:55 -0700 (PDT) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.103.75.157 with HTTP; Thu, 27 Apr 2017 19:53:55 -0700 (PDT) Received: by 10.103.75.157 with HTTP; Thu, 27 Apr 2017 19:53:55 -0700 (PDT) In-Reply-To: <1493301957326-4725278.post@n4.nabble.com> References: <1493301957326-4725278.post@n4.nabble.com> From: Tim Bain Date: Thu, 27 Apr 2017 20:53:55 -0600 X-Google-Sender-Auth: U5t9epQs40UuUEX0yXRWDiWzLmw Message-ID: Subject: Re: ActiveMQ broker becomes unresponsive after sometime To: ActiveMQ Users Content-Type: multipart/alternative; boundary=001a114261f430b3c0054e312f6d archived-at: Fri, 28 Apr 2017 02:54:06 -0000 --001a114261f430b3c0054e312f6d Content-Type: text/plain; charset=UTF-8 Can you do all those things before the broker becomes unresponsive (e.g. after 2 or 3 hours)? If so, that might tell us something useful, and maybe you can script it to happen periodically (once a minute, for example) so you can see what things look like just before it becomes unresponsive. What do system monitoring tools like top tell you about which system resources (CPU, memory, disk IO, network IO) you are or are not using heavily? To me, some of these symptoms sound like maybe you're filling memory to the point that you're spending so much time GCing that the JVM doesn't have cycles to do much else. There are JVM arguments that will let you log the details of your GC activity to try to confirm or refute that theory (Google for them, or check the Oracle documentation). Others of the symptoms just sound really strange and I don't have any guesses about what they mean, but I assume you Googled for each one and found no useful results? Tim On Apr 27, 2017 8:17 AM, "Shobhana" wrote: > We use ActiveMQ 5.14.1 with KahaDB for persistence. > From last 2 days, we have observed that the broker becomes unresponsive > after running for around 4 hours! None of the operations work after this > including establishing new connections, publishing messages to topics, > subscribing to topics, unsubscribing, etc. > > We have disabled JMX for performance reasons; so I cannot check the > status/health of broker from JMX. I tried to take thread dump to see what's > happening, but it fails with a message : Unable to open socket file: target > process not responding or HotSpot VM not loaded! > > Similar error when I try to take heap dump! But I can see that broker > process is running using ps -ef |grep java option. > > Tried to take the thread dump forcefully using the -F option, but this also > fails with "java.lang.RuntimeException: Unable to deduce type of thread > from > address 0x00007f9288012800 (expected type JavaThread, CompilerThread, > ServiceThread, JvmtiAgentThread, or SurrogateLockerThread)" > > Forceful Heap dump fails with "Expecting GenCollectedHeap, G1CollectedHeap, > or ParallelScavengeHeap, but got sun.jvm.hotspot.gc_interface. > CollectedHeap" > > We have just one broker running on AWS EC2 Ubuntu instance. Broker is > started with Xmx of 12 GB. Our server and Android applications together > create thousands of topics and exchange MQTT messages (both persistent and > non-persistent). Within 4 hours, around 20 GB of journal files got created > in the last run before broker became unresponsive! The only way to overcome > this problem is to stop the broker, delete all files in KahaDB and restart > the broker! > > Any hints to what could be going wrong is highly appreciated! > > Broker configurations is given below for reference : > > brokerName="PrimaryBroker" deleteAllMessagesOnStartup="false" > advisorySupport="false" schedulePeriodForDestinationPurge="600000" > offlineDurableSubscriberTimeout="54000000" > offlineDurableSubscriberTaskSchedule="3600000" > dataDirectory="${activemq.data}"> > > > > > inactiveTimoutBeforeGC="3600000"> > > > > > > > > reduceMemoryFootprint="true"> > > > > > > > > > > indexCacheSize="20000" enableJournalDiskSyncs="false" > ignoreMissingJournalfiles="true"/> > > > > > > > > > > > > > > > > > > uri="nio://0.0.0.0:61616?maximumConnections=1000&wireFormat. > maxInactivityDuration=180000&wireFormat.maxFrameSize=104857600"/> > uri="mqtt+nio://0.0.0.0:1883?maximumConnections=50000&wireFormat. > maxInactivityDuration=180000&wireFormat.maxFrameSize=104857600"/> > > > > dropTemporaryTopics="true" dropTemporaryQueues="true" /> > zeroExpirationOverride="43200000"/> > > > > > TIA, > Shobhana > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/ActiveMQ-broker-becomes-unresponsive-after- > sometime-tp4725278.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a114261f430b3c0054e312f6d--