go-pprof
2022. 8. 25. 13:32
When a server suffers from OOM. Sometimes, there are no proper methods to detect server restart. And also don’t utilize memory monitoring on production go API services. Heap dump can be retrieved by using pprof tool. `curl http://ip address:5333/debug/pprof/heap > heap0.pprof` If you want to use web interface, use following command. `go tool pprof -http=:8080 heap.out` Example graph from heap du..