Optimizing a server for Minecraft + PHP (Hardcore | WIP)

JerseyFoo

1/g = g-1
Reaction score
40
I have a bit of an obsession with optimization; this time I decided to document everything. Feel free to criticize and suggest :D

PHP:
# Filesystem
vi /etc/fstab 
(after "LABEL=/  ", change "defaults" after  to "defaults,noatime,nodiratime,commit=120")    #changing writeback locks system

# Shut off firewalls
service iptables save
service iptables stop
chkconfig iptables off

service ip6tables save
service ip6tables stop
chkconfig ip6tables off

vi /etc/selinux/config
(change "SELINUX=enforcing" to "SELINUX=disabled"; see 'using vi' below)

# Reduce logs 
vi /etc/syslog.conf
(add dashes)
service syslog restart

# ... or shut them off completely?
service syslog stop 
chkconfig syslog off 

# Services I no want
service auditd stop
service cpuspeed stop
service cups stop
service gpm stop
service hidd stop
service irqbalance stop
service pand stop
service pcscd stop
service yum-updatesd off
service irda stop
service mcstrans stop
chkconfig auditd off
chkconfig cpuspeed off
chkconfig cups off
chkconfig gpm off
chkconfig hidd off
chkconfig irqbalance off
chkconfig pand off
chkconfig pcscd off
chkconfig yum-updatesd off
chkconfig irda off
chkconfig mcstrans off

# NFS
service nfslock stop
service rpcidmapd stop
service portmap stop
service nfs stop
service netfs stop
chkconfig nfslock off
chkconfig rpcidmapd off
chkconfig portmap off
chkconfig nfs off
chkconfig netfs off

PHP:
# minecraft boot string
~/jre1.7.0/bin/java -server -Xms12228M -Xmn3072M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -Xnoclassgc -XX:SurvivorRatio=16 -jar ~/minecraft/bukkit.jar nogui

# considering using canary over bukkit

Still looking into...
PHP:
# Hardcore network optimization
vi /etc/sysctl.conf
(need to increase tcp buffer memory; suggestions?)

# Re-compile kernel?

# Re-compile everything without taking forever?

# List of yum installed programs I don't need?
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,677
For the last part, I don't think so. Notch added some network optimizing bugfixes to the server. (Current version 1.6.4)

So you do this:

Notepad -> server.properties -> view-distance -> Set it to "3".

And that's it.
 

JerseyFoo

1/g = g-1
Reaction score
40
For the last part you mean "Hardcore network optimization"?

view-distance won't affect latency on a unloaded server.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top