语言

GCMemoryInfo.HighMemoryLoadThresholdBytes 属性

定义

获取上次发生垃圾回收时的内存负载阈值。

public:
 property long HighMemoryLoadThresholdBytes { long get(); };
public long HighMemoryLoadThresholdBytes { get; }
member this.HighMemoryLoadThresholdBytes : int64
Public ReadOnly Property HighMemoryLoadThresholdBytes As Long

属性值

发生最后一次垃圾回收时,内存负载阈值(以字节为单位)。

注解

大多数 GC 性能启发法都基于每进程度量。 但是,为了避免分页,GC 知道计算机或 VM 或容器中的全局物理内存负载。 GC 将特定内存负载百分比识别为“高内存负载情况”。 当内存负载百分比超过该阈值时,GC 会变得更加激进,并在必要时执行更多完全阻止 GCS 以减小堆大小。

适用于