{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/3934","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/3934/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/3934/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/3934/events","html_url":"https://github.com/neo4j/neo4j/pull/3934","id":56366948,"number":3934,"title":"More robust way of allocating memory in NumberArrayFactory","user":{"login":"tinwelint","id":187292,"avatar_url":"https://avatars.githubusercontent.com/u/187292?v=3","gravatar_id":"","url":"https://api.github.com/users/tinwelint","html_url":"https://github.com/tinwelint","followers_url":"https://api.github.com/users/tinwelint/followers","following_url":"https://api.github.com/users/tinwelint/following{/other_user}","gists_url":"https://api.github.com/users/tinwelint/gists{/gist_id}","starred_url":"https://api.github.com/users/tinwelint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinwelint/subscriptions","organizations_url":"https://api.github.com/users/tinwelint/orgs","repos_url":"https://api.github.com/users/tinwelint/repos","events_url":"https://api.github.com/users/tinwelint/events{/privacy}","received_events_url":"https://api.github.com/users/tinwelint/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neo4j/neo4j/labels/2.2","name":"2.2","color":"bfd4f2"},{"url":"https://api.github.com/repos/neo4j/neo4j/labels/kernel","name":"kernel","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-03T11:42:44Z","updated_at":"2015-02-04T17:15:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neo4j/neo4j/pulls/3934","html_url":"https://github.com/neo4j/neo4j/pull/3934","diff_url":"https://github.com/neo4j/neo4j/pull/3934.diff","patch_url":"https://github.com/neo4j/neo4j/pull/3934.patch"},"body":"also, the AvailableMemoryCalculator#RUNTIME uses the correct OS bean\r\nmethod for figuring out how much free memory there's available."},"comment":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/comments/72896208","html_url":"https://github.com/neo4j/neo4j/pull/3934#issuecomment-72896208","issue_url":"https://api.github.com/repos/neo4j/neo4j/issues/3934","id":72896208,"user":{"login":"tinwelint","id":187292,"avatar_url":"https://avatars.githubusercontent.com/u/187292?v=3","gravatar_id":"","url":"https://api.github.com/users/tinwelint","html_url":"https://github.com/tinwelint","followers_url":"https://api.github.com/users/tinwelint/followers","following_url":"https://api.github.com/users/tinwelint/following{/other_user}","gists_url":"https://api.github.com/users/tinwelint/gists{/gist_id}","starred_url":"https://api.github.com/users/tinwelint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinwelint/subscriptions","organizations_url":"https://api.github.com/users/tinwelint/orgs","repos_url":"https://api.github.com/users/tinwelint/repos","events_url":"https://api.github.com/users/tinwelint/events{/privacy}","received_events_url":"https://api.github.com/users/tinwelint/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T17:15:59Z","updated_at":"2015-02-04T17:15:59Z","body":"@davidegrohmann how about now? I made a change where NumberArrayFactory.Auto doesn't use AvailableMemoryCalculator at all, since it's quite likely to not be 100% true anyway. It'll instead try to just allocate and the system will have to throw OOM enough memory not available. Auto has a fixed list of candidates to try with, sort of like before.\r\n\r\nThis is the most robust way I've come up with as of yet."}}