OrientDB Update运行到JVM内存问题'无法分配内存'

时间:2016-04-28 12:52:31

标签: java jvm orientdb openjdk

我刚刚将 OrientDB 更新为最新版本。所以我只是使用完整的文件夹来测试它而没有我的自定义设置。然后我尝试用:

启动新版本
sh server.sh

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e04a0000, 357957632, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 357957632 bytes for committing reserved memory.

# An error report file with more information is saved as:
# /home/ubuntu/orientdb/bin/hs_err_pid1885.log

但正如您所看到的那样,JVM存在问题。有记忆的东西。但我没有改变任何设置。那怎么会这样呢?

我也无法在我的系统上设置一些自定义Java设置。有办法检查吗?

我改变了什么

<properties>
        <!-- DATABASE POOL: size min/max -->
        <entry name="db.pool.min" value="1"/>
        <entry name="db.pool.max" value="50"/>

        <!-- PROFILER: configures the profiler as <seconds-for-snapshot>,<archive-snapshot-size>,<summary-size> -->
        <entry name="profiler.enabled" value="true"/>
        <!-- <entry name="profiler.config" value="30,10,10" /> -->

        <!-- LOG: enable/Disable logging. Levels are: finer, fine, finest, info,
            warning -->
        <entry name="log.console.level" value="info"/>
        <entry name="log.file.level" value="fine"/>

        <!-- Memory -->
        <entry name="memory.chunk.size" value="‭20971520‬"/>
    </properties>

1 个答案:

答案 0 :(得分:4)

您应该将sever.sh中的一行从document.querySelector('#button1').addEventListener('click', function() { var element = document.querySelector('#element1'); element.doSomething(); }); document.querySelector('#button2').addEventListener('click', function() { var element = document.querySelector('#element2'); element.doSomething(); }); 更改为ORIENTDB_OPTS_MEMORY="-Xms512m -Xmx512m"