【问题标题】:Ignite crashed at start on Windows Server 12Ignite 在 Windows Server 12 上启动时崩溃
【发布时间】:2018-01-25 13:24:54
【问题描述】:

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

日志的重要性:

[11:08:16,455][INFO][main][IgniteKernal] 操作系统:Windows Server 2012 R2 6.3 x86

[11:08:16,455][INFO][main][IgniteKernal] 语言运行时:Java 平台 API 规范版本。 1.8

[11:08:16,455][INFO][main][IgniteKernal] VM 信息:Java(TM) SE Runtime Environment 1.8.0_131-b11 Oracle Corporation Java HotSpot(TM) Server VM 25.131-b11

[11:08:16,455][INFO][main][IgniteKernal] VM 总内存:0.96GB

[11:08:16,455][INFO][main][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.management.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=点燃.bat]

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

[11:08:16,471][INFO][main][IgniteKernal] 配置的缓存 [在 'sysMemPlc' memoryPolicy: ['ignite-sys-cache']]

[11:08:18,846][SEVERE][exchange-worker-#30%null%][GridDhtPartitionsExchangeFuture] 无法重新初始化本地分区(将停止预加载):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) 在 org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl.addSegment(PageMemoryNoStoreImpl.java:610) 在 org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl.start(PageMemoryNoStoreImpl.java:230) 在 org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.startMemoryPolicies(IgniteCacheDatabaseSharedManager.java:194) 在 org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager.onActivate(IgniteCacheDatabaseSharedManager.java:949) 在 org.apache.ignite.internal.processors.cache.GridCacheSharedContext.activate(GridCacheSharedContext.java:244) 在 org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:602) 在 org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1901) 在 org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) 在 java.lang.Thread.run(Thread.java:748)

【问题讨论】:

    标签: windows out-of-memory ignite


    【解决方案1】:

    问题通过配置文件中的 sn-p 解决

        <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>
    

    【讨论】:

    • 该配置的哪一部分解决了您的问题?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-07
    • 2015-04-05
    • 1970-01-01
    • 2017-04-10
    • 1970-01-01
    相关资源
    最近更新 更多