Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 8653 invoked from network); 2 Jun 2010 11:31:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jun 2010 11:31:21 -0000 Received: (qmail 51283 invoked by uid 500); 2 Jun 2010 11:31:21 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 51114 invoked by uid 500); 2 Jun 2010 11:31:18 -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 51095 invoked by uid 99); 2 Jun 2010 11:31:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 11:31:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 11:31:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o52BUpGb007741 for ; Wed, 2 Jun 2010 11:30:52 GMT Message-ID: <17646625.7471275478251795.JavaMail.jira@thor> Date: Wed, 2 Jun 2010 07:30:51 -0400 (EDT) From: =?UTF-8?Q?Thomas_Sch=C3=B6ftner_=28JIRA=29?= To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-2757) AMQ startup fails during Startup due to NullPointerException in KahaDB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org AMQ startup fails during Startup due to NullPointerException in KahaDB ---------------------------------------------------------------------- Key: AMQ-2757 URL: https://issues.apache.org/activemq/browse/AMQ-2757 Project: ActiveMQ Issue Type: Bug Components: Message Store Affects Versions: 5.3.1, 5.3.0, 5.2.0 Environment: Red Hat Enterprise Linux, Kernel V2.6.18 Reporter: Thomas Sch=C3=B6ftner During a long-time test run several message consumers listening to peristen= t queues crashed. The queues were filling up rapidly, so that KahaDB allocated 3GB of disk sp= ace (max. limit 10GB) after 5hours (approx 800k messages). At that point the broker was extremely slow and non-responsive to new messa= ges. JConsole showed that 1GB of RAM was used and most effort was necessary for = garbage collection. Although the max memory usage limit is configured to 1GB, AMQ should rather= allocate disc space for messages to queues without containers. AMQ shutdown took extremely long (several limits). The subsequent AMQ restart keeps failing with the following exception: java.lang.NullPointerException =09at org.apache.kahadb.index.BTreeNode$BTreeIterator.findNextPage(BTreeNod= e.java:109) =09at org.apache.kahadb.index.BTreeNode$BTreeIterator.hasNext(BTreeNode.jav= a:120) =09at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.exe= cute(KahaDBStore.java:223) =09at org.apache.kahadb.page.Transaction.execute(Transaction.java:728) =09at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recov= er(KahaDBStore.java:220) =09at org.apache.activemq.broker.region.Queue.initialize(Queue.java:252) =09at org.apache.activemq.broker.region.DestinationFactoryImpl.createDestin= ation(DestinationFactoryImpl.java:83) =09at org.apache.activemq.broker.region.AbstractRegion.createDestination(Ab= stractRegion.java:464) =09at org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(M= anagedQueueRegion.java:56) =09at org.apache.activemq.broker.region.AbstractRegion.addDestination(Abstr= actRegion.java:120) =09at org.apache.activemq.broker.region.RegionBroker.addDestination(RegionB= roker.java:268) =09at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.j= ava:142) =09at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.j= ava:142) =09at org.apache.activemq.broker.MutableBrokerFilter.addDestination(Mutable= BrokerFilter.java:149) =09at org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion= .java:94) =09at org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.jav= a:178) =09at org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegio= nBroker.java:101) =09at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:154) =09at org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.= java:112) =09at org.apache.activemq.broker.BrokerService$3.start(BrokerService.java:1= 713) =09at org.apache.activemq.broker.BrokerService.start(BrokerService.java:473= ) =09at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBean= BrokerService.java:85) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) =09at java.lang.reflect.Method.invoke(Method.java:597) ... The problem is reproducible also reproducible with recent nightly builds of= AMQ/Fuse 5.4.0. -Tom --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.