1 Reply Latest reply on Sep 23, 2014 9:11 AM by rvansa

    Infinispan not releasing memory

    karminder.singh

      Hi,

      I am using infinispan in local persisted mode. The problem is with the size of persisted file.

      We are continuously modifying the value against the same set of keys. So, we are not increasing the number of entries, we are only modifying the value part.

      If we put huge sized values against keys the persisted file grows to a certain size, but when we reduce the size of value part against the keys the size of persisted file doesn't come down.

      I am already using system.gc(), but it is not helping. Is there way using configuration to reduce the size of persisted file.

      We are using infinispan 6.0.2

       

      Thanks in advance,

      Karm

        • 1. Re: Infinispan not releasing memory
          rvansa

          That's a known limitation of the SingleFileStore - it cannot shrink the file, and it cannot defragment that (worst-case is writing entries with size 1, 2, 3 ... - you'll end up with file taking n * (n +1) / 2 bytes).

           

          You can try LevelDB store instead.