Skip to content

Instantly share code, notes, and snippets.

@urlgrey
Created August 6, 2015 18:05
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/98af20ce0e3104a80ffd to your computer and use it in GitHub Desktop.
Save urlgrey/98af20ce0e3104a80ffd to your computer and use it in GitHub Desktop.
diff --git a/bin/server_start.sh b/bin/server_start.sh
index 5598ebd..c6e017a 100755
--- a/bin/server_start.sh
+++ b/bin/server_start.sh
@@ -15,13 +15,13 @@ get_abs_script_path
GC_OPTS="-XX:+UseConcMarkSweepGC
-verbose:gc -XX:+PrintGCTimeStamps -Xloggc:$appdir/gc.out
- -XX:MaxPermSize=512m
+ -XX:MaxPermSize=2048m
-XX:+CMSClassUnloadingEnabled "
# To truly enable JMX in AWS and other containerized environments, also need to set
# -Djava.rmi.server.hostname equal to the hostname in that environment. This is specific
# 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 \
@@ -75,7 +75,7 @@ if [ "$PORT" != "" ]; then
fi
if [ -z "$DRIVER_MEMORY" ]; then
- DRIVER_MEMORY=1G
+ DRIVER_MEMORY=2G
fi
# This needs to be exported for standalone mode so drivers can connect to the Spark cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment