-
Notifications
You must be signed in to change notification settings - Fork 521
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
The settings related to memory size don't work #630
Comments
Can you provide a sample client app as well? Try compaction type of Lookup. If you are adding new entries in the sorted set, the total memory is expected to grow. Also, it might be GC uncollected memory - try issuing the GC collection ( |
@badrishc Client project is DataCreator.csproj.It writes 5,000 records to the garnet server every 3 seconds. |
Does the problem persist if you use CompactionType of Lookup? |
Ping - can you (1) try with the latest Garnet version; (2) definitely switch to CompactionType of Lookup. We will most likely deprecate the Scan compaction type soon. |
This PR #697 modifies some of the memory controlling switches to simplify memory utilization management. Please try with the new switches --obj-log-memory and --obj-heap-memory. Documentation available here https://microsoft.github.io/garnet/docs/getting-started/memory#object-store. Also, to control memory management behavior of GC try working with the GC settings too like https://learn.microsoft.com/en-us/dotnet/core/runtime-config/garbage-collector#dynamic-adaptation-to-application-sizes-datas, https://learn.microsoft.com/en-us/dotnet/core/runtime-config/garbage-collector#conserve-memory. Closing this issue now. Please open a new one if you encounter any Garnet issues. |
Describe the bug
I continuously write data to Garnet, primarily with three keys: two sorted sets and one string. Each time, I write 5000 entries, approximately 1 to 2 MB. Garnet's memory keeps increasing over time. As long as I keep writing data, the memory growth will not stop.
Steps to reproduce the bug
garnet server's code:
the parameters I specified are:
--port 7010 --index "256m" --index-max-size "512m" --obj-index-max-size "512m" --memory "1g" --recover true --compaction-type "Scan" --checkpointdir "data" --storage-tier true
Expected behavior
I expect the memory to stabilize after reaching a certain limit.
Screenshots
No response
Release version
v1.0.15
IDE
Visual studio 2022 community
OS version
windows 10
Additional context
After each execution of the save command, memory usage increases by 200-300 MB.
The text was updated successfully, but these errors were encountered: