Skip to content

Commit

Permalink
Fixed issue orientechnologies#1322 adding -Djava.awt.headless=true to…
Browse files Browse the repository at this point in the history
… all .bat and -sh
  • Loading branch information
lvca committed May 10, 2013
1 parent 77bcad4 commit 56bce13
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion distributed/script/aserver.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ set LOG_FILE_LEVEL=fine
set WWW_PATH=%ORIENTDB_HOME%/www
REM UNCOMMENT BELOW TO DISABLE THE CACHE
set ORIENTDB_SETTINGS=-Dprofiler.enabled=true -Dcache.level1.enabled=false -Dcache.level2.strategy=1
set JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError
set JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true

call %JAVA% -server %JAVA_OPTS% %JAVA_OPTS_SCRIPT% %ORIENTDB_SETTINGS% -Djava.util.logging.config.file="%LOG_FILE%" -Dorientdb.config.file="%CONFIG_FILE%" -Dorientdb.www.path="%WWW_PATH%" -Dorientdb.build.number="@BUILD@" -cp "%ORIENTDB_HOME%\lib\*;" com.orientechnologies.orient.server.OServerMain %CMD_LINE_ARGS%

Expand Down
2 changes: 1 addition & 1 deletion distributed/script/aserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ LOG_FILE_LEVEL=fine
WWW_PATH=$ORIENTDB_HOME/www
#UNCOMMENT BELOW TO DISABLE THE CACHE
ORIENTDB_SETTINGS=-Dcache.level1.enabled=false
JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError
JAVA_OPTS_SCRIPT="-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true"

java -server $JAVA_OPTS $JAVA_OPTS_SCRIPT $ORIENTDB_SETTINGS -Djava.util.logging.config.file="$LOG_FILE" -Dorientdb.config.file="$CONFIG_FILE" -Dorientdb.www.path="$WWW_PATH" -Dorientdb.build.number="@BUILD@" -cp "$ORIENTDB_HOME/lib/orientdb-server-@[email protected]:$ORIENTDB_HOME/lib/*" com.orientechnologies.orient.server.OServerMain
2 changes: 1 addition & 1 deletion distributed/script/dserver.bat
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ set LOG_FILE_LEVEL=fine
set WWW_PATH=%ORIENTDB_HOME%/www
REM UNCOMMENT BELOW TO DISABLE THE CACHE
set ORIENTDB_SETTINGS=-Dprofiler.enabled=true -Dcache.level1.enabled=false -Dcache.level2.strategy=1
set JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError
set JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true

call %JAVA% -server %JAVA_OPTS% %JAVA_OPTS_SCRIPT% %ORIENTDB_SETTINGS% -Djava.util.logging.config.file="%LOG_FILE%" -Dorientdb.config.file="%CONFIG_FILE%" -Dorientdb.www.path="%WWW_PATH%" -Dorientdb.build.number="@BUILD@" -cp "%ORIENTDB_HOME%\lib\*;" com.orientechnologies.orient.server.OServerMain %CMD_LINE_ARGS%

Expand Down
2 changes: 1 addition & 1 deletion distributed/script/dserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ LOG_FILE_LEVEL=fine
WWW_PATH=$ORIENTDB_HOME/www
#UNCOMMENT BELOW TO DISABLE THE CACHE
ORIENTDB_SETTINGS=-Dcache.level1.enabled=false
JAVA_OPTS_SCRIPT=-XX:+HeapDumpOnOutOfMemoryError
JAVA_OPTS_SCRIPT="-XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true"

java -server $JAVA_OPTS $JAVA_OPTS_SCRIPT $ORIENTDB_SETTINGS -Djava.util.logging.config.file="$LOG_FILE" -Dorientdb.config.file="$CONFIG_FILE" -Dorientdb.www.path="$WWW_PATH" -Dorientdb.build.number="@BUILD@" -cp "$ORIENTDB_HOME/lib/orientdb-server-@[email protected]:$ORIENTDB_HOME/lib/*" com.orientechnologies.orient.server.OServerMain
2 changes: 1 addition & 1 deletion graphdb/script/console.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ goto setArgs

:doneSetArgs

set ORIENTDB_SETTINGS=-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=%ORIENTDB_HOME%\config\orientdb-client-log.properties
set ORIENTDB_SETTINGS=-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=%ORIENTDB_HOME%\config\orientdb-client-log.properties -Djava.awt.headless=true
call %JAVA% -client %ORIENTDB_SETTINGS% -Dfile.encoding=utf-8 -Dorientdb.build.number="@BUILD@" -cp "%ORIENTDB_HOME%\lib\*;" com.orientechnologies.orient.graph.console.OGremlinConsole %CMD_LINE_ARGS%

:end
2 changes: 1 addition & 1 deletion graphdb/script/console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PRGDIR=`dirname "$PRG"`
[ -f "$ORIENTDB_HOME"/lib/orientdb-tools-@[email protected] ] || ORIENTDB_HOME=`cd "$PRGDIR/.." ; pwd`
export ORIENTDB_HOME

ORIENTDB_SETTINGS="-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=$ORIENTDB_HOME/config/orientdb-client-log.properties"
ORIENTDB_SETTINGS="-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=$ORIENTDB_HOME/config/orientdb-client-log.properties -Djava.awt.headless=true"
#JAVA_OPTS=-Xmx1024m

java -client $JAVA_OPTS $ORIENTDB_SETTINGS -Dfile.encoding=utf-8 -Dorientdb.build.number="@BUILD@" -cp "$ORIENTDB_HOME/lib/orientdb-tools-@[email protected]:$ORIENTDB_HOME/lib/*" com.orientechnologies.orient.graph.console.OGremlinConsole $*
Binary file removed server/script/server.exe
Binary file not shown.
11 changes: 0 additions & 11 deletions server/script/server.ini

This file was deleted.

2 changes: 1 addition & 1 deletion server/script/shutdown.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if NOT exist "%CONFIG_FILE%" set CONFIG_FILE=%ORIENTDB_HOME%/config/orientdb-ser
set LOG_FILE=%ORIENTDB_HOME%/config/orientdb-server-log.properties
set LOG_LEVEL=warning
set WWW_PATH=%ORIENTDB_HOME%/www
REM set JAVA_OPTS=-Xms1024m -Xmx1024m
set JAVA_OPTS=-Djava.awt.headless=true

call %JAVA% -client %JAVA_OPTS% -Dorientdb.config.file="%CONFIG_FILE%" -cp "%ORIENTDB_HOME%\lib\orientdb-tools-@[email protected];%ORIENTDB_HOME%\lib\*" com.orientechnologies.orient.server.OServerShutdownMain %CMD_LINE_ARGS%

Expand Down
2 changes: 1 addition & 1 deletion server/script/shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi
LOG_FILE=$ORIENTDB_HOME/config/orientdb-server-log.properties
LOG_LEVEL=warning
WWW_PATH=$ORIENTDB_HOME/www
#JAVA_OPTS=-Xms1024m -Xmx1024m
JAVA_OPTS=-Djava.awt.headless=true

java -client $JAVA_OPTS -Dorientdb.config.file="$CONFIG_FILE" -cp "$ORIENTDB_HOME/lib/orientdb-tools-@[email protected]:$ORIENTDB_HOME/lib/*" com.orientechnologies.orient.server.OServerShutdownMain $*

Expand Down
2 changes: 1 addition & 1 deletion tools/script/console.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ goto setArgs

:doneSetArgs

set ORIENTDB_SETTINGS=-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=%ORIENTDB_HOME%\config\orientdb-client-log.properties
set ORIENTDB_SETTINGS=-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=%ORIENTDB_HOME%\config\orientdb-client-log.properties -Djava.awt.headless=true
call %JAVA% -client %ORIENTDB_SETTINGS% -Dfile.encoding=utf-8 -Dorientdb.build.number="@BUILD@" -cp "%ORIENTDB_HOME%\lib\*;" com.orientechnologies.orient.console.OConsoleDatabaseApp %CMD_LINE_ARGS%

:end
2 changes: 1 addition & 1 deletion tools/script/console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PRGDIR=`dirname "$PRG"`
[ -f "$ORIENTDB_HOME"/lib/orientdb-tools-@[email protected] ] || ORIENTDB_HOME=`cd "$PRGDIR/.." ; pwd`
export ORIENTDB_HOME

ORIENTDB_SETTINGS="-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=$ORIENTDB_HOME/config/orientdb-client-log.properties"
ORIENTDB_SETTINGS="-Dcache.level1.enabled=false -Dcache.level2.enabled=false -Djava.util.logging.config.file=$ORIENTDB_HOME/config/orientdb-client-log.properties -Djava.awt.headless=true"
#JAVA_OPTS=-Xmx1024m

java -client $JAVA_OPTS $ORIENTDB_SETTINGS -Dfile.encoding=utf-8 -Dorientdb.build.number="@BUILD@" -cp "$ORIENTDB_HOME/lib/orientdb-tools-@[email protected]:$ORIENTDB_HOME/lib/*" com.orientechnologies.orient.console.OConsoleDatabaseApp $*

0 comments on commit 56bce13

Please sign in to comment.