Giter VIP home page Giter VIP logo

Comments (1)

cch123 avatar cch123 commented on September 18, 2024 14

@XuHuaiyu OOM 是我们碰到的最多的问题,但不是唯一的问题

goroutine 暴涨,我们也是需要知道原因的,举一个实际的例子,和 mosn 通信的本地应用正在 GC, mosn 有很多 goroutine 卡在了向一个 channel 发数据上,但是过了一会,这个现场就没了。我们事后在监控里看到发生抖动,也可以上线上机器拿到这个现场,解释清楚当时发生了什么事情

CPU 则是为了定位一些转瞬即逝的尖刺,看看整个进程是不是在某些地方有潜在的性能问题,或者是其它人写的什么 bug(内部项目会在 mosn 上开发很多应用逻辑,这部分代码可能是由其他团队完成的

再扩展一些说,我们也碰到过比较少见的进程创建了大量的线程的问题,但是事后去看现场的话,只能看到这些线程都已经闲置,没有办法知道当时是什么原因创建出来的(比如可能是因为 cgo 阻塞?

这个线程问题是最近才碰到的,之前开发这个工具没有想到会碰到这种情况,所以那次现场也没有抓到,到现在还没法解释清楚原因

能够通过对现场进行分析,我们可以进一步发现代码里的一些潜在的缺陷,和可能的优化点

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.