ubuntu@ip-10-0-0-38:~$ go tool pprof http://localhost:6060/debug/pprof/heap Read http://localhost:6060/debug/pprof/symbol Fetching /pprof/heap profile from localhost:6060 to /tmp/Hg6THbth9N Wrote profile to /tmp/Hg6THbth9N Adjusting heap profiles for 1-in-524288 sampling rate Welcome to pprof! For help, type 'help'. (pprof) top25 Total: 6896.4 MB 1115.0 16.2% 16.2% 1184.5 17.2% github.com/couchbase/query/server.NewBaseRequest 742.5 10.8% 26.9% 742.5 10.8% net/textproto.(*Reader).ReadMIMEHeader 714.0 10.4% 37.3% 4538.8 65.8% github.com/couchbase/query/server/http.newHttpRequest 520.5 7.5% 44.8% 520.5 7.5% net/http.Header.clone 504.5 7.3% 52.2% 653.0 9.5% net/url.parseQuery 486.5 7.1% 59.2% 486.5 7.1% net/http.copyValues 479.5 7.0% 66.2% 479.5 7.0% net/textproto.MIMEHeader.Set 391.5 5.7% 71.8% 449.5 6.5% github.com/couchbase/query/server/http.getCredentials 265.5 3.8% 75.7% 1555.5 22.6% net/http.(*conn).readRequest 251.0 3.6% 79.3% 1289.0 18.7% net/http.ReadRequest 239.5 3.5% 82.8% 959.5 13.9% net/http.parsePostForm 186.5 2.7% 85.5% 186.5 2.7% github.com/couchbase/query/execution.newBase 148.5 2.2% 87.7% 148.5 2.2% net/url.unescape 129.5 1.9% 89.5% 129.5 1.9% net/url.parse 126.0 1.8% 91.4% 126.0 1.8% net/http.readTransfer 83.0 1.2% 92.6% 93.8 1.4% time.AfterFunc 68.5 1.0% 93.6% 69.5 1.0% fmt.Sprintf 67.0 1.0% 94.5% 720.0 10.4% net/url.ParseQuery 64.5 0.9% 95.5% 64.5 0.9% github.com/couchbase/query/server/http.NewBufferedWriter 59.0 0.9% 96.3% 1505.0 21.8% net/http.(*Request).ParseForm 47.5 0.7% 97.0% 47.5 0.7% encoding/json.(*decodeState).literalStore 40.0 0.6% 97.6% 40.0 0.6% net/textproto.(*Reader).ReadLine 39.0 0.6% 98.2% 39.0 0.6% github.com/couchbase/query/server/http.getScanConfiguration 29.0 0.4% 98.6% 122.8 1.8% github.com/couchbase/query/server.(*BaseRequest).SetTimeout 20.0 0.3% 98.9% 20.0 0.3% runtime.newG (pprof)