How to use CDI @ConversationScope in memory efficient way

224 Views Asked by At

Currently I am experimenting with CDI @ConversationScoped beans following the Oracle Tutorial.

While monitoring memory usage, I found for a bean with two collections of 800+ Objects and other few objects its taking more than 60MB session space.

I am aware, it has to maintain the whole view state and changes in conversational context, but taking this huge amount of memory really surprises me.

Is there anything I might be missing or any way to make the bean more memory efficient.

0

There are 0 best solutions below