activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Moore <br...@bryanmoore.com>
Subject Message Send is fast with TCP transport, slow when using Discovery
Date Tue, 11 May 2010 19:06:01 GMT
I've encountered what seems to me to be a very strange behavior when 
using discovery.

Here is my original client connection setup...    
"tcp://myserver:61616?jms.useAsyncSend=true"

The writes to the queue occur very fast, approximately one per MS.

INFO  2010-05-11 14:40:08,799 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208799
INFO  2010-05-11 14:40:08,800 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208800
INFO  2010-05-11 14:40:08,801 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208801
INFO  2010-05-11 14:40:08,802 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208802
INFO  2010-05-11 14:40:08,803 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208803
INFO  2010-05-11 14:40:08,803 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208803
INFO  2010-05-11 14:40:08,804 [Thread-5] com.dt.QueueLoader: Put file on 
queue:1273603208804


Now if I change the connection setup to this...     
"discovery:multicast://default?jms.useAsyncSend=true"

The writes slow down, one every 30-40 MS.

INFO  2010-05-11 14:46:40,542 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600542
INFO  2010-05-11 14:46:40,576 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600576
INFO  2010-05-11 14:46:40,618 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600618
INFO  2010-05-11 14:46:40,651 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600651
INFO  2010-05-11 14:46:40,684 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600684
INFO  2010-05-11 14:46:40,718 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600718
INFO  2010-05-11 14:46:40,760 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600760
INFO  2010-05-11 14:46:40,802 [Thread-6] com.dt.QueueLoader: Put file on 
queue:1273603600802


Any idea what the cause could be?  Maybe I cannot pass useAsyncSend like 
I am when using discovery?


Bryan

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