Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoryStat ¶ added in v0.0.9
type MemoryStat struct { Total string Used string Free string Cached string GoHeapAlloc string //go heap使用到的内存 GoHeapInuse string //go heap向操作系统申请的内存(包括GoHeapAlloc, 已经被gc回收但未复用的内存) GoOOMScore int // 这个文件显示了一个进程被 OOM Killer 选中的得分。得分越高,进程被杀死的可能性越大。这个得分是根据进程的内存使用和运行时间等因素自动计算的,你不能直接修改这个文件 GoOOMScoreAdj int // 允许你调整一个进程的 OOM 得分。你可以写入一个从 -1000 到 1000 的值到这个文件,这个值将会被添加到进程的 OOM 得分上。例如,如果你写入 -500,那么这个进程的 OOM 得分将会减少 500,这将减少它被 OOM Killer 杀死的可能性。 }
Click to show internal directories.
Click to hide internal directories.