簡體   English   中英

OrientDB更新遇到JVM內存問題“無法分配內存”

[英]OrientDB Update runs into JVM memory issue 'Cannot allocate memory'

我剛剛將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>

您應該將sever.sh中的一行從ORIENTDB_OPTS_MEMORY="-Xms512m -Xmx512m"更改為ORIENTDB_OPTS_MEMORY="-Xms128m -Xmx256m"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM