« Return to Thread: java.lang.OutOfMemoryError: allocLargeObjectOrArray

Re: java.lang.OutOfMemoryError: allocLargeObjectOrArray

by IIT Software :: Rate this Message:

Reply to Author | View in Thread

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>

 « Return to Thread: java.lang.OutOfMemoryError: allocLargeObjectOrArray