{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/3722","labels_url":"https://api.github.com/repos/elastic/logstash/issues/3722/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/3722/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/3722/events","html_url":"https://github.com/elastic/logstash/issues/3722","id":100494262,"number":3722,"title":"Memory leak in 1.5.3?","user":{"login":"styxke","id":12099159,"avatar_url":"https://avatars.githubusercontent.com/u/12099159?v=3","gravatar_id":"","url":"https://api.github.com/users/styxke","html_url":"https://github.com/styxke","followers_url":"https://api.github.com/users/styxke/followers","following_url":"https://api.github.com/users/styxke/following{/other_user}","gists_url":"https://api.github.com/users/styxke/gists{/gist_id}","starred_url":"https://api.github.com/users/styxke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styxke/subscriptions","organizations_url":"https://api.github.com/users/styxke/orgs","repos_url":"https://api.github.com/users/styxke/repos","events_url":"https://api.github.com/users/styxke/events{/privacy}","received_events_url":"https://api.github.com/users/styxke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/logstash/labels/unconfirmed","name":"unconfirmed","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-12T08:38:17Z","updated_at":"2015-11-24T18:55:27Z","closed_at":null,"body":"I seem to have a memory issue with logstash 1.5.3 (also tried 1.5.4 snapshot2). After a couple of hours, the java runtime takes up all available ram and after a period of time it just crashes. Logstash 1.4.4 does not have this problem with the same config.\r\nWhen I monitor the java runtime, it continuously and steadily takes up more and more ram until it crashes.\r\n\r\nThis is the output:\r\n```\r\nThere is insufficient memory for the Java Runtime Environment to continue.\r\nNative memory allocation (malloc) failed to allocate 65552 bytes for Chunk::new\r\nPossible reasons:\r\n  The system is out of physical RAM or swap space\r\n  In 32 bit mode, the process size limit was hit\r\nPossible solutions:\r\n  Reduce memory load on the system\r\n  Increase physical memory or swap space\r\n  Check if swap backing store is full\r\n  Use 64 bit Java on a 64 bit OS\r\n  Decrease Java heap size (-Xmx/-Xms)\r\n  Decrease number of Java threads\r\n  Decrease Java thread stack sizes (-Xss)\r\n  Set larger code cache with -XX:ReservedCodeCacheSize=\r\nThis output file may be truncated or incomplete.\r\n```\r\n\r\nWhat can I do more to help fix this?"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/159371500","html_url":"https://github.com/elastic/logstash/issues/3722#issuecomment-159371500","issue_url":"https://api.github.com/repos/elastic/logstash/issues/3722","id":159371500,"user":{"login":"michaellandi","id":1298427,"avatar_url":"https://avatars.githubusercontent.com/u/1298427?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellandi","html_url":"https://github.com/michaellandi","followers_url":"https://api.github.com/users/michaellandi/followers","following_url":"https://api.github.com/users/michaellandi/following{/other_user}","gists_url":"https://api.github.com/users/michaellandi/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellandi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellandi/subscriptions","organizations_url":"https://api.github.com/users/michaellandi/orgs","repos_url":"https://api.github.com/users/michaellandi/repos","events_url":"https://api.github.com/users/michaellandi/events{/privacy}","received_events_url":"https://api.github.com/users/michaellandi/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T18:55:27Z","updated_at":"2015-11-24T18:55:27Z","body":"jruby 1.7.23 was released yesterday, and fixes the memory leak using File::Stat.  Any idea when this will be incorporated into a logstash build?"}}