Skip to content

Instantly share code, notes, and snippets.

View 64bitjava's full-sized avatar
🙃
Making Memes Into Dreams

Zero 64bitjava

🙃
Making Memes Into Dreams
View GitHub Profile
@64bitjava
64bitjava / aac-config.yml
Created September 6, 2019 10:05
AAC v4.1.8 (GHOST CONFIG ONLY)
# WARNING: Config REQUIRES the following plugins in order to function:
# - AACplus
# - Conditional Commands
# || FAKE ERROR NUMBER KEY || #
# These 3-digit numbers appear at the end of each kick message so you can identify the detection without reviewing logs.
### 401 - Criticals
### 402 - FastBow
### 403 - FastUse
### 404 - FightSpeed
@64bitjava
64bitjava / tmux-cheatsheet.markdown
Created June 23, 2018 19:51 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Installing Grafana

curl https://packagecloud.io/gpg.key | sudo apt-key add -
add-apt-repository "deb https://packagecloud.io/grafana/stable/debian/ stretch main"
apt-get update
apt-cache policy grafana
apt-get install grafana
systemctl start grafana-server
systemctl enable grafana-server
[config]
name = [GenisysSpigot] 1.8.8 - 32GB
source = https://da.nkestme.me/minecraft/jars/GenisysSpigot-1.8.8.jar
[encoding]
encode = utf-8
decode = utf-8
fileEncoding = latin-1
[start]
[config]
name = PaperSpigot-latest.jar
source = https://yivesmirror.com/files/paperspigot/PaperSpigot-latest.jar
[encoding]
encode = utf-8
decode = utf-8
fileEncoding = latin-1
[start]
command = "{JAVA}" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -Dusing.aikars.flags=mcflags.emc.gs -jar "{JAR}" nogui

Getting started

A lot of people are running just a single server on each of their machines. This is a big waste as Minecraft is primarily single-threaded, meaning it uses one of the system's cores. Most servers these days have four or more cores, so that's a waste of almost 75% of the server! On top of this, the CPU is, by far, the most important resource for hosting Minecraft servers, which brings us on to the next segment:

The CPU

So, get your calculators out and begin mathing. We'll be using OVH's MC-32 machine as an example, which runs an i7-4790K at (currently) ~ $80.

First, check how many players the CPU can run (assuming no other hardware bottlenecks).

Keybase proof

I hereby claim:

  • I am 64BitJava on github.
  • I am 64bitjava (https://keybase.io/64bitjava) on keybase.
  • I have a public key whose fingerprint is 81A7 D008 EB80 5C9E F2D3 8C4B 7245 160B 3D99 EE18

To claim this, I am signing this object: