浏览代码

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

Shay Banon 13 年之前
父节点
当前提交
d5b84bb81b
共有 1 个文件被更改,包括 3 次插入0 次删除
  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"