Skip to content

Commit

Permalink
Updated JVM memory settings in archivesspace.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyu95 committed Nov 30, 2021
1 parent 42f4aa4 commit 5c5f153
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions launcher/archivesspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ function readlink_dash_f {
return 0
}



# Set JVM memory settings
export ASPACE_JAVA_XMX="-Xms8192m -Xmx16384m"
export ASPACE_JAVA_XSS="-Xss64m"

cd "`dirname $0`"

Expand Down Expand Up @@ -98,15 +99,15 @@ export JAVA_OPTS="-Darchivesspace-daemon=yes $JAVA_OPTS -Djava.security.egd=file
export JAVA_OPTS="`echo $JAVA_OPTS | sed 's/\([#&;\`|*?~<>^(){}$\,]\)/\\\\\1/g'`"

if [ "$ASPACE_JAVA_XMX" = "" ]; then
ASPACE_JAVA_XMX="-Xmx1024m"
ASPACE_JAVA_XMX="-Xms8192m -Xmx16384m"
fi

if [ "$ASPACE_JAVA_XSS" = "" ]; then
ASPACE_JAVA_XSS="-Xss2m"
ASPACE_JAVA_XSS="-Xss64m"
fi

if [ "$ASPACE_GC_OPTS" = "" ]; then
ASPACE_GC_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:NewRatio=1"
ASPACE_GC_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:NewRatio=1 -XX:ReservedCodeCacheSize=256m"
fi


Expand Down

0 comments on commit 5c5f153

Please sign in to comment.