Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 9812 invoked from network); 11 Oct 2010 19:30:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Oct 2010 19:30:02 -0000 Received: (qmail 52264 invoked by uid 500); 11 Oct 2010 19:30:01 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 52243 invoked by uid 500); 11 Oct 2010 19:30:01 -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 52235 invoked by uid 99); 11 Oct 2010 19:30:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 19:30:01 +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; Mon, 11 Oct 2010 19:30:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9BJTeW7006250 for ; Mon, 11 Oct 2010 19:29:41 GMT Message-ID: <2745027.53591286825380969.JavaMail.jira@thor> Date: Mon, 11 Oct 2010 15:29:40 -0400 (EDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Issue Comment Edited: (AMQ-2837) Slow KahaDB In-Reply-To: <24711338.46281279569171773.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60822#action_60822 ] Gary Tully edited comment on AMQ-2837 at 10/11/10 3:28 PM: ----------------------------------------------------------- There is a utility in the distribution that can help you determine relative disk speed as experienced by the journal writer thread: {code}java -classpath lib/kahadb-.jar org.apache.kahadb.util.DiskBenchmark{code} As to the value of the log threshold, the calculation is a simple time difference before and after the journal and index update, there is no complicated formula and it really is there as a development aid. So pick a large value if you have a slow disk and don't want to see the log entry. Otherwise you will be regularly reminded of the fact. was (Author: gtully): There is a utility in the distribution that can help you determine relative disk speed as experienced by the journal writer thread: java -classpath lib/kahadb-.jar org.apache.kahadb.util.DiskBenchmark As to the value of the log threshold, the calculation is a simple time difference before and after the journal and index update, there is no complicated formula and it really is there as a development aid. So pick a large value if you have a slow disk and don't want to see the log entry. Otherwise you will be regularly reminded of the fact. > Slow KahaDB > ----------- > > Key: AMQ-2837 > URL: https://issues.apache.org/activemq/browse/AMQ-2837 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.2 > Environment: Linux > Reporter: Andy > Assignee: Rob Davies > > I'm using KahaDB for persistence with the following configuration: > > > persistent="true" > useJmx="true" > useShutdownHook="false" > deleteAllMessagesOnStartup="false" > xmlns="http://activemq.apache.org/schema/core"> > > > > > > > > > > > > > > > > > > > > I've some durable consumers. The broker is showing many "Slow KahaDB access" log entries. > Any suggestions? > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1248 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1560 ms > INFO | Slow KahaDB access: Journal append took: 1 ms, Index update took 1227 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1227 ms > INFO | Slow KahaDB access: Journal append took: 1480 ms, Index update took 0 ms > INFO | Slow KahaDB access: Journal append took: 5 ms, Index update took 1302 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1302 ms > INFO | Slow KahaDB access: Journal append took: 13 ms, Index update took 1348 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1590 ms > INFO | Slow KahaDB access: Journal append took: 1327 ms, Index update took 0 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1263 ms > INFO | Slow KahaDB access: Journal append took: 1 ms, Index update took 1276 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1277 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1318 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1312 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1593 ms > INFO | Slow KahaDB access: Journal append took: 3 ms, Index update took 1608 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1302 ms > INFO | Slow KahaDB access: Journal append took: 3 ms, Index update took 1317 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1318 ms > INFO | Slow KahaDB access: Journal append took: 2 ms, Index update took 1316 ms > INFO | Slow KahaDB access: Journal append took: 1318 ms, Index update took 1 ms > INFO | Slow KahaDB access: Journal append took: 0 ms, Index update took 1296 ms -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.