nimmis/docker-spigot

Specific Additional Java Opts

ssshake opened this issue · 2 comments

Hi it appears that you abstract the java opts such as xmx. I want to pass in some custom arguments. Could you explain how to properly do that with your image?

These are what I'm trying to do:

-XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=4M -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts

@ssshake if I'm reading the code right, you aught to be able to inject them right here:

MC_JAVA_OPS="-Xmx$MC_MAXMEM -Xms$MC_MINMEM" # java options for minecraft server

implemented, use -e OTHER_JAVA_OPS=