gpt4 book ai didi

performancecounter - .NET CLR 内存 "Bytes in all heaps"远低于 "Gen 0 heap size"

转载 作者:行者123 更新时间:2023-12-03 07:29:16 26 4
gpt4 key购买 nike

我正在查看 ASP.NET 4 应用程序(工作流服务)的性能计数器

.NET CLR Memory -- # Bytes in all Heaps :    44,420,488
.NET CLR Memory -- Gen 0 heap size : 311,665,568
.NET CLR Memory -- Gen 1 heap size : 17,723,080
.NET CLR Memory -- Gen 2 heap size : 25,956,920
.NET CLR Memory -- Large Object Heap size : 740,488

“# Bytes in all Heaps”计数器的描述

This counter is the sum of four other counters; Gen 0 Heap Size; Gen 1 Heap Size; Gen 2 Heap Size and the Large Object Heap Size. This counter indicates the current memory allocated in bytes on the GC Heaps.



请注意,它说的是“四个其他计数器的总和”,而不仅仅是“在其他四个堆上分配的字节总和”,这是有道理的,因为在第 0 代垃圾收集之后,第 0 代堆中有 0 个字节。

我注意到在我的例子中,#Bytes in all Heaps 正好是 Gen 1 + Gen 2 + Large Object Heap。这是一个错误吗?还是我错过了阅读数字?

Windows 7 企业版,性能监视器 6.1.7601

最佳答案

根据 this , 所有堆 = Gen 1 + Gen 2 + 大对象堆
(没有第 0 代)

关于performancecounter - .NET CLR 内存 "Bytes in all heaps"远低于 "Gen 0 heap size",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10236753/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com