Skip to content

Instantly share code, notes, and snippets.

@alzabo
Created June 10, 2020 15:15
Show Gist options
  • Save alzabo/e45b830af29337cd72055e4f7f52f20c to your computer and use it in GitHub Desktop.
Save alzabo/e45b830af29337cd72055e4f7f52f20c to your computer and use it in GitHub Desktop.
#!/bin/sh
#Default values
export ARTIFACTORY_HOME=/var/opt/jfrog/artifactory
export ARTIFACTORY_USER=artifactory
#export JAVA_HOME=/opt/java/1.8.0
#export START_LOCAL_REPLICATOR=true
#export START_LOCAL_MDS=true
#export START_LOCAL_ROUTER=true
export TOMCAT_HOME=/opt/jfrog/artifactory/tomcat
export ARTIFACTORY_PID=/var/opt/jfrog/run/artifactory.pid
export JAVA_OPTIONS="-server -Xms2g -Xmx4g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=\"kill -9 %p\""
export JAVA_OPTIONS="$JAVA_OPTIONS -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=rpm -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/./urandom"
# Timeout waiting for artifactory to start
# START_TMO=60
export JAVA_OPTIONS="-server -Xms2g -Xmx14g -Xss256k -'XX:+UseG1GC' -XX:OnOutOfMemoryError=\"kill -9 %p\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment