Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2431

Heap is slowly used up when versionable mixin is enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 4.2.0.Final
    • 4.1.0.Final
    • JCR
    • None
    • Hide

      1. Create ModeShape repository
      2. Create JCR with versionable mixin type
      3. Repeat above step to add up to 1 million nodes
      4. Improve performance to partition nodes into different tree structure
      5. Monitor heap usage via JMX tool, such as jconsole
      6. Heap is used up around 600k-700k nodes.

      Show
      1. Create ModeShape repository 2. Create JCR with versionable mixin type 3. Repeat above step to add up to 1 million nodes 4. Improve performance to partition nodes into different tree structure 5. Monitor heap usage via JMX tool, such as jconsole 6. Heap is used up around 600k-700k nodes.

      When versionable mixin type is enabled for JCR nodes, JVM heap is slowly used up to cause memory and CPU issues in the application.

      In the attached Java test case, the symptom becomes significant when the the number of JCR nodes reaches over 600K in the repository.

      Without enabling the versionable mixin type, adding 1 million JCR nodes with the attached configuration is just used about 500 MB of heap.

        1. alloc_hot_spot.png
          103 kB
          Horia Chiorean
        2. eviction-test-infinispan-config.xml
          1 kB
          Jimmy Zhang
        3. eviction-test-modeshape-config.json
          0.7 kB
          Jimmy Zhang
        4. heap-oom-modeshape-versioned.png
          103 kB
          Jimmy Zhang
        5. HeapOOMTestModeShape.java
          4 kB
          Jimmy Zhang

              Unassigned Unassigned
              a200953_jira Jimmy Zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: