2017-08-17 33 views
0

Apache Ignite 2.1.0在Windows Server 12上使用default-config.xml启动时崩溃。Ignite在Windows Server 12上的启动时崩溃

重要的日志中:

[11:08:16455] [INFO] [主] [IgniteKernal]操作系统:Windows Server 2012 R2 6.3 x86的

[11:08:16455] [INFO] [main] [IgniteKernal]语言运行时:Java Platform API Specification ver。 1.8

[11:08:16455] [INFO] [主要] [IgniteKernal] VM信息:Java(注册商标)SE运行时环境1.8.0_131-B11 Oracle公司的Java的HotSpot(TM)服务器VM 25.131-B11

[11:08:16455] [INFO] [主要] [IgniteKernal] VM总存储器:0.96GB

...

[11:08:16455] [INFO] [主要] [IgniteKernal] VM参数:[-Xms1g,-Xmx1g,-XX:+ AggressiveOpts,-XX:MaxMetaspaceSize = 256m,-DIGNITE_QUIET = true,-DIGNITE_SUCCESS_FILE = C:\ Ignite \ apache-ignite-fabric-2.1.0-bin \ work \ ignite_success_d782cfc3 -3908-4f42-90c8-33e4eb440de7,-Dcom.sun.managem ent.jmxremote,-Dcom.sun.management.jmxremote.port = 49117,-Dcom.sun.management.jmxremote.authenticate = false,-Dcom.sun.management.jmxremote.ssl = false,-DIGNITE_HOME = C:\ Ignite \ apache-ignite-fabric-2.1.0-bin,-DIGNITE_PROG_NAME = ignite.bat]

[11:08:16,455] [INFO] [main] [IgniteKernal]系统缓存的MemoryPolicy大小配置为40 MB。使用MemoryConfiguration.systemCacheMemorySize属性更改设置。

[11:08:16471] [INFO] [主] [IgniteKernal]配置高速缓存[在 'sysMemPlc' memoryPolicy:[ '点燃-SYS-缓存']

...

[11 :GridDhtPartitionExchangeFuture]重新初始化本地分区失败(预加载将停止):GridDhtPartitionExchangeId [topVer = AffinityTopologyVersion [topVer = 1,minorTopVer = 0],nodeId = d7ac488c,EVT = NODE_JOINED]

java.lang.OutOfMemoryError 在sun.misc.Unsafe.allocateMemory(本机方法) 在org.apache.ignite.internal.util.GridUnsafe.allocateMemory(GridUnsafe.java:1054) 在org.apache.ignite.internal.mem.unsafe.UnsafeMemoryProvider.nextRegion(UnsafeMemoryProvider.java:80) 的组织。 apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl.addSegment(PageMemoryNoStoreImpl.java:610) at org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl.start(PageMemoryNoStoreImpl.java:230) at org.apache。 ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.startMemoryPolicies(IgniteCacheDatabaseSharedManager.java:194) 在org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.onActivate(IgniteCacheDatabaseSharedManager.java:949) 的组织。 apache.ignite.internal.processors.cache.GridCacheSharedContext.activate(GridCac heSharedContext.java:244) 位于org.apache.ignite.internal.processors.cache的org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:602) 。 GridCachePartitionExchangeManager $ ExchangeWorker.body(GridCachePartitionExchangeManager.java:1901) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Thread。的java:748)

回答

1

的问题是与在配置文件中的一个片段解决

<property name="memoryConfiguration"> 
     <bean class="org.apache.ignite.configuration.MemoryConfiguration"> 
      <!-- Setting a name of the default memory policy --> 
      <property name="defaultMemoryPolicyName" value="Default_Region"/> 
      <!-- Setting the page size to 4 KB --> 
      <property name="pageSize" value="4096"/> 
      <property name="systemCacheInitialSize" value="#{40 * 1024 * 1024}"/> 
      <property name="systemCacheMaxSize" value="#{40 * 1024 * 1024}"/> 

      <!-- Defining several memory policies for different memory regions --> 
      <property name="memoryPolicies"> 
       <list> 
        <!-- 
         Default memory region that grows endlessly. A cache is bound to this memory region 
         unless it sets another one in its CacheConfiguration. 
        --> 
        <bean class="org.apache.ignite.configuration.MemoryPolicyConfiguration"> 
         <property name="name" value="Default_Region"/> 
         <!-- 100 MB memory region with disabled eviction --> 
         <property name="initialSize" value="#{20 * 1024 * 1024}"/> 
         <property name="maxSize" value="#{20 * 1024 * 1024}"/> 
        </bean> 

       </list> 
      </property> 
     </bean> 
    </property>