如下图,heap 和 allocs 一直增加,gc回收后数量也不会减少。
gc 102 @632.767s 0%: 2.5+11+0.085 ms clock, 160+85/164/208+5.4 ms cpu, 363->434->199 MB, 433 MB goal, 4 P
gc 103 @632.904s 0%: 3.8+28+1.5 ms clock, 246+148/200/274+101 ms cpu, 376->505->257 MB, 434 MB goal, 4 P
gc 104 @633.057s 0%: 2.7+10+0.23 ms clock, 175+39/138/110+15 ms cpu, 422->506->212 MB, 515 MB goal, 4 P
gc 105 @633.181s 0%: 0.078+15+0.043 ms clock, 4.9+29/227/447+2.7 ms cpu, 352->353->120 MB, 424 MB goal, 4 P
GC forced
gc 106 @753.210s 0%: 0.93+3.9+0.061 ms clock, 59+0/25/25+3.9 ms cpu, 120->120->3 MB, 240 MB goal, 4 P
GC forced
gc 107 @900.262s 0%: 0.49+3.4+0.058 ms clock, 31+0/27/17+3.7 ms cpu, 3->3->3 MB, 6 MB goal, 4 P
![QQ截图20210422154136.png](https://static.studygolang.com/210422/ea5d649cfdccd0f3b73fd904f35411a0.png)
有疑问加站长微信联系(非本文作者)