Please help optimize my Ubuntu Linux vanilla Minecraft server!

Araedon

Honorable
Jan 25, 2014
1
0
10,510
Posted the following on the Minecraft forums but I've gotten no replies.

I guess I'll start at the beginning. I got into Minecraft when it was still somewhat new and have been playing ever since. A friend of mine had a server he wasn't using at his house and we decided to start our own server. Playing on the server experienced some block lag but with about three people on the server it wasn't obscene. With three people on the server block and entity lag has gotten almost impossible for someone outside of the LAN to play. Even on a desktop connecting over the LAN I get horrible entity lag. The block lag is nonexistant for me however. Things have changed over time so I won't go into the old settings or connections. Below is the relevant info for the server I'm running now. I don't expect to have more than 5 people on the server at any one time so please help me out. Everything I've tried has not worked. I've tried adding the Xincgc lines, I've tried to allocate more RAM, I'm thinking of trying to connect the server directly to the primary router. This is just a hobby but any constructive advice would be appreciated. I had a massive memory leak previously but that was fixed with a Java update. Now the server doesn't seem to ever go over 700 MB RAM used and usually sits much lower around 500 MB. I get the standard "Can't keep up" message on the server interface at over 5000ms at some times. I like having the gui up also. Would that really have that much impact if I were to turn off the GUI?

SuperMicro server with the following hardware (Old I know but it's what I have):
Dual Intel Xeon 3.06 GHz processors, 32 bit.
4GB of DDR 266 MHz RAM.
Two Western Digital 500GB hard drives.
One Broadcom NetXtreme BCM5702X Gigabit Ethernet adapter.
Onboard graphics card with VGA connection to a monitor.
Ubuntu Linux 32 bit server at the most recent version.
Ubuntu desktop installed but I can probably remove that part if necessary.
Java at the most recent version.
I also have Samba set up and sharing out some files off of the secondary hard drive but we hardly ever use that feature.

Comms (What I can afford):
I have internet at 15M down and 3M up.
My cable modem is connected to my router which has wireless N and 4 Gigabit ethernet ports.
My router is connected to a second router acting as a 100M switch with all other features turned off.
That secondary router is connected to my server.
The server is port forwarded on the initial router.
I have a dynamic dns set up through my initial router.

I'm running a standard linux startup script as follows:
java -Xmx2048M -Xms2048M -jar minecraft.jar