This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25% of the first 4GB of memory | |
20% of the next 4GB of memory (up to 8GB) | |
10% of the next 8GB of memory (up to 16GB) | |
6% of the next 112GB of memory (up to 128GB) | |
2% of any memory above 128GB | |
# Google sheets formula | |
=if(AND(J3>0,J3<=4),0.25*J3,if(J3>=4,4*0.25)+ | |
if(AND(J3>4,J3<=8),0.2*(J3-4),if(J3>=8,4*0.2)))+ | |
if(AND(J3>8,J3<=16),0.1*(J3-8),if(J3>=16,8*0.1))+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Minecraft Server | |
After=syslog.target network.target | |
[Service] | |
# Ensure to set the correct user and working directory (installation directory of your server) here | |
User=minecraft | |
WorkingDirectory=/opt/minecraft | |
# You can customize the maximum amount of memory as well as the JVM flags here |