How can i make the "Kill: true", when "maximum heap size reached"?

As time goes, the whole memory of the emqx inscreases。
How can i make the process killed ,when “maximum heap size reached”?

2024-01-23 00:33:21.096 [error]      Process:          <0.8166.8> on node 'emqx@'
     Context:          maximum heap size reached
     Max Heap Size:    2097152
     Total Heap Size:  2787348
     Kill:             false
     Error Logger:     true
     GC Info:          [{old_heap_block_size,514838},