Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Expose /debug/pprof #99

Closed
lidel opened this issue Apr 24, 2023 · 4 comments
Closed

Expose /debug/pprof #99

lidel opened this issue Apr 24, 2023 · 4 comments

Comments

@lidel
Copy link
Collaborator

lidel commented Apr 24, 2023

To investigate issues like #92 we need to port some features from Kubo and expose them on the "metrics" port, potential candidates:

  • goroutine dump
    • curl localhost:5001/debug/pprof/goroutine\?debug=2 > ipfs.stacks
  • 30 second cpu profile
    • curl localhost:5001/debug/pprof/profile > ipfs.cpuprof
  • heap trace dump
    • curl localhost:5001/debug/pprof/heap > ipfs.heap
  • memory statistics (in json, see "memstats" object)
    • curl localhost:5001/debug/vars > ipfs.vars
  • system information
    • ipfs diag sys > ipfs.sysinfo

Ref. https://github.com/ipfs/kubo/blob/master/docs/debug-guide.md

@lidel lidel moved this to 🏗 In progress in bifrost-gateway Apr 24, 2023
@lidel
Copy link
Collaborator Author

lidel commented Apr 24, 2023

@willscott @aarshkshah1992
with this, we could debug staging over ssh (incl. caboose)

@willscott
Copy link
Collaborator

it looks like we already have this on the metrics port

@willscott
Copy link
Collaborator

@lidel
Copy link
Collaborator Author

lidel commented Apr 24, 2023

Indeed! Adin added them already 🙌

I'll reboot staging with GRAPH_BACKEND=true and we wait a few hours until it gets wonky again.
Let's continue in #92

@lidel lidel closed this as completed Apr 24, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in bifrost-gateway Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants