如何在Ubuntu 16.04中的ORIENTDB中配置MaxDirectMemorySize JVM选项?

时间:2018-11-03 13:45:33

标签: java ubuntu ubuntu-16.04 orientdb

我尝试使用ycsb加载和运行数据,但是在配置MaxDirectMemorySize JVM选项时遇到问题。有人可以帮我吗?

INFO: OrientDB auto-config DISKCACHE=852MB (heap=852MB direct=852MB os=3,831MB), assuming maximum direct memory size equals to maximum JVM heap size
Oct 25, 2018 7:58:26 PM com.orientechnologies.common.log.OLogManager log
WARNING: MaxDirectMemorySize JVM option is not set or has invalid value, that may cause out of memory errors. Please set the -XX:MaxDirectMemorySize=3831m option when you start the JVM.

这是我使用ubuntu 16.04在server.sh中的文件

ORIENTDB内存选项,默认为2GB堆。

if [ -z “$ORIENTDB_OPTS_MEMORY” ] ; then
ORIENTDB_OPTS_MEMORY="-Xms2G -Xmx2G"
fi

if [ -z "JAVA_OPTS_SCRIPT" ] ; then JAVA_OPTS_SCRIPT="-Djna.nosys=true -XX:+HeapDumpOnOutOfMemoryError
fi
ORIENTDB SETTINGS LIKE DISKCACHE, ETC

if [ -z “$ORIENTDB_SETTINGS” ]; then
ORIENTDB_SETTINGS="" # HERE YOU CAN PUT YOUR DEFAULT SETTINGS
fi

0 个答案:

没有答案