Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F265C185BE for ; Tue, 2 Jun 2015 15:17:34 +0000 (UTC) Received: (qmail 14222 invoked by uid 500); 2 Jun 2015 15:17:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 14191 invoked by uid 500); 2 Jun 2015 15:17: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 13869 invoked by uid 99); 2 Jun 2015 15:17:31 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 15:17:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E9F1A181A4E for ; Tue, 2 Jun 2015 15:17:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.251 X-Spam-Level: *** X-Spam-Status: No, score=3.251 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tsaQma1rmkxa for ; Tue, 2 Jun 2015 15:17:17 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 7EE6542AF1 for ; Tue, 2 Jun 2015 15:17:17 +0000 (UTC) Received: by oiww2 with SMTP id w2so128055482oiw.0 for ; Tue, 02 Jun 2015 08:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=h9bIDcYDeYbyY2PB+E6ihF65I2E9j3EzRf7ApXQvOIg=; b=wGxNZDS06vubVBhoNJvKw6LCpnnnX0JmAgQ7dZmhYlcq/5CWrVQ/1gUHIB4ow5r/Uw hsT3+bjjec8IYfMPSGj127nibigScKtNDq+0nq9mbyAwZC00Yy9voLkl+3GA7fQtrkML sIAa4UYtAS+pkIMn4lKgY/3svnckkhJdGbt9fPtgrXLpGmII8bGCtgTU74rvYjkatxPZ 9OVccQD+i7IevS2U6b6pKCkvf5huugFbSU2bLi0Gm0NhV3ZTIoDeXnLT153GfgoveVuV gAr4BxrwB8hsJrXi/WyTYfscBLFfCl8ptbeQUXbhhkQ52AczkOoztaSrUCOhFBqp1wOG vMBw== MIME-Version: 1.0 X-Received: by 10.60.60.164 with SMTP id i4mr23169509oer.22.1433258191745; Tue, 02 Jun 2015 08:16:31 -0700 (PDT) Sender: burtonator2011@gmail.com Received: by 10.183.6.233 with HTTP; Tue, 2 Jun 2015 08:16:30 -0700 (PDT) Received: by 10.183.6.233 with HTTP; Tue, 2 Jun 2015 08:16:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Jun 2015 08:16:30 -0700 X-Google-Sender-Auth: R64kNQVqijZAPM3IRqqAIqDcVeE Message-ID: Subject: Re: More ActiveMQ hotspots.. courtesy of continuous profiling :) From: Kevin Burton To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=089e0139fe6063f7d805178a6ddc --089e0139fe6063f7d805178a6ddc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Both are decent... Just not really for production use. One of the cool things about java mission control is the overhead is only about one percent. I would love to see other profilers catch up. On Jun 2, 2015 7:26 AM, "Thiago Kronig" wrote: > YourKit and JProfiler < > http://www.ej-technologies.com/products/jprofiler/overview.html> are grea= t > commercial tools, and they have licenses for open source projects. > > On Tue, Jun 2, 2015 at 11:19 AM Kevin Burton wrote: > > > On Tue, Jun 2, 2015 at 6:16 AM, Tim Bain wrote: > > > > > Kevin, > > > > > > Great finds. What tool were you using? > > > > > > > > Java Mission Control.. Free for development.. but I think the community > > needs a real open source tool. Pseudo -free isn=E2=80=99t a good idea. > > > > > > > Is it safe to assume you'll submit patches (when you have time) so we > > don't > > > need to capture these in JIRA? > > > > > > > Might want to create one. The problem with my patch set, is that I=E2= =80=99m > still > > stuck on 5.10.2. There=E2=80=99s a bug introduced sometime around 5.11= that only > > impacts the memory store. I haven=E2=80=99t been able to track it down= yet so I > > can=E2=80=99t retarget my patches to head. That, and I think one of my= patches > > doesn=E2=80=99t work with LevelDB so I need to fix that. > > > > Realistically, I should fix all those issues so that I can move between > > versions. > > > > > > > > > > Adding a synchronized Multimap to > > > ManagedRegionBroker looked good to me. It won't be threadsafe agains= t > > > simultaneous registers/unregisters for the same subscription, but it > > looks > > > like that class already has that problem so I don't think that's a > reason > > > not to do it. > > > > > > > Or store a second concurrent hash map. that would fix it. > > > > > > > > > > In addConsumerToList(), I think we can do a sorted insertion (iterate > > > through the list till you find the right place based on the comparato= r, > > > then insert) to skip the re-sort. Either we'll be rolling the list o= r > we > > > won't, but either way the list will be in sorted order, except that t= he > > > minimum element might not be the first one. So find the minimum > > element's > > > index (O(log N), but can be optimized to O(1) for the not-rolling > case), > > > then do a sorted insert starting at that index and wrapping if > necessary. > > > > > > True.. That would definitely make that faster. > > > > Kevin > > -- > > > > Founder/CEO Spinn3r.com > > Location: *San Francisco, CA* > > blog: http://burtonator.wordpress.com > > =E2=80=A6 or check out my Google+ profile > > > > > --089e0139fe6063f7d805178a6ddc--