{"action":"created","issue":{"url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/217","labels_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/217/comments","events_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/217/events","html_url":"https://github.com/freifunk-berlin/firmware/issues/217","id":57676447,"number":217,"title":"Memory leak in collectd/monitoring","user":{"login":"sarumpaet","id":10619084,"avatar_url":"https://avatars.githubusercontent.com/u/10619084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarumpaet","html_url":"https://github.com/sarumpaet","followers_url":"https://api.github.com/users/sarumpaet/followers","following_url":"https://api.github.com/users/sarumpaet/following{/other_user}","gists_url":"https://api.github.com/users/sarumpaet/gists{/gist_id}","starred_url":"https://api.github.com/users/sarumpaet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarumpaet/subscriptions","organizations_url":"https://api.github.com/users/sarumpaet/orgs","repos_url":"https://api.github.com/users/sarumpaet/repos","events_url":"https://api.github.com/users/sarumpaet/events{/privacy}","received_events_url":"https://api.github.com/users/sarumpaet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/freifunk-berlin/firmware/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"sarumpaet","id":10619084,"avatar_url":"https://avatars.githubusercontent.com/u/10619084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarumpaet","html_url":"https://github.com/sarumpaet","followers_url":"https://api.github.com/users/sarumpaet/followers","following_url":"https://api.github.com/users/sarumpaet/following{/other_user}","gists_url":"https://api.github.com/users/sarumpaet/gists{/gist_id}","starred_url":"https://api.github.com/users/sarumpaet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarumpaet/subscriptions","organizations_url":"https://api.github.com/users/sarumpaet/orgs","repos_url":"https://api.github.com/users/sarumpaet/repos","events_url":"https://api.github.com/users/sarumpaet/events{/privacy}","received_events_url":"https://api.github.com/users/sarumpaet/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/freifunk-berlin/firmware/milestones/5","labels_url":"https://api.github.com/repos/freifunk-berlin/firmware/milestones/5/labels","id":988615,"number":5,"title":"0.1.1","description":"","creator":{"login":"sarumpaet","id":10619084,"avatar_url":"https://avatars.githubusercontent.com/u/10619084?v=3","gravatar_id":"","url":"https://api.github.com/users/sarumpaet","html_url":"https://github.com/sarumpaet","followers_url":"https://api.github.com/users/sarumpaet/followers","following_url":"https://api.github.com/users/sarumpaet/following{/other_user}","gists_url":"https://api.github.com/users/sarumpaet/gists{/gist_id}","starred_url":"https://api.github.com/users/sarumpaet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarumpaet/subscriptions","organizations_url":"https://api.github.com/users/sarumpaet/orgs","repos_url":"https://api.github.com/users/sarumpaet/repos","events_url":"https://api.github.com/users/sarumpaet/events{/privacy}","received_events_url":"https://api.github.com/users/sarumpaet/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-02-20T17:09:21Z","updated_at":"2015-02-20T17:10:11Z","due_on":"2015-03-17T23:00:00Z","closed_at":null},"comments":10,"created_at":"2015-02-14T01:55:05Z","updated_at":"2015-02-24T16:27:56Z","closed_at":null,"body":"In some setups, collectd sprouts a memory leak, leading to the router rebooting every few hours (for a 32MB RAM router; probably 128MB will last much longer). Turning off the \"network\" plugin or disabling monitoring completely solves the issue. Restarting collectd every 30mins is also fine. The issue seems to be related to kernel/file buffers or similar; neither \"ps\" nor /proc/PID/status show increased memory usage by collectd, but killing and restarting it does free a lot of memory. The strange thing is that I've seen routers not affected by this issue suddenly getting affected by it when just moving to another network setup; might be related to packet loss or IPvX problems? I'm investigating further.\r\n![memleak](https://cloud.githubusercontent.com/assets/10619084/6198143/7ae14642-b3f4-11e4-865e-a6f5140f1dc2.png)"},"comment":{"url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/comments/75789719","html_url":"https://github.com/freifunk-berlin/firmware/issues/217#issuecomment-75789719","issue_url":"https://api.github.com/repos/freifunk-berlin/firmware/issues/217","id":75789719,"user":{"login":"andrenarchy","id":1874116,"avatar_url":"https://avatars.githubusercontent.com/u/1874116?v=3","gravatar_id":"","url":"https://api.github.com/users/andrenarchy","html_url":"https://github.com/andrenarchy","followers_url":"https://api.github.com/users/andrenarchy/followers","following_url":"https://api.github.com/users/andrenarchy/following{/other_user}","gists_url":"https://api.github.com/users/andrenarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/andrenarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrenarchy/subscriptions","organizations_url":"https://api.github.com/users/andrenarchy/orgs","repos_url":"https://api.github.com/users/andrenarchy/repos","events_url":"https://api.github.com/users/andrenarchy/events{/privacy}","received_events_url":"https://api.github.com/users/andrenarchy/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T16:27:56Z","updated_at":"2015-02-24T16:27:56Z","body":"I have to correct my [comment above](https://github.com/freifunk-berlin/firmware/issues/217#issuecomment-74380009): on [derrida](http://monitor.berlin.freifunk.net/host.php?h=derrida) (v0.0.0) it seems *not* to be related to collectd. Restarting collectd in a cronjob doesn't fix the memory exhaustion. However, the symptoms are exactly as @sarumpaet described it: there's no process eating the memory."}}