{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1179","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1179/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1179/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1179/events","html_url":"https://github.com/cockroachdb/cockroach/issues/1179","id":81985456,"number":1179,"title":"Collect and Node system stats (memory, GC, #goroutines)","user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-28T15:31:16Z","updated_at":"2015-05-28T16:29:16Z","closed_at":null,"body":"See `runtime.NumGoroutines` and `runtime.MemStats`. We don't need all of the detail in `runtime.MemStats` collected. @mberhault can probably remember what we've done previously. We also need to figure out how to measure the memory used by RocksDB which won't show up in the go memory stats. Perhaps via `syscall.GetRusage`. Or if we're running on linux (as we'll be under docker), we can look at `/proc/<pid>/mem`."},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/106466648","html_url":"https://github.com/cockroachdb/cockroach/issues/1179#issuecomment-106466648","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1179","id":106466648,"user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T16:29:16Z","updated_at":"2015-05-28T16:29:16Z","body":"Gosigar looks like it reads both system-wide and per-process cpu info. Here is the per-process impl on linux: https://github.com/cloudfoundry/gosigar/blob/master/sigar_linux.go#L246"}}