Re: High memory footprint of proton-j in ActiveMQ

2014-06-06 Thread Rafael Schloming
That sounds like a worthy improvement to me. We could possibly put in a threshold to let people choose their own tradeoff, e.g. below X buffer size we use one strategy, and above it we use another. Either way, I'd go ahead and file a JIRA with a pointer to your commit. --Rafael On Thu, Jun 5,

Re: High memory footprint of proton-j in ActiveMQ

2014-06-06 Thread Marcel Meulemans
Maintaining both strategies sounds like a good idea (and a fun exercise so I might give it a go over the weekend :p). Jira item created: https://issues.apache.org/jira/browse/PROTON-597 -- Marcel On Fri, Jun 6, 2014 at 4:00 PM, Rafael Schloming r...@alum.mit.edu wrote: That sounds like a

High memory footprint of proton-j in ActiveMQ

2014-06-05 Thread Marcel Meulemans
I have been experiencing high (resident) memory usage when using ActiveMQ with large amounts of AMQP connections. After some investigation I have traced this memory usage back to proton-j. The cause is that by default ActiveMQ defines a maxFrameSize of 1MB for the AmqpWireFormat and in proton-j