Context:maximum heap size reached

Context: maximum heap size reached
Max Heap Size: 8388608
Total Heap Size: 9319586
Kill: false
Error Logger: true
GC Info: [{old_heap_block_size,3581853},
{heap_block_size,5737691},
{mbuf_size,0},
{recent_size,401763},
{stack_size,21},
{old_heap_size,2287580},
{heap_size,1439449},
{bin_vheap_size,37610},
{bin_vheap_block_size,79536},
{bin_old_vheap_size,243216},
{bin_old_vheap_block_size,196630}]

(1)服务端是否也可以做相应的优化
(2)发生此类情况,有无应急处理机制

感谢反馈,能详细展开说下你的需求吗?

这个日志发生是警告存在进程占用太多内存的情况出现了,此时需要关注你的业务看是否正常,有无一些过载的情况。

实际分析的话,需要完整的日志,并确定是哪一些进程内存超过限制了

业务不正常了,客户端连接后无法登录
2023-03-22 13:24:18.344 [error] Process: <0.8807.168> on node ‘emqx@127.0.0.1’
Context: maximum heap size reached
Max Heap Size: 8388608
Total Heap Size: 9319586
Kill: false
Error Logger: true
GC Info: [{old_heap_block_size,3581853},
{heap_block_size,5737691},
{mbuf_size,0},
{recent_size,401763},
{stack_size,21},
{old_heap_size,2287580},
{heap_size,1439449},
{bin_vheap_size,37610},
{bin_vheap_block_size,79536},
{bin_old_vheap_size,243216},
{bin_old_vheap_block_size,196630}]