Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add support for pprof incoder agent#1985

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 8 commits intomainfrommafredri/feat-add-pprof-to-agent
Jun 6, 2022

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedJun 2, 2022
edited
Loading

This PR adds support for starting a pprof server incoder agent.

After#1978 I wanted this to analyze the agent for memory leaks, as mentioned in#1508.

@mafredrimafredri self-assigned thisJun 2, 2022
@mafredrimafredri requested a review froma teamJune 2, 2022 15:29
Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should we add a signal to enable this? Seems like that'd be the primary use-case.

@mafredri
Copy link
MemberAuthor

@kylecarbs what type of signaling were you thinking? Kill signal? That could definitely be useful!

@kylecarbs
Copy link
Member

Not sure what signal... maybeSIGUSR1? I think it'd be helpful to enable pprof on a running agent, that way you could diagnose memory leaks or other runtime issues.

mafredri reacted with thumbs up emoji

@mafredri
Copy link
MemberAuthor

@kylecarbskill -USR1 support has been added! I had to disable it on Windows due to there not being an equivalent signal.

@mafredrimafredri requested a review fromkylecarbsJune 3, 2022 13:28
@kylecarbs
Copy link
Member

Hmm, how could we trigger it for Windows? I'd love a cross-platform approach first, so that we're not stuck when a Windows user is experiencing bugs.

@mafredri
Copy link
MemberAuthor

@kylecarbs I was thinking we could trigger it via the server as an alternative. This could allow an admin to turn it on as well as let the user do it via the CLI. This could be further expanded as a admin toggle in the future (whether or not it’s allowed, not sure if there’s a use case though). Another option could be IPC via cli and the running agent.

@kylecarbs
Copy link
Member

Ahh, interesting. This is big progress though, so I think an issue should be made for the Windows support and we merge!

@mafredri
Copy link
MemberAuthor

@kylecarbs done. I created#2081 to track support for Windows.

kylecarbs reacted with rocket emoji

@mafredrimafredri merged commit59a6826 intomainJun 6, 2022
@mafredrimafredri deleted the mafredri/feat-add-pprof-to-agent branchJune 6, 2022 13:38
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
* feat: Allow USR1 signal to start pprof
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@EmyrkEmyrkEmyrk approved these changes

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mafredri@kylecarbs@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp