Skip to content

Commit

Permalink
Remove Timezone editor for Java JRE images
Browse files Browse the repository at this point in the history
  • Loading branch information
hwalker928 authored Aug 9, 2023
1 parent 0ebd136 commit 36fb283
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ if [ -n "${FORGE_VERSION}" ]; then
MODIFIED_STARTUP="java -Xms128M -Xmx${SERVER_MEMORY}M -Dterminal.jline=false -Dterminal.ansi=true @libraries/net/minecraftforge/forge/${FORGE_VERSION}/unix_args.txt"
fi

# Timezone
if [ ! "${TIMEZONE}" = "Default" ] && [ -z "${TIMEZONE_INUSE}" ] && [ ! -z "${TIMEZONE}" ]; then
MODIFIED_STARTUP=$(echo "${MODIFIED_STARTUP}" | sed -E 's/-Xmx([0-9]+)[KMG]?/& -Duser.timezone=${TIMEZONE}/')
fi

# Aikar flags
if [ "${AIKAR_FLAGS}" = 1 ]; then
MODIFIED_STARTUP=$(echo "${MODIFIED_STARTUP}" | sed -E 's/-Xmx([0-9]+)[KMG]?/& -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Daikars.new.flags=true/')
Expand Down

0 comments on commit 36fb283

Please sign in to comment.