Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy