kubectl top 时使用的指标为 container_memory_working_set_bytes,值为 rss + active_files,active_files 会由系统操作管理,内存不足时会自动回收。使用指标 container_memory_rss 更好。
Ref:
kubectl top 时使用的指标为 container_memory_working_set_bytes,值为 rss + active_files,active_files 会由系统操作管理,内存不足时会自动回收。使用指标 container_memory_rss 更好。
Ref: