{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/2653","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/2653/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/2653/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/2653/events","html_url":"https://github.com/elastic/beats/issues/2653","id":180297559,"number":2653,"title":"misleading actual available memory value in metricbeat 5.0-beta1","user":{"login":"alextxm","id":6169392,"avatar_url":"https://avatars.githubusercontent.com/u/6169392?v=3","gravatar_id":"","url":"https://api.github.com/users/alextxm","html_url":"https://github.com/alextxm","followers_url":"https://api.github.com/users/alextxm/followers","following_url":"https://api.github.com/users/alextxm/following{/other_user}","gists_url":"https://api.github.com/users/alextxm/gists{/gist_id}","starred_url":"https://api.github.com/users/alextxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alextxm/subscriptions","organizations_url":"https://api.github.com/users/alextxm/orgs","repos_url":"https://api.github.com/users/alextxm/repos","events_url":"https://api.github.com/users/alextxm/events{/privacy}","received_events_url":"https://api.github.com/users/alextxm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/beats/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/elastic/beats/labels/Metricbeat","name":"Metricbeat","color":"008000"},{"url":"https://api.github.com/repos/elastic/beats/labels/Pioneer%20Program","name":"Pioneer Program","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T12:57:07Z","updated_at":"2016-10-03T12:34:28Z","closed_at":null,"body":"Actual available memory reported by Metricbeat 5.0-beta1 is a bit misleading from the user POV.\r\nIf you analyze the JSON data on ES (please see the attached screenshot) you can see that values of system.memory.free, system.memory.total and system.memory.used.bytes are correctly related but the system.memory.actual.free one is quite unintelligible.\r\n```\r\nsystem\": {\r\n      \"memory\": {\r\n        \"actual\": {\r\n          \"free\": 140701896896512,\r\n          \"used\": {\r\n            \"bytes\": 35591327744,\r\n            \"pct\": 4.1949\r\n          }\r\n        },\r\n[... omitted...]\r\n        \"total\": 8484442112,\r\n        \"used\": {\r\n          \"bytes\": 5603889152,\r\n          \"pct\": 0.6605\r\n        }\r\n      }\r\n```\r\nIn the docs I read: \"system.memory.actual.free : [...] On Windows, it is the amount of unreserved and uncommitted memory currently in the user-mode portion of the virtual address space of the calling process.\". btw I still can't get why its value is so high.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6169392/18991928/cc03ca94-871b-11e6-8ea8-149f79d78722.png)\r\n\r\nTested with Metricbeat 5.0-beta1 on Windows 10 x64\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/beats/issues/comments/251094532","html_url":"https://github.com/elastic/beats/issues/2653#issuecomment-251094532","issue_url":"https://api.github.com/repos/elastic/beats/issues/2653","id":251094532,"user":{"login":"andrewkroh","id":4565752,"avatar_url":"https://avatars.githubusercontent.com/u/4565752?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewkroh","html_url":"https://github.com/andrewkroh","followers_url":"https://api.github.com/users/andrewkroh/followers","following_url":"https://api.github.com/users/andrewkroh/following{/other_user}","gists_url":"https://api.github.com/users/andrewkroh/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkroh/subscriptions","organizations_url":"https://api.github.com/users/andrewkroh/orgs","repos_url":"https://api.github.com/users/andrewkroh/repos","events_url":"https://api.github.com/users/andrewkroh/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkroh/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T12:34:28Z","updated_at":"2016-10-03T12:34:28Z","body":"On Windows, system.memory.actual.free = [MEMORYSTATUSEX.ullAvailVirtual](https://msdn.microsoft.com/en-us/library/windows/desktop/aa366770(v=vs.85).aspx). This doesn't seem to be consistent with the other OS'es since it's virtual memory.\r\n\r\nThe value in @alextxm's example does seem really high.\r\n\r\n"}}
{"actor":{"display_login":"andrewkroh"}}