Skip to content

Instantly share code, notes, and snippets.

@urlgrey
Created August 9, 2015 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urlgrey/0e0bf6253581888d8e52 to your computer and use it in GitHub Desktop.
Save urlgrey/0e0bf6253581888d8e52 to your computer and use it in GitHub Desktop.
diff --git a/bin/server_start.sh b/bin/server_start.sh
index fd4f492..e5b6b9f 100755
--- a/bin/server_start.sh
+++ b/bin/server_start.sh
@@ -26,7 +26,7 @@ GC_OPTS="-XX:+UseConcMarkSweepGC
# To truly enable JMX in AWS and other containerized environments, also need to
# -Djava.rmi.server.hostname equal to the hostname in that environment. This i
# depending on AWS vs GCE etc.
-JAVA_OPTS="-XX:MaxDirectMemorySize=512M \
+JAVA_OPTS="-XX:MaxDirectMemorySize=2048M \
-XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true \
-Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.rmi.port=9999 \
@@ -84,7 +84,7 @@ if [ "$PORT" != "" ]; then
fi
if [ -z "$JOBSERVER_MEMORY" ]; then
- JOBSERVER_MEMORY=1G
+ JOBSERVER_MEMORY=2G
fi
# This needs to be exported for standalone mode so drivers can connect to the S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment