{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/packetbeat/issues/205","labels_url":"https://api.github.com/repos/elastic/packetbeat/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/elastic/packetbeat/issues/205/comments","events_url":"https://api.github.com/repos/elastic/packetbeat/issues/205/events","html_url":"https://github.com/elastic/packetbeat/issues/205","id":102160098,"number":205,"title":"Possible memory leak? [sustained high memory consumption despite no traffic]","user":{"login":"rshriram","id":8202871,"avatar_url":"https://avatars.githubusercontent.com/u/8202871?v=3","gravatar_id":"","url":"https://api.github.com/users/rshriram","html_url":"https://github.com/rshriram","followers_url":"https://api.github.com/users/rshriram/followers","following_url":"https://api.github.com/users/rshriram/following{/other_user}","gists_url":"https://api.github.com/users/rshriram/gists{/gist_id}","starred_url":"https://api.github.com/users/rshriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshriram/subscriptions","organizations_url":"https://api.github.com/users/rshriram/orgs","repos_url":"https://api.github.com/users/rshriram/repos","events_url":"https://api.github.com/users/rshriram/events{/privacy}","received_events_url":"https://api.github.com/users/rshriram/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/packetbeat/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/elastic/packetbeat/labels/under%20investigation","name":"under investigation","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T15:02:22Z","updated_at":"2015-08-21T11:21:36Z","closed_at":null,"body":"When running packebeat, memory usage is extremely high and does not seem to be going down. Normally, the Go garbage collector would have kicked in after 2 minutes, but when monitoring memory consumption, memory continues to remain high for 5+ minutes.\r\n\r\nFor example, when runnning packetbeat on a server with nginx+haproxy, the load driver fetching a 32kb static file from the server constantly, packetbeat's resident memory size grows quickly to 1.3GB (and more). Even after the load driver is killed, the memory consumption remains the same, showing no signs of going down (waited 6 minutes). All the related log entries from packetbeat reach the redis server, FYI.\r\n\r\nThis is with go version 1.4.2 linux/amd64, vanilla packetbeat and no other tuning of Go.\r\nAny idea why this is happening? This high memory consumption makes it impossible to keep it deployed on a machine in unmonitored fashion. \r\n\r\nLoad driver is from ha-proxy website (http://1wt.eu/tools/inject/inject-64)\r\n\r\ncommand: inject-64 -u 100 -R -d 30 -G 10.11.0.4:8000/file_32k_1.txt\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/packetbeat/issues/comments/133376159","html_url":"https://github.com/elastic/packetbeat/issues/205#issuecomment-133376159","issue_url":"https://api.github.com/repos/elastic/packetbeat/issues/205","id":133376159,"user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T11:21:36Z","updated_at":"2015-08-21T11:21:36Z","body":"@rshriram Yes, how did you install packetbeat? Did you compile it yourself? If yes, from which branch? If not, which package did you use? It's because I need the matching binary to make sense of the profile file."}}