STOMP - alternating low/high transfer rates
mjustin Jan 12, 2012 11:48 AMHello,
I have set up a STOMP client test application for HornetQ (2.2.5.Final on Windows Vista) which runs two threads, one is continuously sending messages to a topic, and the other consumes them, using client-side ack.
If the test application runs the first time after launching the broker, the test shows quite low message rates as shown below, and the CPU load is minimal. (Note that there are timeouts too (the timeout limit is set to 5000 milliseconds).
But when I terminate the test application - not the broker - and start again the transfer rates are very high - more than 5000 messages per second, and I also see higher CPU load.
The next run then has low rates, but eventually with very high rates for outgoing (to broker) messages.
This looks strange and maybe there are settings which control the balancing between incoming and outgoing messages?
00:02 tx/rx: 2895/2186 - 1090 msgs/sec (917 microsecs/roundtrip)
00:04 tx/rx: 3590/2866 - 715 msgs/sec (1398 microsecs/roundtrip)
00:06 tx/rx: 4419/3787 - 630 msgs/sec (1587 microsecs/roundtrip)
00:08 tx/rx: 5067/4319 - 539 msgs/sec (1855 microsecs/roundtrip)
00:10 tx/rx: 7564/7014 - 701 msgs/sec (1426 microsecs/roundtrip)
00:12 tx/rx: 8536/8074 - 672 msgs/sec (1488 microsecs/roundtrip)
00:14 tx/rx: 9538/9053 - 646 msgs/sec (1547 microsecs/roundtrip)
00:16 tx/rx: 11199/10717 - 669 msgs/sec (1494 microsecs/roundtrip)
00:18 tx/rx: 12947/12205 - 677 msgs/sec (1477 microsecs/roundtrip)
00:20 tx/rx: 13757/12925 - 646 msgs/sec (1547 microsecs/roundtrip)
00:22 tx/rx: 14891/14325 - 650 msgs/sec (1538 microsecs/roundtrip)
00:24 tx/rx: 16511/15781 - 657 msgs/sec (1522 microsecs/roundtrip)
00:26 tx/rx: 17615/15781 - 606 msgs/sec (1650 microsecs/roundtrip)
00:28 tx/rx: 17772/15781 - 563 msgs/sec (1776 microsecs/roundtrip)
ReceiveThread: TCP/IP Socket error 10060: Connection timed out
00:30 tx/rx: 17772/15781 - 525 msgs/sec (1904 microsecs/roundtrip)
00:32 tx/rx: 17772/15781 - 493 msgs/sec (2028 microsecs/roundtrip)
SendThread: TCP/IP Socket error 10060: Connection timed out
00:34 tx/rx: 17773/15781 - 464 msgs/sec (2155 microsecs/roundtrip)
00:36 tx/rx: 22471/15781 - 438 msgs/sec (2283 microsecs/roundtrip)
00:38 tx/rx: 33890/15781 - 415 msgs/sec (2409 microsecs/roundtrip)
00:40 tx/rx: 45334/15781 - 394 msgs/sec (2538 microsecs/roundtrip)
00:42 tx/rx: 56629/15781 - 375 msgs/sec (2666 microsecs/roundtrip)
00:44 tx/rx: 68025/15781 - 358 msgs/sec (2793 microsecs/roundtrip)
second run:
00:02 tx/rx: 6860/6475 - 3229 msgs/sec (309 microsecs/roundtrip)
00:04 tx/rx: 14127/13664 - 3411 msgs/sec (293 microsecs/roundtrip)
00:06 tx/rx: 21018/20612 - 3432 msgs/sec (291 microsecs/roundtrip)
00:08 tx/rx: 27730/27383 - 3420 msgs/sec (292 microsecs/roundtrip)
00:10 tx/rx: 35252/34676 - 3465 msgs/sec (288 microsecs/roundtrip)
00:12 tx/rx: 42190/41686 - 3470 msgs/sec (288 microsecs/roundtrip)
00:14 tx/rx: 48991/48469 - 3459 msgs/sec (289 microsecs/roundtrip)
00:16 tx/rx: 56317/55919 - 3492 msgs/sec (286 microsecs/roundtrip)
third run:
00:02 tx/rx: 10365/903 - 450 msgs/sec (2222 microsecs/roundtrip)
00:04 tx/rx: 20942/2206 - 550 msgs/sec (1818 microsecs/roundtrip)
00:06 tx/rx: 31940/2945 - 490 msgs/sec (2040 microsecs/roundtrip)
00:08 tx/rx: 43079/4380 - 547 msgs/sec (1828 microsecs/roundtrip)
00:10 tx/rx: 54334/4640 - 463 msgs/sec (2159 microsecs/roundtrip)
00:12 tx/rx: 65628/4640 - 386 msgs/sec (2590 microsecs/roundtrip)
THabariReceiveThread: Synapse TCP/IP Socket error 10060: Connection timed out
00:14 tx/rx: 76917/4640 - 331 msgs/sec (3021 microsecs/roundtrip)
00:16 tx/rx: 88225/4640 - 289 msgs/sec (3460 microsecs/roundtrip)
--
Michael Justin
habarisoft - Enterprise Messaging Software for Delphi