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 022F5106F4 for ; Fri, 28 Mar 2014 13:45:27 +0000 (UTC) Received: (qmail 10366 invoked by uid 500); 28 Mar 2014 13:45:22 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10043 invoked by uid 500); 28 Mar 2014 13:45:21 -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 9705 invoked by uid 99); 28 Mar 2014 13:45:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2014 13:45:18 +0000 Date: Fri, 28 Mar 2014 13:45:18 +0000 (UTC) From: "Albert Barmettler (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMQ-5125) Broker and clients hang MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Albert Barmettler created AMQ-5125: -------------------------------------- Summary: Broker and clients hang Key: AMQ-5125 URL: https://issues.apache.org/jira/browse/AMQ-5125 Project: ActiveMQ Issue Type: Bug Affects Versions: 5.9.0 Environment: Windows 7 ActiveMQ 5.9.0 with LevelDB storage adapter enabled Reporter: Albert Barmettler Priority: Blocker JMS clients start to hang after a while in calls such as session.createObjectMessage(). Both the broker and the hanging clients can't be easily shut down when this happens - only forcefully applied kill's do the job. I'm using queues and transactional sessions. All clients (producers and consumers) are in the same Java VM. There is only one JMS connection between the application and the broker. Each client has its own session, but they all share the same connection. Normally, the data directory of the LevelDb contains only a few log files. But in my case, the number of log files is steadily increasing. Furthermore, I was able to track down the issue to following circumstance: The problem only occurs, when consumers do a rollback instead of a commit when they receive the message. The rollback / redelivery works as expected - the same message is received again after a previous rollback. As far as I can tell, the problem does not occur with KahaDb. I'll attach a test program that provokes the error. It sets up a few hundred queues, consumers and producers. The consumers just receive the message and commit the session, but they also do "random" rollbacks. It can be observed immediately that the number of files starts increasing in the data directory. After a few minutes, the clients hang - sometimes sooner, sometimes later. I'll also attach the config file for the broker. I am aware, that heavy rollbacking should not happen in normal operation. But from a long term stability this is a blocker for us. -- This message was sent by Atlassian JIRA (v6.2#6252)