Skip to content

Add support for enabling pprof endpoints in coder agent on Windows during runtime #2081

Closed
@mafredri

Description

@mafredri

What is your suggestion?

We should add support for enabling pprof endpoints to coder agent during runtime when running on Windows.

Why do you want this feature?

We have support for this on Unix-based operating systems via kill -USR1 $coder_agent_pid. It could help with debugging if the agent has entered a weird state. Especially useful where a restart of the agent would resolve the issue.

The issue was brought up during review of #1985.

Are there any workarounds to get this functionality today?

Pprof can be enabled on startup via CODER_AGENT_PPROF_ENABLE

Are you interested in submitting a PR for this?

Not at this time. Due to Windows limitations, we can't use the same approach as on Unix. We need to settle on what a solution would look like and if there are other requirements to consider.

Possible (alternative) ideas were floated in #1985 (comment).

Metadata

Metadata

Assignees

Labels

apiArea: HTTP APIsiteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions