GithubHelp home page GithubHelp logo

heap samples are not what I expect about holmes HOT 4 CLOSED

mosn avatar mosn commented on August 26, 2024
heap samples are not what I expect

from holmes.

Comments (4)

doujiang24 avatar doujiang24 commented on August 26, 2024

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.

dumbFeng avatar dumbFeng commented on August 26, 2024

@doujiang24 Nice! Thank you.

from holmes.

dumbFeng avatar dumbFeng commented on August 26, 2024

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:

  1. gc runs
  2. heap peak happens. Such as making a big slice
  3. holmes dumps
  4. next gc runs

from holmes.

cch123 avatar cch123 commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.