Send() too slow
jbmuser Feb 25, 2010 7:32 AMHi,
I think with latest HornetQ 2.0.0.GA I am not getting the speed I used to get for send() in BETA version. I understand that there are a few default configurations changed after BETA but I am trying to figure out the suitable configuration to get a fairly good speed and reliability.
I am sending Durable messages with AUTO_ACK
From the user manual, I see that following are the three parameters which affects send() speed
- journal-sync-non-transactional - Default true
- block-on-durable-send - Default true
- block-on-acknowledge - Default false
Below are the 4 different combinations I tried. Send speed varied from ~40 to ~2300 msgs/s. Also, receive was faster than send (which was not teh case with earlier versions). Is there any parameter I am missing?
Out of the box (All default settings)
----------------------------------------------
SEND 42.28866240960799 msgs/s
RECV 5291.005291005291 msgs/s
SEND 42.707666026051676 msgs/s
RECV 4901.9607843137255 msgs/s
SEND 42.17451815613007 msgs/s
RECV 4219.4092827004215 msgs/s
After <journal-sync-non-transactional>false</journal-sync-non-transactional>
------------------------------------------------------------------------------------------------------------------
SEND 781.8608287724785 msgs/s
RECV 3125.0 msgs/s
SEND 793.6507936507936 msgs/s
RECV 1436.781609195402 msgs/s
SEND 833.3333333333334 msgs/s
RECV 4878.048780487805 msgs/s
SEND 925.0693802035153 msgs/s
RECV 3703.703703703704 msgs/s
SEND 1104.9723756906078 msgs/s
RECV 2538.0710659898477 msgs/s
After <journal-sync-non-transactional>false</journal-sync-non-transactional> and <block-on-durable-send>false</block-on-durable-send>
--------------------------------------------------------------------------------------------------------------------------------------
SEND 2398.0815347721823 msgs/s
RECV 3649.6350364963505 msgs/s
SEND 2188.1838074398247 msgs/s
RECV 3460.2076124567475 msgs/s
SEND 2309.4688221709007 msgs/s
RECV 3558.7188612099644 msgs/s
SEND 2061.8556701030925 msgs/s
RECV 1851.851851851852 msgs/s
After <journal-sync-non-transactional>false</journal-sync-non-transactional> and <block-on-acknowledge>false</block-on-acknowledge>
-----------------------------------------------------------------------------------------------------------------------------------
RECV 2816.901408450704 msgs/s
SEND 812.3476848090983 msgs/s
RECV 1314.060446780552 msgs/s
SEND 610.8735491753207 msgs/s
RECV 4098.360655737704 msgs/s
SEND 856.898029134533 msgs/s
RECV 3134.796238244514 msgs/s