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

dump cpu/mem profile into file on signal SIGUSR1/SIGUSR2 #3262

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Sep 27, 2023

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes:

Fixes #(issue-number)

WHAT

🤖 Generated by Copilot at 226a448

Add profiling options for controller process. The code enables writing CPU and memory profiles to .pprof files when receiving certain signals.

🤖 Generated by Copilot at 226a448

controller gains
profiling tools for CPU
and memory - spring cleaning

HOW

🤖 Generated by Copilot at 226a448

  • Import packages for CPU and memory profiling (link)
  • Add goroutines to handle profiling signals and write profiles to files (link)

@zhangzujian zhangzujian marked this pull request as ready for review October 7, 2023 06:14
@zhangzujian zhangzujian requested a review from oilbeater October 7, 2023 06:14
@zhangzujian zhangzujian merged commit 7ec4589 into kubeovn:master Oct 7, 2023
58 checks passed
@zhangzujian zhangzujian deleted the dump-profile branch October 7, 2023 09:15
bobz965 pushed a commit that referenced this pull request Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dump CPU/Memory profile when a specific signal is received
2 participants