Skip to content

Commit 951f5a5

Browse files
committed
increase outbound-control-queue-size
* since it's a linked queue nowadays it's fine to have a higher limit * using 20000, since that is also the default of the system messages buffer
1 parent 25079cb commit 951f5a5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

akka-remote/src/main/resources/reference.conf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -942,17 +942,18 @@ akka {
942942

943943
# Size of the send queue for outgoing control messages, such as system messages.
944944
# If this limit is reached the remote system is declared to be dead and its UID
945-
# marked as quarantined.
946-
# The trade-off of using a larger queue size is that it consumes more memory,
947-
# since the queue is based on preallocated array with fixed size.
948-
outbound-control-queue-size = 3072
945+
# marked as quarantined. Note that there is one such queue per outbound association.
946+
# It is a linked queue so it will not use more memory than needed but by increasing
947+
# too much you may risk OutOfMemoryError in the worst case.
948+
outbound-control-queue-size = 20000
949949

950950
# Size of the send queue for outgoing large messages. Messages will be dropped if
951951
# the queue becomes full. This may happen if you send a burst of many messages
952952
# without end-to-end flow control. Note that there is one such queue per
953-
# outbound association. The trade-off of using a larger queue size is that
954-
# it consumes more memory, since the queue is based on preallocated array with
955-
# fixed size.
953+
# outbound association.
954+
# It is a linked queue so it will not use more memory than needed but by increasing
955+
# too much you may risk OutOfMemoryError, especially since the message payload
956+
# of these messages may be large.
956957
outbound-large-message-queue-size = 256
957958

958959
# This setting defines the maximum number of unacknowledged system messages

0 commit comments

Comments
 (0)