0 Replies Latest reply on Mar 3, 2005 8:10 AM by Tim Chan

    Memory issue with JBossCache replication

    Tim Chan Newbie

      We are having with a memory issue with JBossCache replication (please see description attached below). We saw the posting in

      http://jira.jboss.com/jira/browse/JGRP-33 and http://jira.jboss.com/jira/browse/JBCACHE-31. We are wondering if we are running into the same problem. What do you think?

      In http://jira.jboss.com/jira/browse/JBCACHE-31, Bela Ban indicated that the problem was not reproducible in JDK 1.5 (we are using JDK 1.4) and he is going to investigate this with JDK 1.4. Any progress in this issue yet?

      Thanks,

      Tim



      ==================================================================================

      Description of the problem:

      To summarize, this is what we did yesterday (after hooking up JProbe to crm_workflow_2):

      insert 2 objects to the samekey on crm_workflow (asynchronously replicated to crm_workflow_2) and retrieve them from crm_workflow_2
      force garbage collection and take heapdumps
      insert another 100 objects to the samekey on crm_workflow and retrieve them from crm_workflow_2
      force garbage collection and take heapdumps
      insert another 100 objects to the samekey on crm_workflow and retrieve them from crm_workflow_2
      force garbage collection and take heapdumps
      insert another 100 objects to the samekey on crm_workflow and retrieve them from crm_workflow_2
      force garbage collection and take heapdumps


      We observed around 9 MB ?leak? on both crm_workflow and crm_workflow_2, and JProbe indicated that it?s related to JGroups. The heapdumps taken confirmed that as well. Objects belonging to org/jgroups grew as more PUTs were invoked. The number of cached object inside the TreeCache remained only one per JVM.

      2 PUT 102 PUT 202 PUT 302 PUT
      heap usage - crm_workflow 66,510,928 75,479,360 84,786,040 93,876,944
      heap usage - crm_workflow_2 64,554,256 73,526,144 82,513,320 92,926,720
      Number of org/jgroups/util/Queue (crm_workflow) 56 2,856 5,656 8,456
      Number of org/jgroups/util/Queue (crm_workflow_2) 56 2,856 5,656 8,456
      Number of org/jgroups/JChannel (crm_workflow) 2 102 202 302
      Number of org/jgroups/JChannel (crm_workflow_2) 2 102 202 302