TransWikia.com

How to analize which object owns the max memory

Stack Overflow Asked by loverszhaokai on November 16, 2021

The Go program contains large memory and I want to know which objects own the max memory.

  1. I have try pprof, but it can only show where alloc memory.
  2. There is heap dump function, but I can not find any core dump reader

https://golang.org/pkg/runtime/debug/#WriteHeapDump

For example, like the top consumers MAT for java

enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP