Hi,
you can lower maximum_memory.percent to 20. This will give more memory to Erlang processes in comparison to LevelDB.
The other configurations you mention are not related.
The issue is unclear, though. You mention that the "broker is automatically stopped" frequently but also that it is a connection issue?
Best,
André