Re: java.lang.OutOfMemoryError: allocLargeObjectOrArray
Neither the JVM nor the number of threads is the problem. You probably send large messages or have too many connections or both. What helps is to decrease the smqp-consumer-cache-size of your connection factory.
For example:
<connection-factories>
<connection-factory name="plainsocket@router1" smqp-consumer-cache-size="10"/>
</connection-factories>