Skip to content

Commit 7180944

Browse files
Update the HTTP GET URL to trim the response size
1 parent 723a9c3 commit 7180944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceControl.Audit.Persistence.RavenDB/MemoryInformationRetriever.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ record MemoryInformation
2323

2424
public async Task<(bool IsHighDirty, int DirtyMemoryKb)> GetMemoryInformation(CancellationToken cancellationToken = default)
2525
{
26-
var httpResponse = await client.GetAsync("/admin/debug/memory/stats", cancellationToken);
26+
var httpResponse = await client.GetAsync("/admin/debug/memory/stats?includeThreads=false&includeMappings=false", cancellationToken);
2727
var responseDto = JsonSerializer.Deserialize<ResponseDto>(await httpResponse.Content.ReadAsStringAsync(cancellationToken));
2828

2929
var values = responseDto.MemoryInformation.DirtyMemory.Split(' ');

0 commit comments

Comments
 (0)