Hi there,
I'm running a small private Minecraft server for about 10 players and since a couple of weeks we are experiencing a very low TPS rate (~3-0.5) without having massive lag machines or animal farms on the server (at least I didn't find any).
I have profiled the server with VisualVM and WarmRoast and it seems that ComputerCraft is eating a lot of CPU time for doing basically nothing except running the Direwolf20 Reactor Control program (which we already modified to use a 5 second sleep in the main loop).
I've also looked at the GC and noticed that it was going absoultely nuts at 40-60% every 2 seconds or so.
A simple solution to this was to increase the initial allocated heap to 3 gigb instead of one (we have a heap cap at 4 gig fyi). The profiling also showed that CC is spawning way too many threads for about 5 computers on the server.
(they are just hibernating but its strange anyway)
Some other profiling data (imgur because the mass of images floods the thread)
After finding the source of the lag (at least i thought so) I removed CC and all mods that are depending on CC (OpenPeripheral+Addons) and suddenly one tick needed just ~55ms instead of 200. The problem is, that my mates and me love CC and don't want to miss it so there needs to be a fix for this.
The rest of the tick time seems to get eaten up by chunk processing (the server calls nbttag write fairly often).
So, does anybody know a fix / some optimization for this mess? Support is very much appreciated.
Server specs:
I'm running a small private Minecraft server for about 10 players and since a couple of weeks we are experiencing a very low TPS rate (~3-0.5) without having massive lag machines or animal farms on the server (at least I didn't find any).
I have profiled the server with VisualVM and WarmRoast and it seems that ComputerCraft is eating a lot of CPU time for doing basically nothing except running the Direwolf20 Reactor Control program (which we already modified to use a 5 second sleep in the main loop).
I've also looked at the GC and noticed that it was going absoultely nuts at 40-60% every 2 seconds or so.
A simple solution to this was to increase the initial allocated heap to 3 gigb instead of one (we have a heap cap at 4 gig fyi). The profiling also showed that CC is spawning way too many threads for about 5 computers on the server.
(they are just hibernating but its strange anyway)
Some other profiling data (imgur because the mass of images floods the thread)
After finding the source of the lag (at least i thought so) I removed CC and all mods that are depending on CC (OpenPeripheral+Addons) and suddenly one tick needed just ~55ms instead of 200. The problem is, that my mates and me love CC and don't want to miss it so there needs to be a fix for this.
The rest of the tick time seems to get eaten up by chunk processing (the server calls nbttag write fairly often).
So, does anybody know a fix / some optimization for this mess? Support is very much appreciated.
Server specs:
- Debian 7.1 64 Bit
- Java 7 u75 64 Bit
- Java Parameter from here
- 4 Gig Max Heap, 3 Initial
- Server in a tmpfs RAM disk
- Swapping set to 0 to reduce silly ramdisk caching
- TCP/UDP Buffers edited to fit large traffic applications ( --> )
- Hardware:
- HP ProLiant DL585 G2
- 4xAMD Operton Quad Core @ 2,4 GHz
- 24 Gigb RAM
- Some junky hdd (doesn't matter anyway)
- Server is sitting at my place with 50.000 Internet Connection + Extra Upload speed package
- Direwolf20 1.7.10
- Forge (No Cauldron) 1291
- Added mods:
- Reika's Mods: DragonAPI, RotaryCraft, ReactorCraft, ElectriCraft, GeoStrata
- Enchanting Plus
- Equivalent Exchange 3
- FastCraft
- Funky Locomotion
- Legendsgear
- Power Suits Numina
- Solar Flux
- every mod is updated to the last stable version
- Removed Mods:
- AromaBackup + Core
- MineMenu
Last edited: