Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7509EF1FC for ; Fri, 5 Jul 2013 13:09:55 +0000 (UTC) Received: (qmail 49870 invoked by uid 500); 5 Jul 2013 13:09:54 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 49678 invoked by uid 500); 5 Jul 2013 13:09:51 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 49661 invoked by uid 99); 5 Jul 2013 13:09:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 13:09:50 +0000 Date: Fri, 5 Jul 2013 13:09:50 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4618) Failover configuration establishes more and more connections to inactive ActiveMQ instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700650#comment-13700650 ] Timothy Bish commented on AMQ-4618: ----------------------------------- I'd recommend you test against the latest release, or the latest 5.9.SNAPSHOT build to see if you can reproduce this. > Failover configuration establishes more and more connections to inactive ActiveMQ instance > ------------------------------------------------------------------------------------------ > > Key: AMQ-4618 > URL: https://issues.apache.org/jira/browse/AMQ-4618 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.6.0 > Reporter: Roberto Mier > > We have a big problem in a production environment usign ActiveMQ 5.6.0: > We have two ActiveMQ instances started up and a consumer application reading from them. The configuration is set to failover so that consumer application reads JMS messages from first instance and changes to second instance only if first one is not reachable. > After some days, we have seen that there is only one connection established to first ActiveMQ instance, but there are more than 80 established connections to second instance (the backup one). Every day more and more connections are created to backup instance until "java.net.SocketException: Too many open files" exception is thrown in consumer application because the number of file descriptors is huge > Between ActiveMQ instances and consumer application there is a F5 with a timeout of 300 seconds. Could it be responsible of this bad behaviour?. I think that when F5 detects inactivity in a connection for 300 seconds, it will close it, but ActiveMQ will open a new one, so there should be only one connection at the same time, not growing the number of them, isn't it? > The failover configuration in client is set to: > jms.broker.url=failover:(tcp://activeMQHost1:61616,tcp://activeMQHost2:61616)?randomize=false&timeout=3000&priorityBackup=true > Is there any additional parameter to set to solve this problem? > Thanks in advance -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira