Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 29551 invoked from network); 24 Aug 2010 14:01:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 14:01:49 -0000 Received: (qmail 39070 invoked by uid 500); 24 Aug 2010 14:01:49 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 38788 invoked by uid 500); 24 Aug 2010 14:01: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 38780 invoked by uid 99); 24 Aug 2010 14:01:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 14:01:45 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of s.d.c.martes@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 14:01:40 +0000 Received: by wyb29 with SMTP id 29so412296wyb.2 for ; Tue, 24 Aug 2010 07:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=pq9qofm5JrG2+HgHwOmyEt+ilxAWV9xQX/bKgQqPrAY=; b=QapabVAE1Seli8cPEoOVma1L3CcLqmsOmL4QMyWrkdXmEOWhIDPJCVPHv9AtDIHTuM 0uZVDvBSQdJuc3ig3UMCDzL6QC1HRuo7ojav4V8zOGdnhD1i3VYTdqhRil5b960KKlmY gwPZqarEsQAaMg++v334nSsun+pByy0P7IhwM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Zrd1tNdbHLGRYYwyRxkCFTAyK9lcJurDhV6ERoMrpMvVKXU+OCxp9xc7I1qdVGRZ84 M5grimHPKdfwrgFnywOSR8QRNGwEvqQTu6dH6dc9SU9nwizscDAnYlq8AOTElxFpbU16 curWreq1SywzHVJkI6EldbcxE5I36KPbOhLgo= MIME-Version: 1.0 Received: by 10.227.146.73 with SMTP id g9mr5946014wbv.188.1282658478718; Tue, 24 Aug 2010 07:01:18 -0700 (PDT) Received: by 10.216.133.96 with HTTP; Tue, 24 Aug 2010 07:01:18 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Aug 2010 10:01:18 -0400 Message-ID: Subject: Re: Multiple sockets connection TIME_WAIT From: Shurbann Martes To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=0016367fad71fe00ef048e9232e7 --0016367fad71fe00ef048e9232e7 Content-Type: text/plain; charset=UTF-8 You're right. I was using for the jmsTransactionManager the org.apache.activemq.ActiveMQConnectionFactory instead of the org.apache.activemq.pool.PooledConnectionFactory. I will test this later. Thank you for your quick response. Regards, Shurbann Martes On Tue, Aug 24, 2010 at 9:42 AM, Gary Tully wrote: > You need to look into the cache level, think the spring default is to > cache nothing if there is a transaction manager present as there is in > your case. > > You may want to try cache_connection at a minimum. > > There are OS TCP level config options to configure the TIME_WAIT > window but it may be better to tackle the excessive connection > creation a the jms application level. > > On 24 August 2010 11:56, Shurbann Martes wrote: > > Hi ActiveMQ, > > > > Thank you for taking time to answer my question. > > > > I have the following issue. I'm using ActiveMQ in combination with > Spring: > > > > > class="org.springframework.jms.listener.DefaultMessageListenerContainer"> > > > > > > > > > > > > > > > > > > It's using the TCP Transport: tcp://localhost:61616 > > > > This was working fine, until an increase in usage of the service lately: > > > > I noticed lately that the amount of socket connection connecting on the > port > > 61616 is huge (> 780) of which only 15 is ESTABLISHED and the other are > > TIME_WAIT. > > > > Lately my container/machine starts giving too many socket connections > during > > peek hours. (I've taken care of ulimit -n on OS level). Now I'm starting > to > > look at the connections of this machine and more then 80% is on the > account > > ActiveMQ. > > > > My questions are > > - Anyone have/had this problem? > > - Is there a way of putting a max connection to the broker? > > - How can I make the TIME_WAIT interval smaller? > > - Any other suggestion of decreasing the amount of connections to the > > broker? > > > > Thank you in advance. > > > > Regards, > > SM > > > > > > -- > http://blog.garytully.com > > Open Source Integration > http://fusesource.com > --0016367fad71fe00ef048e9232e7--