Comment 10 for bug 1645729

Revision history for this message
Haw Loeung (hloeung) wrote :

That'll be when it OOM's and something happens freeing up memory again.

| $ free -m
| -bash: fork: Cannot allocate memory
| $ free
| -bash: fork: Cannot allocate memory
| $ dmesg
| -bash: fork: Cannot allocate memory
| $ dmesg
| -bash: fork: Cannot allocate memory
| $ ps afx
| -bash: fork: Cannot allocate memory
| $ uptime
| -bash: fork: Cannot allocate memory

| Thu Dec 1 01:52:45 UTC 2016
| Fetching profile from http://localhost:10000/debug/pprof/heap
| http fetch http://localhost:10000/debug/pprof/heap: Get http://localhost:10000/debug/pprof/heap: EOF

| Thu Dec 1 01:56:42 UTC 2016
| USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
| root 13713 29.7 14.9 2186152 306676 ? Ssl Nov30 69:27 /var/lib/juju/tools/machine-0/jujud machine --data-dir /var/lib/juju --machine-id 0 --debug
| Address Perm Offset Device Inode Size Rss Pss Shared_Clean Shared_Dirty Private_Clean Private_Dirty Referenced Anonymous AnonHugePages Swap KernelPageSize MMUPageSize Locked VmFlagsMapping
| 00400000 r-xp 00000000 fd:01 1071550 20664 5316 3528 2240 0 3076 0 5316 0 0 0 4 4 0 rd ex mr mw me dw sd jujud
| 0182e000 r--p 0142e000 fd:01 1071550 29152 6720 4203 3188 0 3532 0 6648 0 0 0 4 4 0 rd mr mw me dw sd jujud
| 034a6000 rw-p 030a6000 fd:01 1071550 208 124 98 32 0 4 88 124 88 0 0 4 4 0 rd wr mr mw me dw ac sd jujud
| c820200000 rw-p 00000000 00:00 0 491520 136536 136536 0 0 0 136536 136504 136536 0 0 4 4 0 rd wr mr mw me ac sd nh [stack:13721]
| c846c00000 rw-p 00000000 00:00 0 206848 49488 49488 0 0 0 49488 49488 49488 0 0 4 4 0 rd wr mr mw me ac sd nh [stack:13719]
| 2186156 306736 302146 5732 0 6612 294392 306476 294392 2048 0 576 576 0 KB

| Thu Dec 1 01:56:27 UTC 2016
| Fetching profile from http://localhost:10000/debug/pprof/heap
| Saved profile in /home/hloeung/pprof/pprof.localhost:10000.inuse_objects.inuse_space.021.pb.gz
| Entering interactive mode (type "help" for commands)
| (pprof) 53.93MB of 66.78MB total (80.76%)
| Dropped 754 nodes (cum <= 0.33MB)
| Showing top 10 nodes out of 230 (cum >= 8MB)
| flat flat% sum% cum cum%
| 16.02MB 23.99% 23.99% 16.52MB 24.74% reflect.Value.call
| 9.50MB 14.23% 38.22% 9.50MB 14.23% launchpad.net/tomb.(*Tomb).init
| 8.82MB 13.20% 51.42% 12.83MB 19.22% github.com/juju/juju/apiserver.(*apiRoot).FindMethod.func1
| 7.50MB 11.23% 62.65% 7.50MB 11.23% runtime.malg
| 5.06MB 7.58% 70.23% 5.06MB 7.58% crypto/tls.(*block).reserve
| 3MB 4.49% 74.72% 3.52MB 5.26% github.com/juju/juju/apiserver.newNotifyWatcher
| 1.03MB 1.54% 76.27% 1.03MB 1.54% regexp.(*bitState).reset
| 1MB 1.50% 77.76% 1MB 1.50% github.com/juju/juju/apiserver.(*changeCertListener).Accept
| 1MB 1.50% 79.26% 2MB 3.00% github.com/juju/juju/state.(*RelationScopeWatcher).loop
| 1MB 1.50% 80.76% 8MB 11.98% github.com/juju/juju/state.(*docWatcher).loop
| (pprof)