Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 8255 invoked from network); 11 Aug 2009 12:16:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 12:16:57 -0000 Received: (qmail 51897 invoked by uid 500); 11 Aug 2009 12:17:03 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 51835 invoked by uid 500); 11 Aug 2009 12:17:03 -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 51825 invoked by uid 99); 11 Aug 2009 12:17:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 12:17:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 12:16:52 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MaqGt-0005Te-2B for users@activemq.apache.org; Tue, 11 Aug 2009 05:16:07 -0700 Message-ID: <24916480.post@talk.nabble.com> Date: Tue, 11 Aug 2009 05:16:07 -0700 (PDT) From: sinus To: users@activemq.apache.org Subject: createSession() makes all the theard to wait ... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sinusalfa@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hello to everybody. I need a help. During 3 days I'm trying to solve a problem that appears with my embedded pub/sub(with listener) model after processing around 80000 messages. So, all goes well: publishing and consumig , but after ~ 80000 messages the threads of my multi-theaded application block in connection.createSession(false, Session.AUTO_ACKNOWLEDGE) method. I noticed that at that moment i can not event make a ping to google.com.Some code that manege jms: BrokerService broker = new BrokerService(); broker.setUseJmx(false); broker.setPersistent(false); broker.getSystemUsage().setSendFailIfNoSpace(true); broker.addConnector("vm://jms"); broker.start(); send process: ActiveMQConnectionFactory connectionFactory= null; String user = ActiveMQConnection.DEFAULT_USER; String password = ActiveMQConnection.DEFAULT_PASSWORD; connectionFactory= new ActiveMQConnectionFactory(user, password, "vm://jms"); connectionFactory.setUseAsyncSend(true); connectionFactory.setCopyMessageOnSend(false); Connection con = connectionFactory.createConnection(); con.start(); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); topic = session.createTopic("myTopic")); producer = session.createProducer(topic); producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT); message = session.createObjectMessage(ticket); producer.send(message); ActiveMQ 5.2 So, I'm using a connection for all my theads of my application> Each thread creates its own session and the object that it need to send the message. All the clean is done well( close session, publisher, etc.). What can be the problem ???Can you help me please? Its really blocking for me. Please. Serge. -- View this message in context: http://www.nabble.com/createSession%28%29-makes-all-the-theard-to-wait-...-tp24916480p24916480.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.