Comments (4)
As golang/go#54223 (comment) said, heap profiles are only updated when the gc runs.
Actually, it's a go heap profile related issue, not a holmes related issue.
For more details, please see:
https://mosn.io/blog/posts/mosn-holmes-design/#%E6%A0%B9%E6%8D%AEgc%E5%91%A8%E6%9C%9F%E9%87%87%E9%9B%86
https://uncledou.site/2022/go-pprof-heap/
Hope this could help you.
from holmes.
@doujiang24 Nice! Thank you.
from holmes.
But I think they are two different situations. About the one I proposed, I think holmes should dump after next gc runs while the heap peak occurs. In the following processes, the heap profiles are stale and cann't help us find out what incurs the problem:
- gc runs
- heap peak happens. Such as making a big slice
- holmes dumps
- next gc runs
from holmes.
You should see both the inuse and alloc space together to help locating the root cause
A big heap object will cause rss spike, if it is not used any more later, it will not appear on the inuse object pprof list, but you can find it in the alloc object list
All objects allocated after app started will be counted in the alloc objects/space
from holmes.
Related Issues (20)
- consul/api 版本冲突无法使用 HOT 16
- reporter plugin: upload profile to pyroscope
- DisableMemDump 这个方法是不是笔误了 HOT 1
- log priting is not normal HOT 1
- 一点小建议 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
- bug: win环境下dump的文本出现乱码 HOT 4
- reporter interface: used filename instead of byte slice HOT 3
- dump文件多余(.)逗号. HOT 7
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.