We have an application which consists of JPA entities, EJB 3 stateless beans and infinispan as second level cache.
Jboss version : EAP-6.0.1
OS : Cent OS-6.2(Final) 64 bit
Java : OpenJDK version "1.6.0_24"
Min and Max memory supplied is -Xms1303m -Xmx4096m. On start of jboss initial heap size
without any deployments is 264Mb
When we try to deploy the application all the infinispan Mbeans gets registered and the total
heap space occupied is around 2Gb with 350 cache entries(without any data).
Then when we undeploy the application all the infinispan Mbeans gets unregistered, but the
heap size still remains 1.8Gb.
When we try to deploy the application with infinispan(second level cache)disabled, the
heap space occupied is around 900Mb.
Then when we undeploy the application the heap size goes back to the initial stage i.e,
We wanted to know why the heap is not getting cleared with infinispan second level cache.
Attachment contains the persistence.xml which is used to cache the entities,
standalone-full.xml(Jboss is started using standalone-full.xml), server log.
We are going with default inifinispan configuration provided as part of EAP-6.0.1.
Am not able to attach heap dump as the size is almost 3.5Gb