Naveen, The off-heap memory supports following page-based eviction policies: https://apacheignite.readme.io/docs/evictions#section-off-heap-memory <https://apacheignite.readme.io/docs/evictions#section-off-heap-memory>
Do you really need the on-heap caching option in Ignite? https://apacheignite.readme.io/docs/memory-configuration#section-on-heap-caching <https://apacheignite.readme.io/docs/memory-configuration#section-on-heap-caching> The on-heap caching is optional and I’m not sure you use it. All the data and indexes are stored in the off-heap page memory. By default, Java heap is used to store temporary objects generated by your app and Ignite in runtime (unless you enable the on-heap caching). — Denis > On Dec 15, 2017, at 4:24 AM, Naveen <[email protected]> wrote: > > Hi > > Am using 2.3 > I am trying to run some tests with eviction, seems eviction only works when > we use on-heap memory, so I was trying to keep 1 million records in on-heap > and start evicting. > Getting GC overlimit exceeded, so trying to increase heap by passing memory > arguments to ignite.sh > > ./bin/ignite.sh -J -Xms2g -Xmx10g -v config/IgnitePOC-NoCacheInfo.xml > > Ignite Command Line Startup, ver. 2.3.0#20171028-sha1:8add7fd5 > 2017 Copyright(C) Apache Software Foundation > > [17:44:42,359][INFO][main][IgniteKernal%IgnitePOC] > >>>> __________ ________________ >>>> / _/ ___/ |/ / _/_ __/ __/ >>>> _/ // (7 7 // / / / / _/ >>>> /___/\___/_/|_/___/ /_/ /___/ >>>> >>>> ver. 2.3.0#20171028-sha1:8add7fd5 >>>> 2017 Copyright(C) Apache Software Foundation >>>> >>>> Ignite documentation: http://ignite.apache.org > > [17:44:42,360][INFO][main][IgniteKernal%IgnitePOC] Config URL: > file:/app/Ignite/apache-ignite-fabric-2.3.0-bin/config/IgnitePOC-NoCacheInfo.xml > [17:44:42,360][INFO][main][IgniteKernal%IgnitePOC] Daemon mode: off > [17:44:42,361][INFO][main][IgniteKernal%IgnitePOC] OS: Linux > 3.10.0-693.11.1.el7.x86_64 amd64 > [17:44:42,361][INFO][main][IgniteKernal%IgnitePOC] OS user: tibusr > [17:44:42,361][INFO][main][IgniteKernal%IgnitePOC] PID: 49645 > [17:44:42,362][INFO][main][IgniteKernal%IgnitePOC] Language runtime: Java > Platform API Specification ver. 1.8 > [17:44:42,362][INFO][main][IgniteKernal%IgnitePOC] VM information: Java(TM) > SE Runtime Environment 1.8.0_151-b12 Oracle Corporation Java HotSpot(TM) > 64-Bit Server VM 25.151-b12 > [17:44:42,365][INFO][main][IgniteKernal%IgnitePOC] VM total memory: 0.96GB > [17:44:42,366][INFO][main][IgniteKernal%IgnitePOC] Remote Management > [restart: on, REST: on, JMX (remote: on, port: 49170, auth: off, ssl: off)] > [17:44:42,370][INFO][main][IgniteKernal%IgnitePOC] > IGNITE_HOME=/app/Ignite/apache-ignite-fabric-2.3.0-bin > [17:44:42,371][INFO][main][IgniteKernal%IgnitePOC] VM arguments: [-Xms1g, > -Xmx1g, -XX:+AggressiveOpts, -XX:MaxMetaspaceSize=256m, > -DIGNITE_QUIET=false, > -DIGNITE_SUCCESS_FILE=/app/Ignite/apache-ignite-fabric-2.3.0-bin/work/ignite_success_ec19c42f-0af0-41ce-ad12-40dcaa883b95, > -Dcom.sun.management.jmxremote, -Dcom.sun.management.jmxremote.port=49170, > -Dcom.sun.management.jmxremote.authenticate=false, > -Dcom.sun.management.jmxremote.ssl=false, > -DIGNITE_HOME=/app/Ignite/apache-ignite-fabric-2.3.0-bin, > -DIGNITE_PROG_NAME=./bin/ignite.sh] > [17:44:42,371][INFO][main][IgniteKernal%IgnitePOC] System cache's DataRegion > size is configured to 40 MB. Use > DataStorageConfiguration.systemCacheMemorySize property to change the > setting. > > How did it decide that total VM memory is 0.96GB. Its a 30GB VM and below is > the free -h output > *[17:44:42,365][INFO][main][IgniteKernal%IgnitePOC] VM total memory: 0.96GB* > > > [tibusr@JMNGD1BAQ10V03 apache-ignite-fabric-2.3.0-bin]$ free -h > total used free shared buff/cache > available > Mem: 30G 620M 27G 1.1G 3.0G > 28G > Swap: 0B 0B 0B > [tibusr@JMNGD1BAQ10V03 apache-ignite-fabric-2.3.0-bin]$ > > This is the log snippet, why the heap is not getting changed though I am > passing -Xms and -Xmx arguments. > >>>> CPU(s): 8 >>>> Heap: 1.0GB >>>> VM name: 49645@JMNGD1BAQ10V03 >>>> Ignite instance name: IgnitePOC > > Anything wrong I am doing. > > Thanks > Naveen > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/
