Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As seen in APLO-160, the size of the per-connection buffers can greatly impact the memory usage.
Since it can be difficult to predict how many concurrent connections will have to be handled by the broker, it would be good if the broker could auto-tune the buffer sizes.
The broker should be able to get JVM memory information and decide how much space should be devoted to connection buffers (as opposed to other memory usages). Then, based on the number of existing connections and the total buffer space they occupy, the broker could tune the per-connection buffer sizes of the new connections (at least, it could also adjust the existing buffers).