mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-10-01 20:53:00 +00:00
13 lines
819 B
Bash
Executable file
13 lines
819 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# The alive checker and Minecraft server is started at the same time. For performance reasons, the
|
|
# OpenJ9 JVM is used instead of Java's default Hotspot JVM.
|
|
|
|
chmod -R 500 $HOME/plugins/bStats/ $HOME/plugins/PluginMetrics/
|
|
dtach -n alivecheck 'sh -x $HOME/script/alivecheck.sh'
|
|
|
|
while true; do
|
|
java -Xmx384M -Xtune:virtualized -Xaggressive -Xcompressedrefs -Xdump:none -Xgc:concurrentScavenge -Xgc:dnssExpectedTimeRatioMaximum=3 -Xgc:scvNoAdaptiveTenure -Xdisableexplicitgc -Xshareclasses -Xshareclasses:noPersistentDiskSpaceCheck -XX:-HeapDumpOnOutOfMemoryError -XX:OnOutofMemoryError="pkill -9 java" -XX:MaxDirectMemorySize=64M -XX:+UseContainerSupport -XX:+ClassRelationshipVerifier -Dpaper.playerconnection.keepalive=360 -DIReallyKnowWhatIAmDoingISwear -jar server.jar --world-dir=worlds
|
|
sleep 1
|
|
done
|