記憶體 (proto)

admin.v3.Memory

[admin.v3.Memory proto]

Envoy 實例內部記憶體消耗的 Proto 表示。這些表示從內部 TCMalloc 實例提取的值。更多資訊,請參閱標題為 [“Generic Tcmalloc Status”](https://gperftools.github.io/gperftools/tcmalloc.html) 的文件章節。

{
  "allocated": ...,
  "heap_size": ...,
  "pageheap_unmapped": ...,
  "pageheap_free": ...,
  "total_thread_cache": ...,
  "total_physical_bytes": ...
}
已分配 (allocated)

(uint64) Envoy 堆積所分配的位元組數。這是 generic.current_allocated_bytes 的別名。

堆積大小 (heap_size)

(uint64) 堆積保留但不一定分配的位元組數。這是 generic.heap_size 的別名。

頁堆未對應 (pageheap_unmapped)

(uint64) 頁堆中未使用、未對應頁面的位元組數。這些位元組始終計入虛擬記憶體使用量,並且根據作業系統,通常不計入實體記憶體使用量。這是 tcmalloc.pageheap_unmapped_bytes 的別名。

頁堆空閒 (pageheap_free)

(uint64) 頁堆中未使用、已對應頁面的位元組數。這些位元組始終計入虛擬記憶體使用量,並且除非底層記憶體被作業系統換出,否則它們也會計入實體記憶體使用量。這是 tcmalloc.pageheap_free_bytes 的別名。

總線程快取 (total_thread_cache)

(uint64) TCMalloc 線程快取(用於小型物件)所使用的記憶體量。這是 tcmalloc.current_total_thread_cache_bytes 的別名。

總實體位元組數 (total_physical_bytes)

(uint64) 配置器使用的實體記憶體位元組數。這是 generic.total_physical_bytes 的別名。