{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/issues/24","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/issues/24/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/issues/24/events","html_url":"https://github.com/logstash-plugins/logstash-output-http/issues/24","id":111679911,"number":24,"title":"memory leak","user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-15T18:35:45Z","updated_at":"2015-10-21T14:43:53Z","closed_at":"2015-10-21T14:43:53Z","body":"there is a memory leak in the http output. I am currently investigating, it seems related to the Java Thread Executor, the Future handling and the requests callback. Investigating.\r\n\r\nHere a simple config to reproduce, given an httpd server running on localhost port 9292\r\n\r\n```\r\ninput {\r\n    generator {}\r\n}\r\n\r\noutput {\r\n    stdout {\r\n        codec => dots {}\r\n    }\r\n    http {\r\n        http_method => \"get\"\r\n        format => \"json\"\r\n        content_type => \"application/json\"\r\n        url => \"http://localhost:9292/\"\r\n    }\r\n}\r\n```\r\n\r\nHere's the VisualVM output showing the leak:\r\n\r\n<img width=\"1513\" alt=\"screen shot 2015-10-15 at 2 23 19 pm\" src=\"https://cloud.githubusercontent.com/assets/2010/10523720/e00fb8fe-7349-11e5-965e-e0417d0a3f70.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/issues/comments/149918505","html_url":"https://github.com/logstash-plugins/logstash-output-http/issues/24#issuecomment-149918505","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-http/issues/24","id":149918505,"user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T14:43:53Z","updated_at":"2015-10-21T14:43:53Z","body":"fixed in 2.x and 1.5.x in #25 and #26"}}