环境信息
- EMQX 版本:4.2.12
- 操作系统及版本:Linux 3.10.0-957.21.3.el7.x86_64 #1 SMP
- 其他
问题描述
emqx.log和erlang.log都一直在报错:maximum heap size reached
但是emqx并没有重启,只是貌似丢失了部分消息
配置文件及日志
2022-05-09 08:36:58.664 [error] Process: <0.14578.4875> on node ‘emqx@127.0.0.1’
Context: maximum heap size reached
Max Heap Size: 4194304
Total Heap Size: 4931296
Kill: false
Error Logger: true
GC Info: [{old_heap_block_size,3581853},
{heap_block_size,1347864},
{mbuf_size,1615},
{recent_size,24116},
{stack_size,32},
{old_heap_size,2866280},
{heap_size,514802},
{bin_vheap_size,31618},
{bin_vheap_block_size,46422},
{bin_old_vheap_size,624158},
{bin_old_vheap_block_size,989000}]
2022-05-09 08:36:59.025 [error] Process: <0.14578.4875> on node ‘emqx@127.0.0.1’
Context: maximum heap size reached
Max Heap Size: 4194304
Total Heap Size: 4941213
Kill: false
Error Logger: true
GC Info: [{old_heap_block_size,3581853},
{heap_block_size,1347864},
{mbuf_size,11529},
{recent_size,72371},
{stack_size,20},
{old_heap_size,2889740},
{heap_size,514805},
{bin_vheap_size,55452},
{bin_vheap_block_size,46422},
{bin_old_vheap_size,629179},
{bin_old_vheap_block_size,989000}]
2022-05-09 08:36:59.058 [error] Process: <0.14578.4875> on node ‘emqx@127.0.0.1’
Context: maximum heap size reached
Max Heap Size: 4194304
Total Heap Size: 7692757
Kill: false
Error Logger: true
GC Info: [{old_heap_block_size,3581853},
{heap_block_size,4096691},
{mbuf_size,14213},
{recent_size,155580},
{stack_size,14},
{old_heap_size,2960174},
{heap_size,345365},
{bin_vheap_size,39752},
{bin_vheap_block_size,75110},
{bin_old_vheap_size,644268},
{bin_old_vheap_block_size,989000}]