geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anilkumar Gingade (JIRA)" <>
Subject [jira] [Created] (GEODE-3844) OffHeap region close could be more efficient in its memory usage.
Date Mon, 16 Oct 2017 23:36:00 GMT
Anilkumar Gingade created GEODE-3844:

             Summary: OffHeap region close could be more efficient in its memory usage.
                 Key: GEODE-3844
             Project: Geode
          Issue Type: Bug
          Components: offheap
            Reporter: Anilkumar Gingade

Close on OffHeap region tries to copy OffHeap RegionEnties into array, which could take up
lot of memory based on the region size. 
This could be optimized by working on the region map itself or by working on the entries per
hashmap segment one at a time.

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(
at java.util.ArrayList.grow(
at java.util.ArrayList.ensureExplicitCapacity(
at java.util.ArrayList.ensureCapacityInternal(
at java.util.ArrayList.add(
at org.apache.geode.internal.util.concurrent.CustomEntryConcurrentHashMap$Segment.clear(
at org.apache.geode.internal.util.concurrent.CustomEntryConcurrentHashMap.clear(
at org.apache.geode.internal.cache.AbstractRegionMap._mapClear(
at org.apache.geode.internal.cache.AbstractRegionMap.clear(
at org.apache.geode.internal.cache.AbstractLRURegionMap.clear(
at org.apache.geode.internal.cache.AbstractRegionMap.close(
at org.apache.geode.internal.cache.LocalRegion.closeEntries(
at org.apache.geode.internal.cache.LocalRegion.recursiveDestroyRegion(
at org.apache.geode.internal.cache.LocalRegion.basicDestroyRegion(
at org.apache.geode.internal.cache.DistributedRegion.basicDestroyRegion(
at org.apache.geode.internal.cache.LocalRegion.close(

This message was sent by Atlassian JIRA

View raw message