报错
2024-08-08 15:29:02.532 ERROR 39656 --- [ange-worker-#49] .c.d.d.p.GridDhtPartitionsExchangeFuture : Failed to reinitialize local partitions (rebalancing will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], discoEvt=DiscoveryCustomEvent [customMsg=DynamicCacheChangeBatch [id=a4cb1e03191-63696166-3225-4674-8bfd-ab7d48a59c34, reqs=ArrayList [DynamicCacheChangeRequest [cacheName=SQL_PUBLIC_PERSON, hasCfg=true, nodeId=1be5e2cd-0c5f-4b34-a63a-f4a62421efbf, clientStartOnly=false, stop=false, destroy=false, disabledAfterStart=false]], exchangeActions=ExchangeActions [startCaches=[SQL_PUBLIC_PERSON], stopCaches=null, startGrps=[somegroup], stopGrps=[], resetParts=null, finalizePartitionCounters=false, stateChangeRequest=null], startCaches=false], affTopVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=1be5e2cd-0c5f-4b34-a63a-f4a62421efbf, consistentId=0:0:0:0:0:0:0:1,10.188.126.226,127.0.0.1:47500, addrs=ArrayList [0:0:0:0:0:0:0:1, 10.188.126.226, 127.0.0.1], sockAddrs=HashSet [/0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, DESKTOP-H5377J0.hs.handsome.com.cn/10.188.126.226:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1723101986728, loc=true, ver=2.14.0#20240808-sha1:00000000, isClient=false], topVer=1, msgTemplate=null, span=o.a.i.i.processors.tracing.NoopSpan@2e37d63, nodeId8=1be5e2cd, msg=null, type=DISCOVERY_CUSTOM_EVT, tstamp=1723102142489]], nodeId=1be5e2cd, evt=DISCOVERY_CUSTOM_EVT]
java.lang.OutOfMemoryError: null
at sun.misc.Unsafe.allocateMemory(Native Method) ~[na:1.8.0_341]
at org.apache.ignite.internal.util.GridUnsafe.allocateMemory(GridUnsafe.java:1211) ~[ignite-core-extend-2.14.0-2.8.1-20240808.061839-1.jar:na]
at org.apache.ignite.internal.mem.unsafe.UnsafeMemoryAllocator.allocateMemory(UnsafeMemoryAllocator.java:26) ~[ignite-core-extend-2.14.0-2.8.1-20240808.061839-1.jar:na]
at org.apache.ignite.internal.mem.unsafe.UnsafeMemoryProvider.nextRegion(UnsafeMemoryProvider.java:117) ~[ignite-core-extend-2.14.0-2.8.1-20240808.061839-1.jar:na]
at org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager$3.nextRegion(IgniteCacheDatabaseSharedManager.java:1517) ~[ignite-core-extend-2.14.0-2.8.1-20240808.061839-1.jar:na]
问题原因:
1、如果在启动时报错,应该时配置的数据大小(堆外内存)大于服务器所能分配的存在导致申请内存时OOm了
数据区模式,堆外内存大小,用于服务端存放数据,客户端模式无需配置,如下配置为1000MB
ignite.dataStorageConfiguration.defaultDataRegionConfiguration.initialSize=1048576000
ignite.dataStorageConfiguration.defaultDataRegionConfiguration.maxSize=1048576000
2、如果时运行时报类似错误,则时数据区由initialSize扩容到maxSize时,内存不足,或者是数据量太大,没开数据持久化,导致数据区OOM了
标签:ignite,2.14,13,rebalancing,false,na,IgniteFAQ,java,null From: https://www.cnblogs.com/yangh2016/p/18349045