Jump to content

[Support] Minecraft-Server


TQ

Recommended Posts

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.

Link to comment

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

Link to comment
  • 2 weeks later...
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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...