Skip to content

Is high memory usage expected with large number of websocket connections? #7337

Answered by cpretzer
mplauman asked this question in Q&A
Discussion options

You must be logged in to vote

@mplauman thanks for sharing the metrics and other info in slack.

This report sounds similar to this issue.

With ~2k TCP connections, we expect that there will be more than normal memory usage, especially with the long-lived web sockets connections.

I spent some time testing this and found that the memory isn't leaking, and doesn't continue to grow with time. It grows with the number of connections. So, I'd suggest increasing the proxy memory (and possibly CPU) limits either through the values.yaml file, or by using the
config.linkerd.io/proxy-memory-limit and config.linkerd.io/proxy-memory-request annotations.

The annotations will let you target specific workloads, whereas changing value…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mplauman
Comment options

@wmorgan
Comment options

Answer selected by mplauman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants