1

我有突然(在成功传输的消息数之后)停止发送|接收消息的流。

AeronStat 的输出为:

47 : 8,452,864 - pub-pos (sampled): 9 -813703616 1 aeron:udp?endpoint=localhost:40100
48 : 8,519,104 - pub-lmt: 9 -813703616 1 aeron:udp?endpoint=localhost:40100
49 : 130,496 - snd-pos: 9 -813703616 1 aeron:udp?endpoint=localhost:40100
50 : 131,072 - snd-lmt: 9 -813703616 1 aeron:udp?endpoint=localhost:40100
51 : 0 - snd-bpe: 9 -813703616 1 aeron:udp?endpoint=localhost:40100
52 : 130,496 - rcv-hwm: 10 -813703616 1 aeron:udp?endpoint=localhost:40100
53 : 130,496 - rcv-pos: 10 -813703616 1 aeron:udp?endpoint=localhost:40100
54 : 0 - sub-pos: 2 -813703616 1 aeron:udp?endpoint=localhost:40100 @0
55 : 130,496 - sub-pos: 8 -813703616 1 aeron:udp?endpoint=localhost:40100 @0

看起来有相对较小的 snd-lmt 可以防止传输。我的理解正确吗?如何更改 snd-lmt ?还有,当我在 AeronStat 输出中有一个通道的两个子位置条目时,这意味着什么,例如:

54 : 0 - sub-pos: 2 -813703616 1 aeron:udp?endpoint=localhost:40100 @0
55 : 130,496 - sub-pos: 8 -813703616 1 aeron:udp?endpoint=localhost:40100 @0

谢谢!

4

1 回答 1

4

两个sub-pos计数器值表示您对该媒体驱动程序上的同一流有两个单独的订阅。该出版物可能会遇到背压,因为订阅没有被推进,因为它可能没有被轮询。

于 2021-10-04T15:48:40.127 回答