{"action":"opened","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/4888","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/4888/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/4888/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/4888/events","html_url":"https://github.com/hazelcast/hazelcast/issues/4888","id":64084305,"number":4888,"title":"LockStore not cleared when map is destroyed causing OutOfMemory","user":{"login":"karvind00","id":11635278,"avatar_url":"https://avatars.githubusercontent.com/u/11635278?v=3","gravatar_id":"","url":"https://api.github.com/users/karvind00","html_url":"https://github.com/karvind00","followers_url":"https://api.github.com/users/karvind00/followers","following_url":"https://api.github.com/users/karvind00/following{/other_user}","gists_url":"https://api.github.com/users/karvind00/gists{/gist_id}","starred_url":"https://api.github.com/users/karvind00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karvind00/subscriptions","organizations_url":"https://api.github.com/users/karvind00/orgs","repos_url":"https://api.github.com/users/karvind00/repos","events_url":"https://api.github.com/users/karvind00/events{/privacy}","received_events_url":"https://api.github.com/users/karvind00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T19:48:16Z","updated_at":"2015-03-24T19:48:16Z","closed_at":null,"body":"Hazelcast version:3.4.1\r\nCluster size:1\r\nNumber of the clients:1\r\nVersion of Java:1.6_45\r\nOS: Linux version 2.6.32-358.el6.x86_64\r\n\r\nIn the com.hazelcast.concurrent.lock.LockStoreContainer class when clearLockStore is called the lockStores map entry is not removed.\r\n\r\nI have attached screenshot of the heap dump from JVisualVM\r\n![lock_store_heap_dump](https://cloud.githubusercontent.com/assets/11635278/6811251/cef6ec94-d223-11e4-9aa5-d90f6fdc7c9e.PNG)\r\n. Notice how com.hazelcast.spi.DefaultObjectNamespace and  com.hazelcast.concurrent.lock.LockStoreImpl classes hang around even after the map has been removed.\r\n\r\nThe lockstore objects pile up till the server finally runs out of memory"}}