Hello,
I need some help and inputs here,
We are using JMS which behind the scenes uses AMQPProvider which in turns initializes
PooledByteBufAllocater (see attached screenshot)
For an app with 1GB of heap memory - DEFAULT_NUM_HEAP_ARENA = 10 (16MB chunk - by default)
So, maximin no of chunks that it can allocate is 10
So, if only create connection to 2 Queues - the total no of chunks allocated will be 2
But if I create connections to 14 Queues, the no of chunks allocated will be 10
So, from my understanding, whatever is less from the above 2 conditions - decides the number of chunks
So, my question is :
If I set -Dio.netty.allocator.numHeapArenas=0, then the number of chunks allocated becomes 0
So, are there any consequences of doing that??
One thing to note here is, our processes and usage of AMQP are asynchronous (send and receiving messages from queue)
What will happen if I reduce the size of chunk -Dio.netty.allocator.maxOrder=9
and the message received from queue is more than it??
What I mean to ask is, do we use these chunks while reading message from queue
Will the performance of my application will be affected by setting -Dio.netty.allocator.numHeapArenas=0 ??
Request you kindly help me out here.
Regards,
Rishabh