(pprof) list net/http.initNPNRequest.ServeHTTP
Total: 428.50MB
ROUTINE ======================== net/http.initNPNRequest.ServeHTTP in /usr/local/go/src/net/http/server.go
68.67MB 68.67MB (flat, cum) 16.03% of Total
. . 2024: h serverHandler
. . 2025:}
. . 2026:
. . 2027:func (h initNPNRequest) ServeHTTP(rw ResponseWriter, req *Request) {
. . 2028: if req.TLS == nil {
68.67MB 68.67MB 2029: req.TLS = &tls.ConnectionState{}
. . 2030: *req.TLS = h.c.ConnectionState()
. . 2031: }
. . 2032: if req.Body == nil {
. . 2033: req.Body = eofReader
. . 2034: }
(pprof) list goexit0
Total: 428.50MB
ROUTINE ======================== goexit0 in /usr/local/go/src/runtime/proc.c
45.20MB 164.58MB (flat, cum) 38.41% of Total
. . 1688: runtime·mcall(&fn);
. . 1689:}
. . 1690:
. . 1691:// runtime·goexit continuation on g0.
. . 1692:static void
. . 1693:goexit0(G *gp)
. . 1694:{
. 2.50MB 1695: runtime·casgstatus(gp, Grunning, Gdead);
. . 1696: gp->m = nil;
. . 1697: gp->lockedm = nil;
. . 1698: g->m->lockedg = nil;
. . 1699: gp->paniconfault = 0;
. . 1700: gp->defer = nil; // should be true already but just in case.
. . 1701: gp->panic = nil; // non-nil for Goexit during panic. points at stack-allocated data.
. . 1702: gp->writebuf.array = nil;
45.20MB 162.08MB 1703: gp->writebuf.len = 0;
. . 1704: gp->writebuf.cap = 0;
. . 1705: gp->waitreason.str = nil;
. . 1706: gp->waitreason.len = 0;
. . 1707: gp->param = nil;
. . 1708:
On Apr 1, 2015, at 10:30 AM, Brett Harrison <brett.h...@zyamusic.com> wrote:I am not a Go programmer but I was hoping to gather some data that would be useful in finding these leaks.
538 root 20 0 3765652 2.349g 5960 S 1.3 40.0 35:11.40 sync_gateway
1 root 20 0 33480 2808 1492 S 0.0 0.0 0:01.28 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:03.77 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
6 root 20 0 0 0 0 S 0.0 0.0 0:00.53 kworker/u8:0
root@sync01:~# date
Wed Apr 1 18:30:53 CDT 2015
root@sync01:~# free
total used free shared buffers cached
Mem: 6153524 2664664 3488860 216 128776 179636
-/+ buffers/cache: 2356252 3797272
Swap: 2096444 0 2096444
root@sync01:~# date
Wed Apr 1 19:00:14 CDT 2015
root@sync01:~# free
total used free shared buffers cached
Mem: 6153524 2735788 3417736 216 129692 181180
-/+ buffers/cache: 2424916 3728608
Swap: 2096444 0 2096444
root@sync01:~# date
Wed Apr 1 19:53:01 CDT 2015
root@sync01:~# free
total used free shared buffers cached
Mem: 6153524 2884424 3269100 216 131268 184148
-/+ buffers/cache: 2569008 3584516
Swap: 2096444 0 2096444
2954740 used yesterday, 3842568 used today
Could it have anything to do with document attachments?
root@sync01:~# date
Thu Apr 2 18:53:34 CDT 2015
root@sync01:~# lsof -p 538 | grep -i established | wc -l
94
root@sync01:~# free
total used free shared buffers cached
Mem: 6153524 3842568 2310956 216 151072 229764
-/+ buffers/cache: 3461732 2691792
Swap: 2096444 0 2096444
total used free shared buffers cached
Mem: 6153524 4030928 2122596 216 152852 242036
From the top command...
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
538 root 20 0 4085080 3.365g 5960 S 1.0 57.3 80:19.47 sync_gateway
compare to my earlier top
538 root 20 0 3765652 2.349g 5960 S 1.3 40.0 35:11.40 sync_gateway
It's now using 57% of the memory where before it was using 40%
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/880c1f2a-86e9-415e-98a3-4f29028948d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.