Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D980DE5C for ; Mon, 20 Aug 2012 05:15:45 +0000 (UTC) Received: (qmail 30069 invoked by uid 500); 20 Aug 2012 05:15:44 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 29909 invoked by uid 500); 20 Aug 2012 05:15:40 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 29862 invoked by uid 99); 20 Aug 2012 05:15:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 05:15:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 11E5B2C04AF for ; Mon, 20 Aug 2012 05:15:38 +0000 (UTC) Date: Mon, 20 Aug 2012 16:15:38 +1100 (NCT) From: "Lionel Cons (JIRA)" To: commits@activemq.apache.org Message-ID: <375259694.28878.1345439738074.JavaMail.jiratomcat@arcas> In-Reply-To: <2124066341.22790.1345191278057.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (APLO-245) The LevelDB store does not seem to get cleaned/compacted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/APLO-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437660#comment-13437660 ] Lionel Cons commented on APLO-245: ---------------------------------- In fact, we looked at this broker because of poor response time. A loop test (sending and receiving a small message) takes around 8 seconds over a topic versus less than 20 ms on another identical hardware. The main difference being the LevelDB files (which are stored over NAS), this is the first thing we looked at. Can uncompacted LevelDB files cause a performance degradation? If not, what could explain the poor performance we see on this broker? (FWIW, we use slow_consumer_policy=queue so our topic loop test includes the creation of a temporary queue) > The LevelDB store does not seem to get cleaned/compacted > -------------------------------------------------------- > > Key: APLO-245 > URL: https://issues.apache.org/jira/browse/APLO-245 > Project: ActiveMQ Apollo > Issue Type: Bug > Reporter: Lionel Cons > > We use the default message store: LevelDB. > On one broker with poor performance, we noticed a quite big store (file system wise) while there are zero messages in the queues. > In concrete terms, the REST API reports for the aggregated dest-metrics: > 'queue_items' => 0, > 'queue_size' => 0, > While on the box itself, in the data directory, we see: > $ du -ks . > 434992 . > $ find . -type f | wc -l > 471 > So 400MB and 471 files is a lot to hold zero messages... > FWIW, the store page in the console reports something quite different: > disk usage: 760.689 mb > Log Status > Log File | Msg Refs | File Size > 0000003a0eb4031b.log | 0 | 100.000 mb > Index recovery starts from log position: 0000003a0eb4031b > Append position: 0000003a13bed684 > Index Status > Compactions > Level Files Size(MB) Time(sec) Read(MB) Write(MB) > -------------------------------------------------- > 0 0 0 0 0 2 > 1 7 9 2 12 9 > 2 108 91 0 0 0 > 3 114 227 0 0 0 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira