Sorry about that,Google folds the image and the attachment,I already profile the memory heap.
在2021年11月30日星期二 UTC+8 12:03:21<Ian Lance Taylor> 写道: > On Mon, Nov 29, 2021 at 6:44 PM 林圣国 <guoz...@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/bff6bfa5-1ca7-4c96-8148-79ce19d64f91n%40googlegroups.com.