Skip to content

Commit

Permalink
RavenDB-23220 - Add logging for the Lucene unamanged term cache
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha-kotler committed Feb 27, 2025
1 parent 1e5d9ae commit 6479a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sparrow/Utils/MemoryUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public static string GetExtendedMemoryInfo(MemoryInfoResult memoryInfo, DirtyMem
TryAppend(() => sb.Append("Managed memory: ").Append(new Size(AbstractLowMemoryMonitor.GetManagedMemoryInBytes(), SizeUnit.Bytes)).Append(", "));
TryAppend(() => sb.Append("Unmanaged allocations: ").Append(new Size(AbstractLowMemoryMonitor.GetUnmanagedAllocationsInBytes(), SizeUnit.Bytes)).Append(", "));
TryAppend(() => sb.Append("Lucene managed: ").Append(new Size(NativeMemory.TotalLuceneManagedAllocationsForTermCache, SizeUnit.Bytes)).Append(", "));
TryAppend(() => sb.Append("Lucene unmanaged: ").Append(new Size(NativeMemory.TotalLuceneUnmanagedAllocationsForSorting, SizeUnit.Bytes)));
TryAppend(() => sb.Append("Lucene unmanaged term cache: ").Append(new Size(NativeMemory.TotalLuceneUnmanagedAllocationsForTermCache, SizeUnit.Bytes)).Append(", "));
TryAppend(() => sb.Append("Lucene unmanaged sorted terms: ").Append(new Size(NativeMemory.TotalLuceneUnmanagedAllocationsForSorting, SizeUnit.Bytes)));

try
{
Expand Down

0 comments on commit 6479a7b

Please sign in to comment.