Gc layout renderer
NLog documentation is currently being re-organized to use the wiki format. Some content is still missing or incomplete.
We need volunteers to help maintain and organize this Wiki. Please contact
Jarek if you are interested in helping out.
The information about the garbage collector.
Supported in


Configuration Syntax
Read more about using the Configuration File.Parameters
- Rendering Options
property - Property to retrieve. Default: TotalMemory
Possible values:- CollectionCount0 - The number of Gen0 collections.
- CollectionCount1 - The number of Gen1 collections.
- CollectionCount2 - The number of Gen2 collections.
- MaxGeneration - Maximum generation number supported by GC.
- TotalMemory - Total memory allocated.
- TotalMemoryForceCollection - Total memory allocated (perform full garbage collection first).