-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Unexpectedly huge byte values returned for system.memory.swap.used.bytes #6271
Comments
Hi @ppf2, would it be possible to get the output of |
cat /proc/meminfo MemTotal: 263859608 kB MemFree: 246927004 kB MemAvailable: 250038484 kB Buffers: 6256 kB Cached: 3830644 kB SwapCached: 0 kB Active: 12868848 kB Inactive: 1777640 kB Active(anon): 10819508 kB Inactive(anon): 42668 kB Active(file): 2049340 kB Inactive(file): 1734972 kB Unevictable: 24528 kB Mlocked: 24528 kB SwapTotal: 4182012 kB SwapFree: 4182012 kB Dirty: 72 kB Writeback: 0 kB AnonPages: 10834488 kB Mapped: 374148 kB Shmem: 44252 kB Slab: 430668 kB SReclaimable: 197468 kB SUnreclaim: 233200 kB KernelStack: 59168 kB PageTables: 46832 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 136111816 kB Committed_AS: 28181764 kB VmallocTotal: 34359738367 kB VmallocUsed: 762848 kB VmallocChunk: 34224596664 kB HardwareCorrupted: 0 kB AnonHugePages: 6123520 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 462824 kB DirectMap2M: 21444608 kB DirectMap1G: 248512512 kB |
A similar issue has been reported in discuss (https://discuss.elastic.co/t/metricbeat-5-3-0-reporting-strange-memory-value/124825). |
Related to #8991 |
I have been trying to reproduce this issue without any success. For the values of swap reported it should work, as metricbeat only checks for I am opening #9383 as a workaround for this. This PR assumes that if this happens, then no swap is being used as in the values shared here. |
@ppf2 is there a chance to check if this is still happening on this server? or do you know of other cases of this issue? (There were other similar reports, but they were on FreeBSD, and were fixed by elastic/gosigar#106) |
6.1
Metricbeat is returning ginormous byte values for swap used. There are docker and kube processes running on this bare metal server (metricbeat is running directly on the host machine, not within containers).
Workaround is to filter out fields using a processor with these large values. If this is not something we can avoid because of golang, it will be nice for beats to filter these invalid values automatically without manual intervention.
CentOS Linux release 7.4.1708 (Core)
The text was updated successfully, but these errors were encountered: