activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lzr <jsw...@163.com>
Subject Re:Re:Reply:Re:re:About the efficiency of the consumer creation.
Date Tue, 29 Nov 2011 02:21:48 GMT
Here comes more performance test information:
Without transaction, I can perform the flow about 500 times per second.
With transaction, it's only 20 times per second.



At 2011-11-29 09:35:30,lzr <jswqne@163.com> wrote:

Thanks a lot for your timely response!
I'll try it again following up your advice.
I make further test with transaction and found it gets worse and worse:(
Following are my cases:
Client sends request 1 to queue S1, then wait response 1;
Server1 receives request 1 and sends request 2 to queue S2, then wait response 2;
Server2 receives request 2 and sends response 2 back;
Server1 receives response 2 and sends response 1 back;
Client receives response1 and records , the flow is done.



At 2011-11-28 17:19:46,SuoNayi <suonayi2006@163.com> wrote:

It takes more than one network trips(1.5  network trip in fact) when a consumer is created
and closed.

Broker will keep the status of all consumers so your use case may cause broker overheat.
You may try the following:
1,ensuring only one connection is created and reused it always.
   Do not create connection every time when you need create session, producer or consumer
etc.
2,Property named alwaysSessionAsync of ConnectionFactory is set to be false(default true).

At 2011-11-28 16:17:10,lzr <jswqne@163.com> wrote:

MessageConsumer creating and closing frequently!



At 2011-11-28 10:51:12,SuoNayi <suonayi2006@163.com> wrote:


Only creating consumers no close?
Note that with sparse match of selector, you may get into the trouble of dispatching message.



--

Wangyin
SuoNayi2006@163.com 
 












Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message