Browse Source

make sure we run in headless mode
applies mainly to the attachments (tika) plugin

Shay Banon 13 years ago
parent
commit
d5b84bb81b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bin/elasticsearch.in.sh

+ 3 - 0
bin/elasticsearch.in.sh

@@ -28,6 +28,9 @@ fi
 # reduce the per-thread stack size
 JAVA_OPTS="$JAVA_OPTS -Xss256k"
 
+# set to headless, just in case
+JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
+
 # Force the JVM to use IPv4 stack
 # JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"