Created
August 6, 2015 18:05
-
-
Save urlgrey/98af20ce0e3104a80ffd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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