There is an issue with the Artifactory startup scripts, whereby if "CATALINA_OPTS" is declared somewhere, it will fail to start.
1. Install Artifactory RPM installation.
2. In $ARTIFACTORY_HOME/etc/default export something to "CATALINA_OPTS", for example:
export CATALINA_OPTS=" -Xms2g -Xmx12g -Xss256k"
3. Start Artifactory.
Artifactory will fail to start with the below errors:
2019-05-12 08:40:05,945 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:96) - Application could not be initialized: Timed out waiting for join.key file to be made available at /var/opt/jfrog/artifactory/etc/security/join.key
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.security.access.AccessService'.; nested exception is java.lang.IllegalStateException: Timed out waiting for join.key file to be made available at /var/opt/jfrog/artifactory/etc/security/join.key
Caused by: java.lang.IllegalStateException: Timed out waiting for join.key file to be made available at /var/opt/jfrog/artifactory/etc/security/join.key
In the export of "CATALINA_OPTS", it should append to existing "CATALINA_OPTS":
export CATALINA_OPTS="$CATALINA_OPTS -Xms2g -Xmx12g -Xss256k"