{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab2/issues/276","labels_url":"https://api.github.com/repos/openhab/openhab2/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2/issues/276/comments","events_url":"https://api.github.com/repos/openhab/openhab2/issues/276/events","html_url":"https://github.com/openhab/openhab2/issues/276","id":85023796,"number":276,"title":"Permanent Generation - Out of Memory errors","user":{"login":"kgoderis","id":5459062,"avatar_url":"https://avatars.githubusercontent.com/u/5459062?v=3","gravatar_id":"","url":"https://api.github.com/users/kgoderis","html_url":"https://github.com/kgoderis","followers_url":"https://api.github.com/users/kgoderis/followers","following_url":"https://api.github.com/users/kgoderis/following{/other_user}","gists_url":"https://api.github.com/users/kgoderis/gists{/gist_id}","starred_url":"https://api.github.com/users/kgoderis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgoderis/subscriptions","organizations_url":"https://api.github.com/users/kgoderis/orgs","repos_url":"https://api.github.com/users/kgoderis/repos","events_url":"https://api.github.com/users/kgoderis/events{/privacy}","received_events_url":"https://api.github.com/users/kgoderis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-04T10:15:30Z","updated_at":"2015-06-16T12:03:28Z","closed_at":null,"body":"I hoped we would never come to this, but the day of (memory) doom has arrived\r\n\r\nI have alpha2 running, with some bindings, and after a day or so I get a ton of the above related to an out of memory on the PermGen. I am in the processing of attaching jvisualm to my VM but it takes ages. I can this not yet say what is the problem here. I will also adjust the JVM startup parameters to increase the space allocated to the JVM but since nothing is specified, I guess the default value (16 MB?) is way too low. \r\n\r\nSome stats: \r\n14812 classes loaded in the perm gen, 6153 unloaded (this is huge!)\r\n1460 threads, 2032 at peak, and 278K threads started (that last number I am not sure if it really started, thus also re-using threads in all the thread pools we have, or threads \"created\")\r\n\r\nHope to be able to post something more later on, the whole JVM is taking now about 1G of memory, and jvisualvm is struggling\r\n"},"comment":{"url":"https://api.github.com/repos/openhab/openhab2/issues/comments/112401751","html_url":"https://github.com/openhab/openhab2/issues/276#issuecomment-112401751","issue_url":"https://api.github.com/repos/openhab/openhab2/issues/276","id":112401751,"user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T12:03:28Z","updated_at":"2015-06-16T12:03:28Z","body":"> I just wonder if should not make all threads of the Daemon type, enlarge the scheduler pool thread, and abandon all thread pools in the child classes.\r\n\r\nMight make sense indeed. Having bindings uncontrolled creating threads is imho not a good thing."}}