-
Notifications
You must be signed in to change notification settings - Fork 601
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
BigCache is logging allocations it should not #363
Comments
Could you share your config and example payload to help reproduce it? |
Sure. Here is my constructor:
And here is getting a key:
|
OK, looks like a bug. If I understand correctly, bigcache allocates array every 1 ms but instead of growing array (which will be expected) it allocates the same size. What is not clear for me is the if q.capacity == q.maxCapacity {
return
} Lines 108 to 116 in cffbf48
|
In that value I am passing this number: 600. It was meant to use 600MB of RAM to cache stuff. Is not a plain int of megabytes I have to provide there? |
What is the issue you are having?
I have deployed the version 3.0.2 and I thought this issue: #117 meant it was solved.
I have a constant flow of the below messages on my logs.
Can you help me understand how to fix this?
What is BigCache doing that it shouldn't?
It should not log this every few milliseconds :
Minimal, Complete, and Verifiable Example
When asking a question about a problem caused by your code, you will get much better answers if you provide code we can use to reproduce the problem. That code should be...
For more information on how to provide an MCVE, please see the Stack Overflow documentation.
Environment:
/etc/os-release
or winver.exe): alpine3.15The text was updated successfully, but these errors were encountered: