Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misleading actual available memory value in metricbeat 5.0-beta1 #2653

Closed
alextxm opened this issue Sep 30, 2016 · 3 comments
Closed

misleading actual available memory value in metricbeat 5.0-beta1 #2653

alextxm opened this issue Sep 30, 2016 · 3 comments
Labels

Comments

@alextxm
Copy link

alextxm commented Sep 30, 2016

Actual available memory reported by Metricbeat 5.0-beta1 is a bit misleading from the user POV.
If 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.

system": {
      "memory": {
        "actual": {
          "free": 140701896896512,
          "used": {
            "bytes": 35591327744,
            "pct": 4.1949
          }
        },
[... omitted...]
        "total": 8484442112,
        "used": {
          "bytes": 5603889152,
          "pct": 0.6605
        }
      }

In 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.

image

Tested with Metricbeat 5.0-beta1 on Windows 10 x64

@andrewkroh
Copy link
Member

On Windows, system.memory.actual.free = MEMORYSTATUSEX.ullAvailVirtual. This doesn't seem to be consistent with the other OS'es since it's virtual memory.

The value in @alextxm's example does seem really high.

@monicasarbu
Copy link
Contributor

@alextxm Thank you for posting the issue. I think we have now a fix in elastic/gosigar#49. On Windows, the actual free memory is similar with the free memory, as there is nothing specific returned under MEMORYSTATUSEX.

@monicasarbu
Copy link
Contributor

monicasarbu commented Oct 14, 2016

Closing for now, as the fix was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants