Skip to content

I think some data was lost. How can I confirm?


You believe some data sent over an Aeron UDP channel might have been lost and want to confirm.


Use the LossStat tool to review if any loss data was captured by Aeron.


LossStat logs all the data loss events suffered by Aeron. You must point LossStat at the Media Driver folder specified in the Media Driver Context. For example, if your Media Driver context has the following:

final MediaDriver.Context mediaDriverCtx = new MediaDriver.Context()

then the path provided to LossStat would be as follows:

java -cp aeron-all-*.jar -Daeron.dir=/dev/shm/md io.aeron.samples.LossStat

An example run:

688,4167028,2020-08-16 13:53:39.053+0000,2020-08-16 13:53:41.003+0000,1155221173,8,aeron:udp?endpoint=;

This tells us the following about the session 1155221173 on channel aeron:udp?endpoint= on stream 8 ⤌⤍ flow:

  • there were 688 data loss events
  • a total of 4,167,028 bytes were impacted
  • the loss first happened at 2020-08-16 16:53:39.053+0000
  • the last loss happened at 2020-08-16 16:53:41.003+0000

If there are no entries, then Aeron believes that no data was lost.

See Also