You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "rikky (Updated) (JIRA)" <ji...@apache.org> on 2011/10/17 05:32:11 UTC

[jira] [Updated] (AMQ-3538) request-response performance is poor when the client and broker lie in different machine

     [ https://issues.apache.org/jira/browse/AMQ-3538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

rikky updated AMQ-3538:
-----------------------

    Attachment: RequestResponseTest.java

unit test code
                
> 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