How to configure MaxDirectMemorySize JVM option in ORIENTDB in Ubuntu 16.04?


#1

Hello everyone i try load & run data using ycsb but i have problem with configure MaxDirectMemorySize JVM option. can someone help me?

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

This is my server.sh

ORIENTDB memory options, default to 2GB of heap.

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


#2

Hi,

Which OrientDB version are you using?

Thanks

Luigi


#3

I’m using OrientDB Enterprise Edition-3.0.7 sir

what is the difference between orientdb enterprise and community edition?

I want to load and run data from YCSB, https://github.com/brianfrankcooper/YCSB
what version of orientdb should I use? version of community or enterprise ?