-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible Memory Leak Found #43729
Comments
The aws sdk version StarRocks cloud native is 1.10.36, and the s2n version sdk used is v1.3.27:
|
The memory allocated here, but it only freed within process exit, seems below:
it's freed within function s2n_drbg_wipe:
But only freed within process exits:
|
A few aws sdk s2n fixes that may be related to this leak: |
I am opt to give a GO to backport the aws sdk version upgrade to v3.2 |
#43887 the aws sdk version upgraded to 1.11.267 and is released in 3.3.0-rc01 |
#45543 for release 3.2.x |
We upgraded to 3.3-rc01 and have been closely monitoring this issue and not observed the memory leak again. |
Steps to reproduce the behavior (Required)
Currently it's very likely that the memory leak problem occurs because of AWS sdk. So the revelant steps to reproduce the behavior is to bring up a cluster and start streaming data into the cluster through the
Stream Load
http interface. Depending on the size of your data, the memory leak will become apparent as soon as 1 hour or possibly longer. The memory leak could be identified by accessing the httpmem_tracker
api, where memory consumption of the sub modules doesn't add up to the total(You could see in the snapshot below that the consumption of the sub modules doesn't add up to 56G, leaving a gap of over 36G).Expected behavior (Required)
Memory leak should not happen. Memory consumption of the sub modules should add up to the total.
Real behavior (Required)
Memory leak will render the whole cluster unavailable from time to time.
StarRocks version (Required)
3.1.9-e1c6e4e
The text was updated successfully, but these errors were encountered: