On Mon, Nov 29, 2021 at 6:44 PM 林圣国 <guoza...@gmail.com> wrote:
> After running serveral of days,my program will use 100% cpu when gc,how > can I fix this? > The program has millions of objects,hard to reduce. > go version > go version go1.16.3 linux/amd64[image: gc.png] > Top and perf top show that runtime gc causes high cpu usage > Please always paste plain text as plain text, not as an image. Plain text is much easier to read. Thanks. I recommend starting with https://go.dev/blog/pprof and the description of memory profiling. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXC9eV_s%2BPrm954BGn-A-7uKwSskafFBE3%3Dciued0fd%2Bg%40mail.gmail.com.