Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] time.Ticker没有关闭,导致cpu使用率过高 #478

Closed
zmberg opened this issue May 29, 2020 · 0 comments
Closed

[bug] time.Ticker没有关闭,导致cpu使用率过高 #478

zmberg opened this issue May 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working confirmed issue is confirmed inner issue comes from Tencent side
Milestone

Comments

@zmberg
Copy link
Contributor

zmberg commented May 29, 2020

问题描述

生产环境运行一段时间后发现bcs-mesos-watch等模块的cpu使用率都比较高,甚至达到了十几个核。经过排查发现是time.ticker消耗的资源过高。
image
image

@zmberg zmberg added the bug Something isn't working label May 29, 2020
@DeveloperJim DeveloperJim added confirmed issue is confirmed inner issue comes from Tencent side service labels Jun 29, 2020
@DeveloperJim DeveloperJim added this to the 1.18.x milestone Jun 29, 2020
DeveloperJim added a commit that referenced this issue Oct 19, 2020
fix: time.Ticker没有关闭,导致cpu使用率过高 #478
zmberg added a commit to zmberg/bk-bcs that referenced this issue Oct 19, 2020
zmberg added a commit to zmberg/bk-bcs that referenced this issue Oct 19, 2020
zmberg added a commit to zmberg/bk-bcs that referenced this issue Oct 19, 2020
DeveloperJim added a commit that referenced this issue Oct 19, 2020
fix: time.Ticker没有关闭,导致cpu使用率过高 #478
DeveloperJim pushed a commit that referenced this issue Oct 24, 2020
DeveloperJim pushed a commit that referenced this issue Oct 24, 2020
(cherry picked from commit e9e1f13)
DeveloperJim pushed a commit that referenced this issue Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed issue is confirmed inner issue comes from Tencent side
Projects
None yet
Development

No branches or pull requests

2 participants