Skip to content

Running the sample

The unified log of a client and server run is below. Note that the processes can be started in any order.

1
2
3
4
5
6
7
8
9
10:32:59.745 [server] Server starting
10:33:03.764 [client] Client starting
10:33:03.893 [client] awaiting outbound server connect
10:33:04.004 [client] sending connect request
10:33:04.012 [client] awaiting inbound server connect
10:33:04.015 [server] received connect request with response URI aeron:udp?endpoint=localhost:2001 stream 1
10:33:04.215 [client] sending: string to be made uppercase with correlation 0142579c-2b3d-4bed-a280-472e44274322
10:33:04.219 [server] responding on correlation 0142579c-2b3d-4bed-a280-472e44274322 with value STRING TO BE MADE UPPERCASE
10:33:04.230 [client] Received STRING TO BE MADE UPPERCASE

Note that the thread names server and client are derived from the agent names provided in ServerAgent and ClientAgent respectively.

As viewed from AeronStat

The image below is a rendering of the AeronStat output. Actual AeronStat output is further below.

server<server1>client<client1>Heartbeat Age = 309msPID =44501Bytes Sent = 3488Bytes Received = 3616Back Pressure Events = 0NAKs sent = 0NAKs received = 0Retransmits Sent = 0Short Sends = 0Errors = 0180202444server[aeron:udp?endpoint=127.0.0.1:2000@1]1158780777server[aeron:udp?endpoint=127.0.0.1:2001@1]Heartbeat Age = 488msPID =44769Bytes Sent = 9792Bytes Received = 9664Back Pressure Events = 0NAKs sent = 0NAKs received = 0Retransmits Sent = 0Short Sends = 0Errors = 01158780777client[aeron:udp?endpoint=127.0.0.1:2001@1]180202444client[aeron:udp?endpoint=127.0.0.1:2000@1]Back Pressure Events=0PubPos = 224 (sampled)SubPos = 224Difference = 0Back Pressure Events=0PubPos = 128 (sampled)SubPos = 128Difference = 0

Server

09:17:40 - Aeron Stat (CnC v0.2.0), pid 43085, heartbeat age 231ms
======================================================================
  0:              113,632 - Bytes sent
  1:               62,304 - Bytes received
  2:                    0 - Failed offers to ReceiverProxy
  3:                    0 - Failed offers to SenderProxy
  4:                    0 - Failed offers to DriverConductorProxy
  5:                    0 - NAKs sent
  6:                    0 - NAKs received
  7:                1,021 - Status Messages sent
  8:                1,651 - Status Messages received
  9:                3,543 - Heartbeats sent
 10:                1,933 - Heartbeats received
 11:                    0 - Retransmits sent
 12:                    0 - Flow control under runs
 13:                    0 - Flow control over runs
 14:                    0 - Invalid packets
 15:                    0 - Errors
 16:                    0 - Short sends
 17:                    0 - Failed attempts to free log buffers
 18:                    0 - Sender flow control limits, i.e. back-pressure events
 19:                    0 - Unblocked Publications
 20:                    0 - Unblocked Control Commands
 21:                    0 - Possible TTL Asymmetry
 22:                    0 - ControllableIdleStrategy status
 23:                    0 - Loss gap fills
 24:                    0 - Client liveness timeouts
 25:                    0 - Resolution changes: driverName= hostname=Hurricane.local
 26:            3,277,361 - Conductor max cycle time doing its work (ns)
 27:                    0 - Conductor work cycle exceeded threshold count
 28:                    1 - rcv-channel: aeron:udp?endpoint=127.0.0.1:2000 127.0.0.1:2000
 29:                    1 - rcv-local-sockaddr: 28 127.0.0.1:2000
 30:    1,618,665,460,506 - client-heartbeat: 1
 31:                  224 - rcv-pos: 5 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 32:                  224 - sub-pos: 2 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000 @0
 33:                  224 - rcv-hwm: 5 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 34:                    1 - snd-channel: aeron:udp?endpoint=127.0.0.1:2001 127.0.0.1:63818
 35:                    1 - snd-local-sockaddr: 34 127.0.0.1:63818
 36:                  128 - pub-pos (sampled): 4 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
 37:            8,388,736 - pub-lmt: 4 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
 38:                  128 - snd-pos: 4 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
 39:              131,200 - snd-lmt: 4 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
 40:                    0 - snd-bpe: 4 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
 41:                  128 - pub-pos (sampled): 6 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
 42:            8,388,736 - pub-lmt: 6 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
 43:                  128 - snd-pos: 6 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
 44:              131,072 - snd-lmt: 6 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
 45:                    0 - snd-bpe: 6 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
--

Client

09:16:31 - Aeron Stat (CnC v0.2.0), pid 41609, heartbeat age 645ms
======================================================================
  0:               21,664 - Bytes sent
  1:               42,944 - Bytes received
  2:                    0 - Failed offers to ReceiverProxy
  3:                    0 - Failed offers to SenderProxy
  4:                    0 - Failed offers to DriverConductorProxy
  5:                    0 - NAKs sent
  6:                    0 - NAKs received
  7:                  672 - Status Messages sent
  8:                  337 - Status Messages received
  9:                  670 - Heartbeats sent
 10:                1,338 - Heartbeats received
 11:                    0 - Retransmits sent
 12:                    0 - Flow control under runs
 13:                    0 - Flow control over runs
 14:                    0 - Invalid packets
 15:                    0 - Errors
 16:                    0 - Short sends
 17:                    0 - Failed attempts to free log buffers
 18:                    0 - Sender flow control limits, i.e. back-pressure events
 19:                    0 - Unblocked Publications
 20:                    0 - Unblocked Control Commands
 21:                    0 - Possible TTL Asymmetry
 22:                    0 - ControllableIdleStrategy status
 23:                    0 - Loss gap fills
 24:                    0 - Client liveness timeouts
 25:                    0 - Resolution changes: driverName= hostname=Hurricane.local
 26:            8,042,265 - Conductor max cycle time doing its work (ns)
 27:                    0 - Conductor work cycle exceeded threshold count
 28:                    1 - snd-channel: aeron:udp?endpoint=127.0.0.1:2000 127.0.0.1:63350
 29:                    1 - snd-local-sockaddr: 28 127.0.0.1:63350
 30:                  224 - pub-pos (sampled): 2 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 31:            8,388,832 - pub-lmt: 2 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 32:                  224 - snd-pos: 2 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 33:              131,072 - snd-lmt: 2 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 34:                    0 - snd-bpe: 2 -722424329 1 aeron:udp?endpoint=127.0.0.1:2000
 35:    1,618,665,391,192 - client-heartbeat: 1
 36:                    1 - rcv-channel: aeron:udp?endpoint=127.0.0.1:2001 127.0.0.1:2001
 37:                    1 - rcv-local-sockaddr: 36 127.0.0.1:2001
 38:                  128 - sub-pos: 3 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001 @0
 39:                  128 - rcv-hwm: 4 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
 40:                  128 - rcv-pos: 4 -1383902030 1 aeron:udp?endpoint=127.0.0.1:2001
 41:                  128 - sub-pos: 3 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001 @128
 42:                  128 - rcv-hwm: 5 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
 43:                  128 - rcv-pos: 5 -1383902031 1 aeron:udp?endpoint=127.0.0.1:2001
--