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 0DD95EB71 for ; Wed, 5 Dec 2012 13:36:21 +0000 (UTC) Received: (qmail 18058 invoked by uid 500); 5 Dec 2012 13:36:20 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 17827 invoked by uid 500); 5 Dec 2012 13:36:19 -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 17805 invoked by uid 99); 5 Dec 2012 13:36:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 13:36:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2012 13:36:15 +0000 Received: by mail-ie0-f171.google.com with SMTP id 17so8379516iea.2 for ; Wed, 05 Dec 2012 05:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=A/8FHIIqNKPDpqmZmUwyfihC835lQdOs+/K7OCR5HxQ=; b=e3aXBg1zTCXUBXlMXHSZjCv2yWnvLU8hBIJreFt29MX8+9a2jGBR2TRSseTQkh5T7D ynuycQbHzCdTvmbfiGNzE6Inq9S7GpVIDi/qNg2430ayw+2wwl3TmrpuXVLDpyCg1Tph QVVhOE6PQ+kVLpU+8tF1VN/x2c0klvlpXpn0od8gs+CxjGDMaXPN0+gaMAsidcyxgd0k 7W993atf6KEdp+2dVrl4dEJmdobIMG59yCZZZghbvhgyxzNRCvG3U+VXjA4YI0pxj6ib TfmAK7an2fHn0SFM970eYC7Ifwrt1MNBFAB2hEKsAB8WVjnkTIjWUo2Jc6CHrM2L4W4m bMLw== MIME-Version: 1.0 Received: by 10.42.27.74 with SMTP id i10mr7036566icc.47.1354714554249; Wed, 05 Dec 2012 05:35:54 -0800 (PST) Received: by 10.50.50.1 with HTTP; Wed, 5 Dec 2012 05:35:54 -0800 (PST) In-Reply-To: <50BE64A9.2040604@d3s.mff.cuni.cz> References: <50BE64A9.2040604@d3s.mff.cuni.cz> Date: Wed, 5 Dec 2012 06:35:54 -0700 Message-ID: Subject: Re: Activemq 5.4.2 hangs when the temp disk usage is used From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=20cf303f64eac732c804d01b0fd7 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303f64eac732c804d01b0fd7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Interesting. Your scenario sounds like PFC is blocking the connection. Not sure yet why that would happen. Your config looks okay. Do you still have the thread dumps? Are the producer/consumer on the same connection? If you have a test case you can post, please do. Would make it easy to figure what the problem is. On Tue, Dec 4, 2012 at 2:01 PM, Tom=C3=A1=C5=A1 Martinec < tomas.martinec@d3s.mff.cuni.cz> wrote: > Hello, > > I am trying to setup activemq 5.4.2 and I experience hangs when the broke= r > fills its heap and starts using storage. In my scenario I have one messag= e > producer and one message consumer connected. The producer is blocked and > the consumer does not receive any messages. I have been able to run the > broker under debug mode and identify what the relevant threads are doing: > > The task for iteration of the queue waits for the messagesLock on the lin= e > 1404 in http://svn.apache.org/viewvc/**activemq/tags/activemq-5.4.2/** > activemq-core/src/main/java/**org/apache/activemq/broker/** > region/Queue.java?view=3Dmarkup. > > > The thread that stores messages into the queue waits on the line 219 of > http://svn.apache.org/viewvc/**activemq/tags/activemq-5.4.2/** > activemq-core/src/main/java/**org/apache/activemq/broker/**region/cursors= / > **FilePendingMessageCursor.java?**view=3Dmarkupfor= free space. Note that the thread has the messagesLock locked and the > temporaly usage is always 103%, and therefore, it never returns. > > Is it possible that I encountered something like a deadlock? Perhaps, I > messed up something in the configuration. > > I will be thankful for advice. > Tomas > > Here is the configuration of the broker: > > xmlns=3D"http://www.**springframework.org/schema/**beans > " > xmlns:amq=3D"http://activemq.**apache.org/schema/core > " > xmlns:xsi=3D"http://www.w3.org/**2001/XMLSchema-instance > " > xsi:schemaLocation=3D"http://**www.springframework.org/**schema/beans > http://www.springframework.**org/schema/beans/spring-beans-**2.0.xsd > http://activemq.apache.org/**schema/core > http://activemq.apache.org/**schema/core/activemq-core.xsd > "**> > > > /> > > > " > brokerName=3D"localhost" > dataDirectory=3D"/dasd/martinec/**kahadb-storage/activemq-data" > destroyApplicationContextOnSto**p=3D"true" > deleteAllMessagesOnStartup=3D"**true" > advisorySupport=3D"false" > enableStatistics=3D"false" > schedulerSupport=3D"false" > useJmx=3D"true" > persistent=3D"true"> > > > > > > " producerFlowControl=3D"false" > enableAudit=3D"false" expireMessagesPeriod=3D"0"> > " producerFlowControl=3D"true" > memoryLimit=3D"50mb" enableAudit=3D"false" expireMessagesPeriod=3D"0"> > > > > > > > > > rmiServerPort=3D"1399"/> > > > > kahadb-storage"/> > > > > > > > > > > > > > > > > > > > > > > "/> > > > > > > > --=20 *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --20cf303f64eac732c804d01b0fd7--