Prometheus only uses what memory it needs. You can see this with process_resident_memory_bytes and go_memstats_alloc_bytes. Cache memory is not part of Prometheus, it is controlled by the kernel.
On Wed, Jul 8, 2020 at 8:47 AM 白洋洋 <[email protected]> wrote: > > The picture below shows the memory that Prometheus used.As we can see,the > average memory is about 33G,and that's a lot of memory.Then I use the > command "free -h" to check the memory usage.The result is shown that the > most memory the prometheus used is cache.Would you tell me What is the > Prometheus's memory elimination strategy?Under what circumstances will > Prometheus clean up the cache ?Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/5739771b-3d2a-4d8a-9577-c04d40d7c926o%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/5739771b-3d2a-4d8a-9577-c04d40d7c926o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmq0ipPQXrxwPTWei3SscK4NTH%2BrYHtqB%2BNaS82_pKBNGw%40mail.gmail.com.

