Re: [go-nuts] Excessive garbage collection

2016-10-18 Thread Jiří Šimša
Thank you for your explanation. I was able to track this problem down to logic in one of the handlers periodically invoked by the page; the handler logic would result in the allocation pattern you described. Best, -- Jiří Šimša On Tue, Oct 18, 2016 at 6:13 AM, wrote: > From

Re: [go-nuts] Excessive garbage collection

2016-10-18 Thread rlh
>From the trace (4->4->0) it looks like the app is allocating about 4MB every 10ms. The app also has little (0 rounded) reachable data, sometimes called heap ballast. Since there is little ballast the GC is attempting to keep the heap from growing beyond 5MB. The GC is using about 2% of the CPU

Re: [go-nuts] Excessive garbage collection

2016-10-17 Thread Jiří Šimša
go version go1.7.1 darwin/amd64 -- Jiří Šimša On Mon, Oct 17, 2016 at 8:02 PM, Ian Lance Taylor wrote: > On Mon, Oct 17, 2016 at 6:20 PM, wrote: > > > > The backend of my web server (written in Go) have recently started > consuming > > large amounts of

Re: [go-nuts] Excessive garbage collection

2016-10-17 Thread Ian Lance Taylor
On Mon, Oct 17, 2016 at 6:20 PM, wrote: > > The backend of my web server (written in Go) have recently started consuming > large amounts of CPU. AFAICT, the CPU seems to be consumed by the garbage > collector and I would appreciate any information that would help me track >