Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pprof consumes a large amount of memory #936

@overstep123

Description

@overstep123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions