Incorrect memory use value on 32bit PAE with Monit >=5.28.1

Issue #1002 resolved
George Brooke created an issue

Monit >= 5.28.1 on a 32bit PAE system with 8GB of RAM and typically ~800mb of RAM use reports impossibly high memory use:

mem usage of 449046937600.0% matches resource limit [mem usage > 90.0%]

as well as reporting total memory of 3.8GB.

I suspect that commit fc59051 introduced this as the memory update on every run (line 605) looks for an unsigned long whereas init_process_info_sysdep and the SystemInfo_T struct have it as an unsigned long long.

Comments (4)

  1. Log in to comment