holmes icon indicating copy to clipboard operation
holmes copied to clipboard

feature: print the CPU usage during sampling cpu profile

Open doujiang24 opened this issue 2 years ago • 4 comments

The cpu profile may missing the CPU usage high time, when CPU usage goes down quickly. eg. https://github.com/mosn/holmes/issues/123#issuecomment-1257762975

we may record the CPU usage during sampling the CPU profile, and log it. eg. we can start another goroutine, and log CPU usage continuously.

doujiang24 avatar Sep 26 '22 09:09 doujiang24

During the configuration file change? Is it feasible to pull up the new one before turning off the old one?

songzhibin97 avatar Oct 09 '22 09:10 songzhibin97

During the configuration file change? Is it feasible to pull up the new one before turning off the old one?

跟配置变化没关系呢 这里说的是,检查的时候,CPU 是异常,但是采样的时候,CPU 又恢复了的情况,这期间有那么几秒钟间隔

doujiang24 avatar Oct 10 '22 00:10 doujiang24

监控到异常时,已经通过scene传递了cpu使用率。

dumbFeng avatar Nov 12 '22 13:11 dumbFeng

@dumbFeng 我说的是,采样期间的 cpu 使用率呢,这中间有一个时间差的。 目前 scene 透出的是触发采样的数据,并不是采样期间的(采样会有好几秒)

doujiang24 avatar Nov 13 '22 01:11 doujiang24