Go (lang): How to use PPROF heap profile to search for memory leaks?

I am trying to use pprof to check for memory leaks.

Can anyone explain how to read the heap profile that you find: http://localhost:6060/debug/pprof/heap?debug=1

In addition, is it normal that by typing the web command after running the go tool pprof http://localhost:6060/debug/pprof/heap , it creates an empty .svg file?

Thank you very much

+6
source share
1 answer

I can help with the second question. You must provide a binary name for your command:

 go tool pprof YOUR_COMPILED_BINARY http://localhost:6060/debug/pprof/heap 
+4
source

Source: https://habr.com/ru/post/954893/


All Articles