Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E80589DE for ; Tue, 16 Aug 2011 18:21:50 +0000 (UTC) Received: (qmail 50016 invoked by uid 500); 16 Aug 2011 18:21:49 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 49888 invoked by uid 500); 16 Aug 2011 18:21:49 -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 49874 invoked by uid 99); 16 Aug 2011 18:21:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 18:21:48 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 18:21:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 375DCBF679 for ; Tue, 16 Aug 2011 18:21:27 +0000 (UTC) Date: Tue, 16 Aug 2011 18:21:27 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <842169718.42158.1313518887181.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1099423107.41646.1313508208390.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-3454) Contention on a mutex during a stress when using SimpleAuthenticationPlugin 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/AMQ-3454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish updated AMQ-3454: ------------------------------ Attachment: RWLockDestinations.txt I was actually looking at that code yesterday and noticed that the locking on the destinationsMutex could result in unnecessary waits. I am attaching a fix that I was testing, if you'd like to try it out just apply it to a trunk checkout and build your own broker. > Contention on a mutex during a stress when using SimpleAuthenticationPlugin > --------------------------------------------------------------------------- > > Key: AMQ-3454 > URL: https://issues.apache.org/jira/browse/AMQ-3454 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.5.0 > Reporter: William > Priority: Critical > Attachments: RWLockDestinations.txt, amq-config.zip, amq-dump > > > I am testing ActiveMQ 5.5 with my own stress test. I tried to implement a stress test that use jms ressource in the same fashion that my application would do. > For that, I used jms template (from Spring) and a pooled connection factory (as recommended). I run a fixed number of thread that plublish on fixed number of topics. Each thread pick up a topic and enter a loop that will send a message on the choosen topic. > The issue is reproductible with SimpleAuthenticationPlugin active. > Configuration of the test : > * 100 topics > * more than one thread per topic (actually 1500 producer threads) > Common connection properties : > * alwaysSessionAsync=false > * dispatchAsync=false > * optimizeAcknowledge=true > * socketBufferSize=131072&trace=true&wireFormat.cacheSize=2048&wireFormat.tcpNoDelayEnabled=true&wireFormat.tightEncodingEnabled=true&keepAlive=true&soTimeout=10000&connectionTimeout=10000\ > Producers : > * Message are not persistent > * There is no transaction > * Message expiration time is 30s > * Unsing JMS template singleton with a PooledConnectionFactory > * 3 JVM running > * connection options alwaysSyncSend=true,copyMessageOnSend=false > Consumers : > * just listening to each topic with a SimpleMessageListenerContainer and count messages received > * 3 JVM running > In attachment, you will find activemq config file and thread dumps. I can attach the producer/consumers code if you need it but I think you have your own tests. > This Jira is critical for me because security is mandatory for our use. > If you need more information, please ask. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira