pprof icon indicating copy to clipboard operation
pprof copied to clipboard

pprof consumes a large amount of memory

Open overstep123 opened this issue 8 months ago • 3 comments

What version of pprof are you using?

the pprof of go version go1.23.7 linux/amd64

What operating system and processor architecture are you using?

Linux n37-109-068 5.4.143.bsk.8-amd64 #5.4.143.bsk.8 SMP Debian 5.4.143.bsk.8

What did you do?

exec the command, and open http://0.0.0.0:12345/ui/flamegraph in the browser go tool pprof -http "0.0.0.0:12345" xxx.prof the xxx.prof is a large file, 300MB.

What did you expect to see?

see the flame graph in the browser

What did you see instead?

The browser fails to load successfully, and the memory usage of the pprof process keeps increasing. It uses 123GB res and 80GB swap, but still wasn't successful.

Image

overstep123 avatar Apr 09 '25 12:04 overstep123

300 MB compressed? What is uncompressed size? It seems that the profile is just too large.

aalexand avatar Apr 15 '25 16:04 aalexand

I know it's too large. But it works fine in my m1 macbook, and it only uses 6GB mem, which is quite different from working on Linux.

overstep123 avatar Apr 24 '25 12:04 overstep123

Can you try patching #943 and collect a heap profile for the UI itself in the problematic scenario?

aalexand avatar Apr 28 '25 01:04 aalexand