TQ Posted May 4 Author Share Posted May 4 On 5/3/2024 at 3:15 PM, Lugnut said: How do I set a minimum value in the docker settings? When I first set the container up I set the value to 8G, I want it to fluctuate and not be constantly at that value. Simply change the MEMORY environment value to the value you want. Quote Link to comment
Super67 Posted May 9 Share Posted May 9 Any help is appreciated. I have everything (mostly) working. I am running a forge setup that is modded it is currently in survival. I know nothing about Minecraft. My kids want to use /gamemode to switch modes from the client. I added them as OPS but the OPS.JSON is overwritten on restart. Can I use /gamemode in docker? What settings do I need to change? #Minecraft server properties #Wed May 08 22:19:14 EDT 2024 allow-flight=false allow-nether=true broadcast-console-to-ops=true broadcast-rcon-to-ops=true difficulty=easy enable-command-block=true enable-jmx-monitoring=false enable-query=false enable-rcon=true enable-status=true enforce-secure-profile=true enforce-whitelist=false entity-broadcast-range-percentage=100 force-gamemode=false function-permission-level=2 gamemode=survival generate-structures=true generator-settings={} hardcore=false hide-online-players=false initial-disabled-packs= initial-enabled-packs=vanilla level-name=world level-seed= level-type=minecraft\:normal max-chained-neighbor-updates=1000000 max-players=20 max-tick-time=60000 max-world-size=29999984 motd=My Unraid Minecraft Server network-compression-threshold=256 online-mode=true op-permission-level=4 player-idle-timeout=0 prevent-proxy-connections=false pvp=true query.port=25565 rate-limit=0 rcon.password=xxxxxxxxx rcon.port=25575 require-resource-pack=false resource-pack= resource-pack-prompt= resource-pack-sha1= server-ip= server-port=25565 simulation-distance=10 snooper-enabled=true spawn-animals=true spawn-monsters=true spawn-npcs=true spawn-protection=16 sync-chunk-writes=true text-filtering-config= use-native-transport=true view-distance=10 white-list=false Quote Link to comment
TQ Posted May 10 Author Share Posted May 10 Full docs are here for use in docker. Quote Link to comment
Lugnut Posted May 24 Share Posted May 24 On 5/4/2024 at 6:07 PM, TQ said: Simply change the MEMORY environment value to the value you want. When I enter 8G into the MEMORY environment, my server constantly uses 8GB of ram, even if no one is online. Is there a way to have it be set to minimum use say, 2GB and never go above 8? So that it can fluctuate and not take so much of my servers resources even if it's not in use. Typically on a windows environment you could make a .bat file that would have "java -Xmx8192M -Xms2048M" inside and that would signify the maximum is 8gb and the minimum is two. Quote Link to comment
TQ Posted May 25 Author Share Posted May 25 On 5/3/2024 at 3:15 PM, Lugnut said: How do I set a minimum value in the docker settings? When I first set the container up I set the value to 8G, I want it to fluctuate and not be constantly at that value. Check the MEMORY section in the docs, here https://github.com/itzg/docker-minecraft-server/raw/e6b525a65cc930264655894e9ff81562c63840c4/docs/configuration/jvm-options.md Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.