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 94F2D9725 for ; Mon, 17 Oct 2011 03:36:34 +0000 (UTC) Received: (qmail 18337 invoked by uid 500); 17 Oct 2011 03:36:34 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 18304 invoked by uid 500); 17 Oct 2011 03:36:33 -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 18296 invoked by uid 99); 17 Oct 2011 03:36:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 03:36:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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; Mon, 17 Oct 2011 03:36:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BFD4F30BCE7 for ; Mon, 17 Oct 2011 03:36:11 +0000 (UTC) Date: Mon, 17 Oct 2011 03:36:11 +0000 (UTC) From: "rikky (Updated) (JIRA)" To: dev@activemq.apache.org Message-ID: <1115444638.19384.1318822571787.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <373115966.4069.1318408031878.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-3538) request-response performance is poor when the client and broker lie in different machine 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-3538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] rikky updated AMQ-3538: ----------------------- Attached is the unit test code, actually, i think this must be done in an integration test, because the broker and the client code must run on different computer. > request-response performance is poor when the client and broker lie in different machine > ---------------------------------------------------------------------------------------- > > Key: AMQ-3538 > URL: https://issues.apache.org/jira/browse/AMQ-3538 > Project: ActiveMQ > Issue Type: Improvement > Components: Broker > Affects Versions: 5.4.2, 5.5.0 > Environment: JDK 1.6, windows 2008 server. > Reporter: rikky > Attachments: RequestResponseTest.java > > > for example: > Message msg = session.createTextMessage("gogogo"); > try > { > long s = System.currentTimeMillis(); > for (int i = 0; i < 100; i++) > { > Message resp = request.request(msg); > } > long e = System.currentTimeMillis(); > System.out.println( e - s); > } > finally > { > session.close(); > } > execute the above codes, the performance is very poor, can only handle 2-3messages/sec. > but if i increase the message size to about 20k, then the performance increase incredibly, can handle 50 messages/sec! > maybe the broker use some strategy to block the outgoing message,if that is true, any configuration to change that strategy? > Thanks. -- 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