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

Data caching multiplying memory requirements of Hot Rod server

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      After inserting a 160MB object in Hot Rod, the memory consumption of the server goes through the roof. The screenshot shows a couple of interesting things:

      1. Both the HotRodDecoder and the DataContainer have a byte[] of approx 160mb each. So, it seems like it's actually two copies of the same byte[]. It's clear though that only the cache container should have it, and any cache decoder data should be cleared when the request is completed.

      2. Netty's UnsafeDynamicChannelBuffer is still holding to a byte[] of 268MB approx. Judging by the 2nd screenshot attached, this appears to be belonging to the underlying ReplayingDecoder. That should also, if possible, be cleared up. I'll have a look around in the Netty code and maybe ping Trustin.

        1. ByteArrayConsumption.jpg
          434 kB
          Galder Zamarreño
        2. NettyBufferPathtToGC.jpg
          81 kB
          Galder Zamarreño

              rh-ee-galder Galder Zamarreño
              rh-ee-galder Galder Zamarreño
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: