Comments (1)
@XuHuaiyu OOM 是我们碰到的最多的问题,但不是唯一的问题
goroutine 暴涨,我们也是需要知道原因的,举一个实际的例子,和 mosn 通信的本地应用正在 GC, mosn 有很多 goroutine 卡在了向一个 channel 发数据上,但是过了一会,这个现场就没了。我们事后在监控里看到发生抖动,也可以上线上机器拿到这个现场,解释清楚当时发生了什么事情
CPU 则是为了定位一些转瞬即逝的尖刺,看看整个进程是不是在某些地方有潜在的性能问题,或者是其它人写的什么 bug(内部项目会在 mosn 上开发很多应用逻辑,这部分代码可能是由其他团队完成的
再扩展一些说,我们也碰到过比较少见的进程创建了大量的线程的问题,但是事后去看现场的话,只能看到这些线程都已经闲置,没有办法知道当时是什么原因创建出来的(比如可能是因为 cgo 阻塞?
这个线程问题是最近才碰到的,之前开发这个工具没有想到会碰到这种情况,所以那次现场也没有抓到,到现在还没法解释清楚原因
能够通过对现场进行分析,我们可以进一步发现代码里的一些潜在的缺陷,和可能的优化点
from holmes.
Related Issues (20)
- 一点小建议 HOT 2
- report时传递更详细的现场信息 HOT 2
- a code issue in releases HOT 2
- 输出的日志文件结构中的 previous和current代表内存吗? HOT 1
- cpu 突然飙高的一下触发了dump操作,但是dump下来的文件使用 go tool pprof 分析文件,好像什么都分析不出来 HOT 16
- bug: should log the previous data in human readable order
- feature: print the CPU usage during sampling cpu profile HOT 4
- a similar project
- mosn.io/pkg/log 404 Not Found HOT 5
- get CPU core failed HOT 3
- Main binary filename not available. HOT 12
- EnableDump: current cpu percent [1] greater than the CPUMaxPercent[90] HOT 2
- 不知道这些参数要填多少合适?有参考吗 HOT 1
- 这个有做释放内存的处理吗?测得时间不是很长我简单的做了一下对比(开holmes内存分配监控和不开监控的对比,不做任何请求,时间都为半小时),不开监控半小时内内存基本稳定,基本没有上调的情况,开了监控后半小时内有小幅度上涨,想知道这个有做释放内存的处理吗 HOT 1
- holmes.WithMemDump(30, 25, 80, 2 * time.Minute),这个如图所示不会dump吗?那要怎样才会dump,我以为current>0会dump HOT 4
- "GOVCS disallows using bzr for public launchpad.net/gocheck" go get 提示错误 HOT 3
- The v1.1.0 version is missing HOT 1
- error: 'TARGET_OS_MAC' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
- dingtalk.png 加群的二维码已经失效,可以更新一下吗 HOT 1
- mosn.io/holmes的版本和仓库的版本不一致
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holmes.