Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 582A4200C64 for ; Fri, 28 Apr 2017 18:13:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 56CA1160BA3; Fri, 28 Apr 2017 16:13:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9D41C160B8C for ; Fri, 28 Apr 2017 18:13:35 +0200 (CEST) Received: (qmail 99123 invoked by uid 500); 28 Apr 2017 16:13:34 -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 99111 invoked by uid 99); 28 Apr 2017 16:13:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 16:13:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 89FB3C0255 for ; Fri, 28 Apr 2017 16:13:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.693 X-Spam-Level: *** X-Spam-Status: No, score=3.693 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1TRrLnmfUNVN for ; Fri, 28 Apr 2017 16:13:32 +0000 (UTC) Received: from mail-yw0-f170.google.com (mail-yw0-f170.google.com [209.85.161.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DC2B15FBB9 for ; Fri, 28 Apr 2017 16:13:31 +0000 (UTC) Received: by mail-yw0-f170.google.com with SMTP id 203so33129493ywe.0 for ; Fri, 28 Apr 2017 09:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=y89Be66gJlvJ2jmYXzGcThE3/DpNrJ9aduYa4djWig8=; b=QhR5W38c/NdIoEoQXAi60l8MvHSe+JwBk/FdwoTjgBu7Ehrse8vVEvondiVhiSn2jJ 6yUsUmXwLnrnqy+CHeqyQFSK1aqIbivSeB70V26fI4w3dpRIUPSccJ8vlpDGZ6DnxCYT zqulr2t97uxSBLjYyvlMoKfN3l6Mxyao2vo5dub10SW5ulTrWj89rCH5dMjATXls7Tm2 tSqoE+qia5wJjRbxybLarT5LYs4FjvgLonWCYYbbFXZeOnV81Jx3OeSgtF118gqZmT3z A4ft6C64ggoemnT2G+xweTBOl0L0Sew3YHz5ldLZ2GWO1OXds/VSETddaCFnMtAUq1vd Os5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=y89Be66gJlvJ2jmYXzGcThE3/DpNrJ9aduYa4djWig8=; b=DpDQKnDfT0DRfInF9MaqQURCLHnxvZ2a6fWq0JBl71XSs49c9Ig5YZFSbcs2FT8SqE sfeaNNhk46q4eZs8QVsiNAAQZX6+mIhCUCnsRiepouKaYdTZMpEgqJrm298GZwxbEcIU OQBAv7M9O68mx0dgDnfuDIOHhaLaqgNoqvKmE4VvYzlQobTobvMUY4FRd3DccVH/d6Iy FN7AK09zy2WYr96TBQvfrr0h5dHu0179uQGYcfDS/MEBOtBKA9ymUSpuh5Qlvb8c8YLN fc7+r6xqmIHgWbHkKZzHkgDLzhXO3nUvO1aRi0KggGvowlbkaLnmpkMJ9Znnx9Kcl7H2 T4hw== X-Gm-Message-State: AN3rC/7fWcgiM2hrlp8JQxHvFQ0k9kIWcZlbMAZEjzhvLP2su2mzS1Gd HiF4nLAHLDwhrrnsP5dAsNNsSLzUC0jt X-Received: by 10.129.40.138 with SMTP id o132mr9546227ywo.149.1493396011135; Fri, 28 Apr 2017 09:13:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.218.146 with HTTP; Fri, 28 Apr 2017 09:13:00 -0700 (PDT) In-Reply-To: <1493389564119-4725337.post@n4.nabble.com> References: <1493389564119-4725337.post@n4.nabble.com> From: Christopher Shannon Date: Fri, 28 Apr 2017 12:13:00 -0400 Message-ID: Subject: Re: purge performance??? To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a11407ae2c0b69e054e3c5aa7 archived-at: Fri, 28 Apr 2017 16:13:36 -0000 --001a11407ae2c0b69e054e3c5aa7 Content-Type: text/plain; charset=UTF-8 How fast the messages get purged depend on many things such as how large the messages are, if they are non-persistent, and if there is contention on the Queue, and of course how fast your hardware is. The purge operation works by paging in batches of messages at a time so if it has to go to disk versus just in memory then it will take a little bit longer depending on your disk performance. Also if there are a lot of producers/consumers to a Queue it will interfere with the purge as well as locks have to be obtained. That being said, 10 thousand messages is not that many messages if they are relatively small (no more than a couple KB) and in most situations I would expect it to only take a few seconds, especially if they are in memory. If you have large messages (megabytes) then it will of course take a lot longer. On Fri, Apr 28, 2017 at 10:26 AM, pbCode wrote: > Hi, > I have a lot of messages in some DLQs. These are in the order of 10 > thousand / DLQ! Before I go and delete these from my production > environment > I wanted to know if theres anything I need to consider before I do it??? > ie > performance. As you can imagine I dont want to hit the purge button and > then the CPU rocket through the roof! I have tested it in my development > environment by using the active mq web console to create 10 thousand > messages and then purge them. It was so quick it was unbelievable! I was > wondering why it was so quick, that maybe the 10 thousand messages that I > created through the console were deleted so quickly because the messages > are effectively the same??? Any help will be appreciated. > > > > -- > View this message in context: http://activemq.2283324.n4.nab > ble.com/purge-performance-tp4725337.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a11407ae2c0b69e054e3c5aa7--