Cannot compute used swap when total swap is 0 and free swap is 0

Hello World!

My logs are getting flooded with following message:

cannot compute used swap when total swap is 0 and free swap is 0

I assume it's safe to ignore since it's not recommended to have swap enabled anyways, but is there a way to not produce message in the logs in the first place?

Please advise :wink:
Thanks in advance!

Can you clarify where this is being displayed? What log?

from elasticsearch logs:

root@esm3:/opt/elasticsearch# docker-compose logs --tail 1
Attaching to esm3
esm3             | [2021-07-10T02:43:27,950][WARN ][o.e.m.o.O.Swap           ] [esm3] cannot compute used swap when total swap is 0 and free swap is 0
root@esm3:/opt/elasticsearch#

... per Disable swapping | Elasticsearch Guide [6.8] | Elastic any/all swap are disabled, however now I'm getting the above line in my elasticsearch's log over and over ...