Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7949C1866E for ; Fri, 12 Feb 2016 15:33:46 +0000 (UTC) Received: (qmail 60591 invoked by uid 500); 12 Feb 2016 15:33:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 60550 invoked by uid 500); 12 Feb 2016 15:33:46 -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 60538 invoked by uid 99); 12 Feb 2016 15:33:45 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 15:33:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 742D5C1D9C for ; Fri, 12 Feb 2016 15:33:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.073 X-Spam-Level: ***** X-Spam-Status: No, score=5.073 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.228, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id a30qgg7iIzFa for ; Fri, 12 Feb 2016 15:33:43 +0000 (UTC) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id D40B842BA7 for ; Fri, 12 Feb 2016 15:33:42 +0000 (UTC) Received: by mail-ig0-f169.google.com with SMTP id hb3so11856674igb.0 for ; Fri, 12 Feb 2016 07:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=cDhgAOWub01F6M7l5G205sS1P9Og2o1wZ76PAwgoBtE=; b=QNEZkykoplJ6jXNJBxV80S9eargshhGn/1dW2CZ23eVz8SCNE6STKYOYjjlv0qCMvw IZwMRQ9qpEvK7uevPWwN46wrz7hT5WFtX6zFaDbmVxwsx74pevBh1AGI+5tNTiN/qEH0 BidDq6RSKkXBUAPaJMSOYDpnWl7dbagvJNcnBZ2Rzy2QHJGeYD1zK+e2iT/fTgk7R6PF AoTvANPcmssH3urrpXa32Asa6wgnFDJzgySnJAAwvpRcep84qobc39fGKX8sQ+9sbl1d DU0FKyyG7iymdnd0bXAis2BBPLUjTk2M4NQJKzqz3tSjmDZeqNwQLxJ+6m4oQ2mTz/eJ H8IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=cDhgAOWub01F6M7l5G205sS1P9Og2o1wZ76PAwgoBtE=; b=C2zXpjOlYT7qmJvlC9Zd49bDJQXCLF6EmnrE+TaHL7zwLE8xGlxdALACNOoz8y9n7i FqXftSqv670cC3jeNzkSiSmBB+vMm6QqqnPNW31Htb6BHyQ1DNxGjcY8dEyl+TLW6z4p Ftykf/kZHIJkopfNtIO/XyQtlsJFWu/xDei+j3GuHEdjbt/lRtrkHvcMoWZ5jg3HzwDP IwRKHyLAC65oH1S1bkzMZYe1sBpV0WdJw0bJ8Ni0qBl9t9+r2CHtwHRL7b+n9JvCDivF 1Zze8NaQP2kvwQjCWUhdd0XKLmPN6Dx1eJf+p7pr+WTJ0QDnz5y5CXpOovrZEPcvYiip HHDg== X-Gm-Message-State: AG10YOQguZLemH+yxLZuwl2RlzFBjL6Kk2Vyl2tF6BSXS3uV0NCsWkA4ScSgVF9/X/EzEYidpjkjP4MdyrmYCQ== MIME-Version: 1.0 X-Received: by 10.50.171.225 with SMTP id ax1mr4504309igc.61.1455291222413; Fri, 12 Feb 2016 07:33:42 -0800 (PST) Sender: tbain98@gmail.com Received: by 10.50.251.141 with HTTP; Fri, 12 Feb 2016 07:33:42 -0800 (PST) Received: by 10.50.251.141 with HTTP; Fri, 12 Feb 2016 07:33:42 -0800 (PST) In-Reply-To: <1455114112085-4707387.post@n4.nabble.com> References: <1455114112085-4707387.post@n4.nabble.com> Date: Fri, 12 Feb 2016 08:33:42 -0700 X-Google-Sender-Auth: xIVk2xhxGYpujGbBzBV3MEAi7Yo Message-ID: Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded From: Tim Bain To: ActiveMQ Users Content-Type: multipart/alternative; boundary=089e011765495b5806052b94645d --089e011765495b5806052b94645d Content-Type: text/plain; charset=UTF-8 First, for a question about GC problems, you should probably tell us what GC strategy you're using, and why you chose it. Second, you made the claim that "to increase the memory to 2Gb ... only delaying the issue from happening," which implies that you believe you're running out of memory because of a memory leak rather than because you sized your JVM too small. Do you have any evidence of such a leak or that you've properly sized your JVM and run out of memory, or are you just making an assumption? I've spent a couple months performance testing the 5.8.0 broker's memory usage with non-persistent messages that are consumed immediately, and I can tell you for certain that there's no memory leak in the code paths executed by that specific scenario (in that version). It's always possible that there's a leak in some other code that my test wasn't executing, but even that is somewhat unlikely given that no one but you has complained about it. So although it's possible that there's a leak, I think it's more likely that either you have more live objects than will fit into the amount of heap you've given to your JVM (in which case increasing the heap is the solution, and a real solution), or you're using the CMS GC strategy and you're hitting the Old Gen fragmentation problem. Tim On Feb 10, 2016 10:52 AM, "ealiass" wrote: > Hi All, > > I am having java.lang.OutOfMemoryError: GC overhead limit exceeded Error > after a while from starting the ActiveMQ on my system (2-3 weeks) start > seeing this issue on production. > i had to restart the my ActiveMQ every while on production so i might lose > some messages coming in the time while the queue is restarting. > > we are using the version:5.11.1 > we have 1Gb of memory for the queue on production > there was similar issue on the forum and the answer was to increase the > memory to 2Gb, but this is not a real solution since we only delaying the > issue from happening > > find below the logs i got > > > org.apache.activemq:type=Broker,brokerName=localhost,connector=clientConnectors,connectorName=openwire,connectionViewType=remoteAddress,connectionName=tcp_//172.16.19.0_40176\n","stream":"stdout","time":"2016-01-18T10:40:55.455379802Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52528 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:40:58.87142185Z"} > {"log":"ERROR | Could not accept connection : java.lang.Exception: > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stdout","time":"2016-01-18T10:41:00.229514014Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40222 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:01.994358557Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40195 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:01.99828402Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40193 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:06.424638043Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40374 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:09.107570289Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34082 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:11.89354178Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34072 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:13.548763654Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52575 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:15.788697766Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52628 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:15.795035469Z"} > {"log":"ERROR | Could not accept connection : java.lang.Exception: > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stdout","time":"2016-01-18T10:41:17.821256534Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40341 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:17.824982456Z"} > {"log":"Exception in thread \"ActiveMQ InactivityMonitor Worker\" > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stderr","time":"2016-01-18T10:41:22.453110848Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34040 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:22.459674904Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40300 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:26.945482864Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52777 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:30.77306023Z"} > {"log":"Exception in thread \"ActiveMQ BrokerService[localhost] > Task-72110\" > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stderr","time":"2016-01-18T10:41:33.768910175Z"} > {"log":"Exception in thread \"ActiveMQ Journal Checkpoint Worker\" > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stderr","time":"2016-01-18T10:41:34.812406659Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40283 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:37.718970346Z"} > {"log":" INFO | KahaDB: Recovering checkpoint thread after > death\n","stream":"stdout","time":"2016-01-18T10:41:39.163309356Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40528 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:42.018391792Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34235 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:42.019448416Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40485 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:45.595817225Z"} > {"log":"Exception in thread \"ActiveMQ Journal Checkpoint Worker\" > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stderr","time":"2016-01-18T10:41:47.076826925Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34264 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:50.04356476Z"} > {"log":"Exception in thread \"ActiveMQ Transport Server: > stomp:// > 0.0.0.0:61613?maximumConnections=1000\u0026wireFormat.maxFrameSize=104857600\ > " > java.lang.OutOfMemoryError: GC overhead limit > exceeded\n","stream":"stderr","time":"2016-01-18T10:41:50.047204344Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52760 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:50.049358006Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40487 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:51.04876469Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40453 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:52.941294862Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34209 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:52.943995696Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34253 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:55.257523013Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34206 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:55.25780067Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52713 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:57.147528061Z"} > {"log":"Exception in thread \"ActiveMQ Transport: > tcp:///172.16.90.0:34152@61616\" java.lang.OutOfMemoryError: GC overhead > limit exceeded\n","stream":"stderr","time":"2016-01-18T10:41:57.14816742Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52717 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:57.148887172Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40437 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:58.59718311Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.90.0:34176 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:58.597488872Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52671 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:41:58.598515011Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52693 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:42:00.585086858Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40433 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:42:00.586107233Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52633 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:42:02.988706309Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.19.0:40376 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:42:02.992193223Z"} > {"log":" INFO | KahaDB: Recovering checkpoint thread after > death\n","stream":"stdout","time":"2016-01-18T10:42:04.079519366Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52821 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:42:04.08123258Z"} > {"log":" WARN | Transport Connection to: tcp://172.16.33.0:52859 failed: > > java.io.EOFException\n","stream":"stdout","time":"2016-01-18T10:42:04.084563477Z"} > {"log":" WARN | Failed to register MBean > > if anyone one have had the same issue or have any hint to guide me please > help would appreciate it :) > > Thanks, > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/java-lang-OutOfMemoryError-GC-overhead-limit-exceeded-tp4707387.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --089e011765495b5806052b94645d--