configuration of Xmx in server.bat is given below.

:doneSetArgs

if NOT exist "%CONFIG_FILE%" set 
CONFIG_FILE=%ORIENTDB_HOME%/config/orientdb-server-config.xml

set LOG_FILE=%ORIENTDB_HOME%/config/orientdb-server-log.properties
set WWW_PATH=%ORIENTDB_HOME%/www
set ORIENTDB_SETTINGS=-Dprofiler.enabled=true
set JAVA_OPTS_SCRIPT=-Xmx6g -Djna.nosys=true 
-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true 
-Dfile.encoding=UTF8 -Drhino.opt.level=9

rem ORIENTDB MAXIMUM HEAP. USE SYNTAX -Xmx<memory>, WHERE <memory> HAS THE 
TOTAL MEMORY AND SIZE UNIT. EXAMPLE: -Xmx512m
set MAXHEAP=-Xmx6g
rem ORIENTDB MAXIMUM DISKCACHE IN MB, EXAMPLE 8192 FOR 8GB
set MAXDISKCACHE=-Dstorage.diskCache.bufferSize=40960

call %JAVA% -server %JAVA_OPTS% %MAXHEAP% %JAVA_OPTS_SCRIPT% 
%ORIENTDB_SETTINGS% %MAXDISKCACHE% 
-Djava.util.logging.config.file="%LOG_FILE%" 
-Dorientdb.config.file="%CONFIG_FILE%" -Dorientdb.www.path="%WWW_PATH%" 
-Dorientdb.build.number="UNKNOWN@r${buildNumber}; 2015-01-28 18:33:00+0000" 
-cp "%ORIENTDB_HOME%\lib\*;" %CMD_LINE_ARGS% 
com.orientechnologies.orient.server.OServerMain



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to