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 CD2AB62DA for ; Tue, 14 Jun 2011 21:13:10 +0000 (UTC) Received: (qmail 7564 invoked by uid 500); 14 Jun 2011 21:13:10 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 7527 invoked by uid 500); 14 Jun 2011 21:13:10 -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 7519 invoked by uid 99); 14 Jun 2011 21:13:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2011 21:13:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 14 Jun 2011 21:13:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4FA91416AA5 for ; Tue, 14 Jun 2011 21:12:47 +0000 (UTC) Date: Tue, 14 Jun 2011 21:12:47 +0000 (UTC) From: "Jim Gomes (JIRA)" To: dev@activemq.apache.org Message-ID: <935175842.4329.1308085967322.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <519520366.4165.1308084770836.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Work started] (AMQNET-330) MutexTransport creates bottleneck for multi-threaded applications MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQNET-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on AMQNET-330 started by Jim Gomes. > MutexTransport creates bottleneck for multi-threaded applications > ----------------------------------------------------------------- > > Key: AMQNET-330 > URL: https://issues.apache.org/jira/browse/AMQNET-330 > Project: ActiveMQ .Net > Issue Type: Bug > Components: ActiveMQ, Stomp > Affects Versions: 1.5.1 > Environment: Windows 7 64-bit, .NET 3.5 & 4.0. > Reporter: Jim Gomes > Assignee: Jim Gomes > Labels: mutex, timeout, transport > Fix For: 1.5.2, 1.6.0 > > Original Estimate: 2h > Remaining Estimate: 2h > > The MutexTransport creates a massive bottleneck in a multi-threaded application that uses timeouts for sending messages. This scenario makes the assumption that the failover protocol is being used to automatically reconnect to a broker that goes offline. If multiple threads are sending messages that have a send timeout and the broker is currently offline, then those calls get queued up in serial instead of executing in parallel. For example, if the send timeout is set to 10 seconds and 50 threads are simultaneously sending a message, it will take 500 seconds for all fifty threads to finally error out. The programmer of the code would expect the timeout to be 10 seconds maximum in order to have acceptable application performance. > The MutexTransport needs to honor and use the timeout value of the transport that it is protecting and allow parallel waits. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira