Note: the json library is https://github.com/goccy/go-json
On Thursday, February 16, 2023 at 9:03:13 PM UTC-8 Mohit Goyal wrote: > We have a job executor that runs periodic jobs. We have being seeing a > constant growth in the RES memory (to the tune of 10 GB). However, our heap > usage is constant at around 75-85MB. Here are the stats for the same - > > - process_resident_memory_bytes 1.0107805696e+10 = 10GB > - go_memstats_heap_idle_bytes 1.00286464e+08 = 100MB > - go_memstats_heap_inuse_bytes 1.01433344e+08 = 100MB > - go_memstats_alloc_bytes 9.0241416e+07 = 90MB > > > - go_gc_cycles_automatic_gc_cycles_total = 8249 > - go_gc_heap_allocs_bytes_total 9.9512908776e+10 = 99 GB > - go_gc_heap_frees_bytes_total 9.942266736e+10 = 99GB > > The go version is 1.19.1. Looking at the call graph, we see that json to > struct conversion has been allocating a lot of space (40GB out of 99GB). > However, its only seen in the alloc_space and not in the inuse_space. Any > pointers to what could be the reason and if its anything you have also seen > would be helpful. > -- 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/cf911d6c-1c36-4439-82d8-7e09ae92dc27n%40googlegroups.com.