Spaces:
Running
Running
Commit
·
5f03b24
1
Parent(s):
4a365db
Update start.sh
Browse files
start.sh
CHANGED
@@ -1,3 +1,16 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Add your ngrok authtoken (only needed once, comment this out after the first run)
|
4 |
+
./ngrok config add-authtoken $(cat token.txt)
|
5 |
+
|
6 |
+
# Start ngrok TCP tunnel for port 7860 in the background
|
7 |
+
./ngrok tcp 7860 > /dev/null &
|
8 |
+
|
9 |
+
# Start Minecraft server
|
10 |
+
java -Xmx14336M -Xms14336M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 \
|
11 |
+
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 \
|
12 |
+
-XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 \
|
13 |
+
-XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 \
|
14 |
+
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem \
|
15 |
+
-XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcflags.emc.gs \
|
16 |
+
-jar purpur.jar --nogui
|