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 BF1BB18F8F for ; Wed, 14 Oct 2015 04:45:35 +0000 (UTC) Received: (qmail 38969 invoked by uid 500); 14 Oct 2015 04:45:35 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 38928 invoked by uid 500); 14 Oct 2015 04:45:35 -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 38916 invoked by uid 99); 14 Oct 2015 04:45:34 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2015 04:45:34 +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 83470C3D5F for ; Wed, 14 Oct 2015 04:45:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.565 X-Spam-Level: **** X-Spam-Status: No, score=4.565 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=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=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 B9E4ozyvFmQd for ; Wed, 14 Oct 2015 04:45:27 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 7B6C5439E1 for ; Wed, 14 Oct 2015 04:45:27 +0000 (UTC) Received: by iow1 with SMTP id 1so43831298iow.1 for ; Tue, 13 Oct 2015 21:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=QtlnVcQkC2JwZOR6dDGwW6IgTIfR6xt9khBKHemF0tQ=; b=uiXlNRK1q2SLQQO1y0FXcYmniMhUcBlAtxEwugoAeAUeVLFlQRHSgJO+Znch1AePMr L3OQdyKyXNFd12xyoPngkYe5YFy+vxYTgq8i/pUH7lX8yT0/+mgf1HGyye//WnC609kP GCRpG46JyoZRBRkqMhYSsxX1Q+HSD4p8gAH0O1iDke9Jb3gADEJ491l9Uud7glWW3WFf IHCXbxDmc6rUJ9rT8G3P2OOndVl2R3kveA5iHlvAUvSrkeahne3ucDmJoaAQH/T46BP4 GG6tIDhRctLQkEiry16qUqckMJOJJ1PQsuKJLiqT8Onf62Hp/Eleg6/6AvRNr1FhylIb RDxQ== X-Received: by 10.107.10.71 with SMTP id u68mr1604518ioi.160.1444797927112; Tue, 13 Oct 2015 21:45:27 -0700 (PDT) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.50.78.227 with HTTP; Tue, 13 Oct 2015 21:45:07 -0700 (PDT) In-Reply-To: <1444400194909-4702810.post@n4.nabble.com> References: <1388672448020-4675930.post@n4.nabble.com> <1388892035102-4676014.post@n4.nabble.com> <1389882890283-4676362.post@n4.nabble.com> <1389893434870-4676386.post@n4.nabble.com> <1444264345174-4702754.post@n4.nabble.com> <1444371087153-4702798.post@n4.nabble.com> <1444400194909-4702810.post@n4.nabble.com> From: Tim Bain Date: Tue, 13 Oct 2015 22:45:07 -0600 X-Google-Sender-Auth: xSuSOYZ_SIAHKxDS7Kee2nePNHA Message-ID: Subject: Re: ActiveMQ consumer count is set to "0" To: ActiveMQ Users Content-Type: multipart/alternative; boundary=001a113f9ae037c48c0522093b68 --001a113f9ae037c48c0522093b68 Content-Type: text/plain; charset=UTF-8 So you're using ActiveMQ, Camel, and Spring, and the problem (whether it's your error or a bug) could be in any of them. I've got to say, given that this isn't clearly a problem with any one of those technologies, I'd post this to StackOverflow and tag it with all three technologies and hope that someone from the right technology who knows what might cause this sees it. My instinct tells me this isn't an ActiveMQ issue (I'd suspect Camel if I was forced to pick one since they're managing the customers, though if consumer threads are hung that's probably a Spring problem), but it really could be any of the three (and we're all probably going to suspect the problem lies with the others; sorry, I know it's not fun when people say "not our problem, check with the other guys"). For your other questions: - If you're using asyncSend and the broker restarts, I believe that the already-sent messages will be lost. - I'd be very surprised if this had to do with maxInactivityInterval, though anything's possible. But 5 minutes seems like a long time to wait before declaring a connection dead... - If the default recoveryInterval of 5 seconds isn't preventing the disappearance of consumers, I'm not sure how a different value would change that behavior. - Does this only happen when you restart the broker? Or does it also happen when all processes are up and connected? Tim On Fri, Oct 9, 2015 at 8:16 AM, dhananjay.patkar wrote: > I am able to reproduce this issue by restarting the broker, when camel > consumers are sending those millions of messages on the queue. > > I am planning to set recoveryInterval on the camel JmsConfiguration, please > post your views on this. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ActiveMQ-consumer-count-is-set-to-0-tp4675930p4702810.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a113f9ae037c48c0522093b68--