Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 53706 invoked from network); 9 Nov 2010 21:41:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 21:41:01 -0000 Received: (qmail 95484 invoked by uid 500); 9 Nov 2010 21:41:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 95441 invoked by uid 500); 9 Nov 2010 21:41:31 -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 95433 invoked by uid 99); 9 Nov 2010 21:41:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 21:41:31 +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 jcarlson@e-dialog.com designates 208.94.20.29 as permitted sender) Received: from [208.94.20.29] (HELO corp-mail.e-dialog.com) (208.94.20.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 21:41:25 +0000 Received: from eeyore.ad.e-dialog.com ([::1]) by eeyore.ad.e-dialog.com ([::1]) with mapi; Tue, 9 Nov 2010 16:41:04 -0500 From: Josh Carlson To: "users@activemq.apache.org" Date: Tue, 9 Nov 2010 16:41:03 -0500 Subject: RE: storeUsage with kahaDB which files Thread-Topic: storeUsage with kahaDB which files Thread-Index: AcuAPbC78dHEmljbRtCq0gs+aUixLgAF5yxw Message-ID: <3A2A0F51850C264790C6008B7F92D04709E331CE60@eeyore.ad.e-dialog.com> References: <3A2A0F51850C264790C6008B7F92D04709E331CDAA@eeyore.ad.e-dialog.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the quick response Bruce we must be hitting the 5.3 bug where th= e persisted messages are not being cleaned up because those messages don't = exist in the queues. While on the topic of the systemUsage thresholds. Can you or someone else d= escribe what the memoryUsage limit refers to. I have read two descriptions,= one here: http://activemq.apache.org/javalangoutofmemory.html that says it= is used to control how much memory is used before non-persistent messages = are spooled to disk. However, we are persisting all messages but yet in the= web console that "Memory percent used" is non-zero. In another document wh= ich I purchased from Total Transaction Management it says that this limits = the amount of memory the broker can use. However, this confuses me as well = because we had it set to 20 MB which doesn't seem like it would be nearly e= nough and I have seen the JVM well more than a GB. Thanks for the help > -----Original Message----- > From: Bruce Snyder [mailto:bruce.snyder@gmail.com] > Sent: Tuesday, November 09, 2010 1:41 PM > To: users@activemq.apache.org > Subject: Re: storeUsage with kahaDB which files >=20 > On Tue, Nov 9, 2010 at 10:24 AM, Josh Carlson > wrote: > > We running the activemq broker version 5.3.0 and using the STOMP client= s > for producers and consumers. We ran into this morning where the store usa= ge > had been exceeded and producers were blocked on the sends. I noticed that > we had the following configured for systemUsage: > > > > =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 > > > > I solved the problem simply by increasing the storeUsage and restarting= . > But what I'm wondering is what constitutes the store and thus what file(s= ) > are being counted against this threshold. I noted that the root of the da= ta > directory is close to 1 GB. Is it counting the whole directory? >=20 > Yes, correct. >=20 > > In this directory I see the files db.data, db.redo, a lock file, and > several db-N.log files. What are the .log files? From: > http://activemq.apache.org/kahadb.html it sounds like they might be the > 'message data logs'. Are =A0these the actual persisted messages? >=20 > Yes, the .log files are the actual persisted messages. >=20 > > Does the fact that I have some old .log files (from Augest) mean I have > some abandoned messages? >=20 > I don't know if you have abandoned messages, but I can tell you that > there was a bug that prevented the .log files from being cleaned up > appropriately. This bug was just fixed recently. Currently we are > discussing a release very soon (5.4.2) that will include this fix. >=20 > Bruce > -- > perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=3D6-E+G- > N>61E );' >=20 > ActiveMQ in Action: http://bit.ly/2je6cQ > Blog: http://bruceblog.org/ > Twitter: http://twitter.com/brucesnyder