Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-868

Running out of memory using Infinispan after adding a small number of entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.2.1.CR4, 4.2.1.FINAL
    • 4.2.0.Final
    • None
    • None
    • Hide

      Use the attached test case. Either FillCartonTest.java or FillContainerTest.java can be used. FillCartonTest.java uses the simpler Hibernate entities.

      Show
      Use the attached test case. Either FillCartonTest.java or FillContainerTest.java can be used. FillCartonTest.java uses the simpler Hibernate entities.

      While running a load test data builder for our application we ran out of memory very quickly. A simple test case (attached) was created to duplicate the issue. We found running the simple test case illustrates that Infinispan uses a large amount of heap space.

      As a reference the same test was run using EHCache 2.2. Memory usage was much lower; we never ran out of heap space. Note that EHCache was used as a reference only, our goal is to go to production with Infinispan.

        1. ispn686-error-galder.txt
          10 kB
          Galder Zamarreño
        2. jconsole-mbeans.JPG
          121 kB
          Tom Waterhouse
        3. jconsole-memory-view.JPG
          107 kB
          Tom Waterhouse
        4. Memory leak.jpg
          284 kB
          Galder Zamarreño
        5. memory usage with 4.2.1-SNAPSHOT.png
          211 kB
          Tom Waterhouse
        6. test-progress.JPG
          77 kB
          Tom Waterhouse
        7. With proper fix.jpg
          32 kB
          Galder Zamarreño

            rh-ee-galder Galder Zamarreño
            tomwaterhouse_jira Tom Waterhouse (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: