Skip to content

fatal error: runtime: out of memory #871

Answered by Misaki030112
Misaki030112 asked this question in Q&A
Discussion options

You must be logged in to vote

#908

I found this issue and its associated PR that solved the problem I was having for the first time.

in fact,

If the KeysLimit value is not configured in this code, the default value is 200 million, which results in the channel requiring at least 9.6GB of memory.

Key(16bytes)+Operation(16bytes)+Value(16bytes)=48bytes

48bytes×200,000,000=9,600,000,000bytes=9.6GB

My memory is 8GB, and the available memory is less than 8G all year round, which will cause OOM.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Misaki030112
Comment options

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