You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
public static void Main(string[] args)
{
try
{
var factory = LoggerFactory.Create(builder =>
{
builder.AddConsole(options =>
{
options.LogToStandardErrorThreshold = LogLevel.Trace;
});
});
using var server = new GarnetServer(args, factory);
server.Start();
Thread.Sleep(Timeout.Infinite);
}
catch (Exception ex)
{
Console.WriteLine($"Unable to initialize server due to exception: {ex.Message}");
}
}
@badrishc
The code for the garnet server is as described above. It is a console application(GarnetSample.csproj), and after publishing, it generates an executable file named GarnetSample.exe.
Server's start command: GarnetSample.exe --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
Client project is DataCreator.csproj.It writes 5,000 records to the garnet server every 3 seconds.
The code repository is located at: https://github.com/kamikyo/garnetdemo
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: