Hi Andrey,

I tried with -Xmx3072m -Xmx3072m and I still get OOM. If I try with 4GB heap 
setting then it works with GC running continuously. With 8GB, it works without 
any issues.

Is it just that it needs more heap to perform unmarshalling and give the 
evicted entry to the listener?

[15:33:08] Ignite node started OK (id=3a14ca7d, 
grid=IgniteWithCacheEvictListener)
[15:33:08] Topology snapshot [ver=1, servers=1, clients=0, CPUs=8, heap=3.0GB]
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.lang.StringCoding.safeTrim(StringCoding.java:79)
at java.lang.StringCoding.encode(StringCoding.java:365)
at java.lang.String.getBytes(String.java:941)
at 
org.apache.ignite.internal.binary.BinaryWriterExImpl.doWriteString(BinaryWriterExImpl.java:435)
at 
org.apache.ignite.internal.binary.BinaryWriterExImpl.writeStringField(BinaryWriterExImpl.java:1102)
at 
org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.write(BinaryFieldAccessor.java:506)
at 
org.apache.ignite.internal.binary.BinaryClassDescriptor.write(BinaryClassDescriptor.java:784)
at 
org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal0(BinaryWriterExImpl.java:206)
at 
org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:147)
at 
org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:134)
at 
org.apache.ignite.internal.binary.GridBinaryMarshaller.marshal(GridBinaryMarshaller.java:239)
at 
org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.marshalToBinary(CacheObjectBinaryProcessorImpl.java:521)
at 
org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.toBinary(CacheObjectBinaryProcessorImpl.java:914)
at 
org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.toCacheObject(CacheObjectBinaryProcessorImpl.java:859)
at 
org.apache.ignite.internal.processors.cache.GridCacheContext.toCacheObject(GridCacheContext.java:1792)
at 
org.apache.ignite.internal.processors.cache.local.atomic.GridLocalAtomicCache.updateAllInternal(GridLocalAtomicCache.java:834)
at 
org.apache.ignite.internal.processors.cache.local.atomic.GridLocalAtomicCache.put0(GridLocalAtomicCache.java:147)
at 
org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2276)
at 
org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2253)
at 
org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:1375)
at 
com.example.IgniteWithCacheEvictListener.main(IgniteWithCacheEvictListener.java:63)

-----Original Message-----
From: Andrey Gura [mailto:[email protected]]
Sent: Monday, May 01, 2017 11:34 AM
To: [email protected]
Subject: Re: OOM Issue with Eviction Event listener - Ignite 1.9.0

Hi,

Listener just lead to additional Event objects instantiation. You should give 
more memory for your Java process.

On Mon, May 1, 2017 at 5:54 PM, Pradeep Badiger <[email protected]> wrote:
> Hi,
>
>
>
> I am facing an OOM Exception when eviction policy is turned on. I have
> attached an eclipse project that has two test programs. One is set
> with eviction event listener and another one is not.
>
>
>
> The test program with eviction listener throws an OOM error almost
> immediately after the ignite is initialized. The one without the
> listener works fine.
>
>
>
> I ran both the test programs with –Xmx512m –Xms512m.
>
>
>
> Can someone let me know if there are any issues with my configurations?
>
>
>
> Thanks,
>
> Pradeep V.B.
>
> This email and any files transmitted with it are confidential,
> proprietary and intended solely for the individual or entity to whom they are 
> addressed.
> If you have received this email in error please delete it immediately.
This email and any files transmitted with it are confidential, proprietary and 
intended solely for the individual or entity to whom they are addressed. If you 
have received this email in error please delete it immediately.

Reply via email to