{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4765","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4765/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4765/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4765/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4765","id":100079827,"number":4765,"title":"OPartitionedDatabasePool.close does not close the underlying storage","user":{"login":"raeesn","id":2379079,"avatar_url":"https://avatars.githubusercontent.com/u/2379079?v=3","gravatar_id":"","url":"https://api.github.com/users/raeesn","html_url":"https://github.com/raeesn","followers_url":"https://api.github.com/users/raeesn/followers","following_url":"https://api.github.com/users/raeesn/following{/other_user}","gists_url":"https://api.github.com/users/raeesn/gists{/gist_id}","starred_url":"https://api.github.com/users/raeesn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raeesn/subscriptions","organizations_url":"https://api.github.com/users/raeesn/orgs","repos_url":"https://api.github.com/users/raeesn/repos","events_url":"https://api.github.com/users/raeesn/events{/privacy}","received_events_url":"https://api.github.com/users/raeesn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-10T14:26:15Z","updated_at":"2015-08-18T16:57:31Z","closed_at":"2015-08-10T15:53:28Z","body":"When a plocal document db pool is created and closed, the underlying storage is not closed.\r\n\r\nOPartitionedDatabasePoolFactory poolFactory = new OPartitionedDatabasePoolFactory();\r\nOPartitionedDatabasePool pool = poolFactory.get(\"plocal:db_test\", \"testuser\", \"testuser\");\r\npool.close();\r\n\r\nPool close stack trace.\r\n\tOPartitionedDatabasePool.close()\r\n\tOStorageAbstract.close();\r\n\tOStorageAbstract.close(false, false);\r\n\tOAbstractPaginatedStorage.doClose(force, onDelete)\r\n\t\tif (!force && !onDelete) ;"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/132277555","html_url":"https://github.com/orientechnologies/orientdb/issues/4765#issuecomment-132277555","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4765","id":132277555,"user":{"login":"raeesn","id":2379079,"avatar_url":"https://avatars.githubusercontent.com/u/2379079?v=3","gravatar_id":"","url":"https://api.github.com/users/raeesn","html_url":"https://github.com/raeesn","followers_url":"https://api.github.com/users/raeesn/followers","following_url":"https://api.github.com/users/raeesn/following{/other_user}","gists_url":"https://api.github.com/users/raeesn/gists{/gist_id}","starred_url":"https://api.github.com/users/raeesn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raeesn/subscriptions","organizations_url":"https://api.github.com/users/raeesn/orgs","repos_url":"https://api.github.com/users/raeesn/repos","events_url":"https://api.github.com/users/raeesn/events{/privacy}","received_events_url":"https://api.github.com/users/raeesn/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T16:57:31Z","updated_at":"2015-08-18T16:57:31Z","body":"The service we are developing is expected to run 24/7 and would create around 200-300 DB instances (plocal document) to store some data snapshots received everyday. The heap size is 2GB. Each DB would be around 200MB size. The DB instances are written once and less likely to get loaded back.\r\n\r\nAny recommendations on using multiple DB instances and to keep the service running 24/7 without any OOM? Or should I look for different options like single DB that stores all data or remote mode?\r\n"}}