Merge pull request #7117 from qzhuyan/bugfix/william/sys-mem-false-alarm
bugfix: sys mem false alarm
This commit is contained in:
commit
c9ff263e59
|
@ -30,6 +30,7 @@ File format:
|
|||
* Fix the ExProto connection registry is not released after the client process abnormally exits [#6983]
|
||||
* Fix Server-KeepAlive wrongly applied on MQTT v3.0/v3.1 [#7085]
|
||||
* Fix Stomp client can not trigger `$event/client_connection` message [#7096]
|
||||
* Fix system memory false alarm at boot
|
||||
|
||||
## v4.3.12
|
||||
### Important changes
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
{load_module,emqx_banned,brutal_purge,soft_purge,[]},
|
||||
{load_module,emqx_ctl,brutal_purge,soft_purge,[]},
|
||||
{load_module,emqx_pmon,brutal_purge,soft_purge,[]},
|
||||
{load_module,emqx_os_mon,brutal_purge,soft_purge,[]},
|
||||
{load_module,emqx_channel,brutal_purge,soft_purge,[]}]},
|
||||
{"4.3.12",
|
||||
[{load_module,emqx_connection,brutal_purge,soft_purge,[]},
|
||||
|
|
|
@ -190,7 +190,7 @@ ensure_system_memory_alarm(HW) ->
|
|||
case erlang:whereis(memsup) of
|
||||
undefined -> ok;
|
||||
_Pid ->
|
||||
{Allocated, Total, _Worst} = memsup:get_memory_data(),
|
||||
{Total, Allocated, _Worst} = memsup:get_memory_data(),
|
||||
case Total =/= 0 andalso Allocated/Total * 100 > HW of
|
||||
true -> emqx_alarm:activate(high_system_memory_usage, #{high_watermark => HW});
|
||||
false -> ok
|
||||
|
|
Loading…
Reference in New Issue