Hello, I'm somewhat new to running my own Minecraft server, but I've also done a lot of homework and tried very hard to fix this myself.
The current problem: My server lags like mad. It spits out overloaded errors that it's 4-50 seconds behind frequently. It lags roughly the same when no one is connected as when I have 3 players connected and playing. The server ran fine when we started playing, but after about 16hrs of 2 players playing around doing stuff, the lag started and became unbearable quickly. This is also a spitting image of the MC server I set up and played with my wife for far longer, with no lag. (I installed it from scratch, then loaded up the same mods and configs.)
Server Hardware:
This is a personal server I've set up in my living room. I'll include the DirectX diagnostic file at the end for anyone who cares, but the general specs are:
Windows 10 Pro 64-bit
AMD Athlon 5350 APU with Radeon R3 (quad core, 2.1GHz)
16GB RAM
(I built as an always-on file server, so went for cheap price and low power usage :D.)
Server Config:
Version
Minecraft 1.7.10 Forge (forge-1.7.10-10.13.4.1614-1.7.10-installer.jar was the install file)
1) I've monkeyed with the JVM configuration a lot, but that had no noticeable effect. My original before the lag started was fairly simple.
2) I've tried removing the SpecialAI and weather2 mods, which are the only ones that I can remove without ripping blocks out of the current world.
3) Rebooting the server program and server hardware, of course :).
dxdiag.txt:
------------------
System Information
------------------
Time of this report: 4/15/2016, 10:51:07
Machine name: XXXXXXXXXXXXXXXX
Operating System: Windows 10 Pro 64-bit (10.0, Build 10586) (10586.th2_release_sec.160328-1908)
Language: English (Regional Setting: English)
System Manufacturer: MSI
System Model: MS-7865
BIOS: BIOS Date: 09/16/14 13:54:37 Ver: 04.06.05
Processor: AMD Athlon(tm) 5350 APU with Radeon(tm) R3 (4 CPUs), ~2.1GHz
Memory: 15816MB RAM
Available OS Memory: 15816MB RAM
Page File: 2937MB used, 12894MB available
Windows Dir: C:\WINDOWS
DirectX Version: 12
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 144 DPI (150 percent)
DWM DPI Scaling: UnKnown
Miracast: Not Available
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.10586.0000 64bit Unicode
------------
DxDiag Notes
------------
Display Tab 1: No problems found.
Sound Tab 1: No problems found.
Input Tab: No problems found.
@et_eito, I think memory might still explain why it used to run fine and here's why:
Using max 1GB was fine in the beginning because there wasn't a lot going on. At some point, though, things got busy enough that it needs the whole 1GB Xmx, so garbage collection (very CPU intensive) has to get really really busy to free up memory. Since you've got 16GB, just nudge your Xmx up to 2048 or 3072 MB instead of that stingy 1G. You may want to add a low-ish Xmn argument and increase your Xms to somewhere between Xmn and Xmx.
(Please understand that Xmn, Xmx, and Xms are sometimes the subject of hot debate in this community and subject to many many variables. Your mileage may vary listening to my advice, but it's what I'd try; experiment for yourself and read up on what they actually mean. Xmin, Xnormalsize, Xmax is kind of how I keep them separate in my head, even if doesn't represent a perfect understanding of what they actually do. Also remember that Xmx isn't the actual maximum size java will occupy in your memory; it may only represent 50% to 80% of the actual space java uses in your memory, so don't set it at 16GB and then go crazy loading chunks or building 10,000-chicken-per-second farms.)
Side note: I only just noticed the mod load. Yes, you absolutely need to give your server more RAM. Consider running Opis, too, to see if anything in particular is jumping out on the graphs. Sometimes mods bug out (One mod on your list used to have this occasional-but-not-every-server-was-affected thing where a mob's pathing algorithms were eating half a server's resources), and other times unexpected things happen like chunks or whole dimensions fail to unload when they aren't in use.
Chunk-loaders would also explain things. Allocate more RAM if you're going to have busy chunks loaded.
Hello, I'm somewhat new to running my own Minecraft server, but I've also done a lot of homework and tried very hard to fix this myself.
The current problem: My server lags like mad. It spits out overloaded errors that it's 4-50 seconds behind frequently. It lags roughly the same when no one is connected as when I have 3 players connected and playing. The server ran fine when we started playing, but after about 16hrs of 2 players playing around doing stuff, the lag started and became unbearable quickly. This is also a spitting image of the MC server I set up and played with my wife for far longer, with no lag. (I installed it from scratch, then loaded up the same mods and configs.)
Server Hardware:
This is a personal server I've set up in my living room. I'll include the DirectX diagnostic file at the end for anyone who cares, but the general specs are:
Windows 10 Pro 64-bit
AMD Athlon 5350 APU with Radeon R3 (quad core, 2.1GHz)
16GB RAM
(I built as an always-on file server, so went for cheap price and low power usage :D.)
Server Config:
Version
Minecraft 1.7.10 Forge (forge-1.7.10-10.13.4.1614-1.7.10-installer.jar was the install file)
Start command
java -server -Xms1024M -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+AggressiveOpts -XX:+DisableExplicitGC -Xloggc:gc -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:GCTimeRatio=2 -jar forge-1.7.10-10.13.4.1614-1.7.10-universal.jar nogui
Mods
AgriCraft
Antique Atlas
Apocalypse
AppleCore
BiblioCraft
BiblioWoods
BiomesOPlenty
Botania
Caveworld
CodeChickenCore
coroutil
Et Futurum
FastLeafDecay
Mantle
MB_Battlegear2-Bullseye
natura
NotEnoughItems
Pam's HarvestCraft
SpecialAI
StorageDrawers
Thaumcraft
thaumcraftneiplugin
twilighforest
weather2
witchery
What I've tried:
1) I've monkeyed with the JVM configuration a lot, but that had no noticeable effect. My original before the lag started was fairly simple.
2) I've tried removing the SpecialAI and weather2 mods, which are the only ones that I can remove without ripping blocks out of the current world.
3) Rebooting the server program and server hardware, of course :).
dxdiag.txt:
------------------
System Information
------------------
Time of this report: 4/15/2016, 10:51:07
Machine name: XXXXXXXXXXXXXXXX
Operating System: Windows 10 Pro 64-bit (10.0, Build 10586) (10586.th2_release_sec.160328-1908)
Language: English (Regional Setting: English)
System Manufacturer: MSI
System Model: MS-7865
BIOS: BIOS Date: 09/16/14 13:54:37 Ver: 04.06.05
Processor: AMD Athlon(tm) 5350 APU with Radeon(tm) R3 (4 CPUs), ~2.1GHz
Memory: 15816MB RAM
Available OS Memory: 15816MB RAM
Page File: 2937MB used, 12894MB available
Windows Dir: C:\WINDOWS
DirectX Version: 12
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 144 DPI (150 percent)
DWM DPI Scaling: UnKnown
Miracast: Not Available
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.10586.0000 64bit Unicode
------------
DxDiag Notes
------------
Display Tab 1: No problems found.
Sound Tab 1: No problems found.
Input Tab: No problems found.
--------------------
DirectX Debug Levels
--------------------
Direct3D: 0/4 (retail)
DirectDraw: 0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay: 0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow: 0/6 (retail)
---------------
Display Devices
---------------
Card name: AMD Radeon HD 8400 / R3 Series
Manufacturer: Advanced Micro Devices, Inc.
Chip type: AMD Radeon Graphics Processor (0x9830)
DAC type: Internal DAC(400MHz)
Device Type: Full Device
Device Key: Enum\PCI\VEN_1002&DEV_9830&SUBSYS_78651462&REV_00
Display Memory: 8400 MB
Dedicated Memory: 492 MB
Shared Memory: 7907 MB
Current Mode: 1280 x 1024 (32 bit) (32Hz)
Driver Name: aticfx64.dll,aticfx64.dll,aticfx64.dll,amdxc64.dll,aticfx32,aticfx32,aticfx32,amdxc32,atiumd64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
Driver File Version: 8.17.0010.1404 (English)
Driver Version: 15.201.1151.1008
DDI Version: 12
Feature Levels: 11.1,11.0,10.1,10.0,9.3,9.2,9.1
Driver Model: WDDM 2.0
Graphics Preemption: DMA
Compute Preemption: DMA
Miracast: Not Supported
Hybrid Graphics GPU: Not Supported
Power P-states: Not Supported
Driver Attributes: Final Retail
Driver Date/Size: 11/4/2015 12:00:00 AM, 1479808 bytes
WHQL Logo'd: n/a
WHQL Date Stamp: n/a
Device Identifier: {D7B71EE2-DB70-11CF-AE72-6F58BEC2C535}
Vendor ID: 0x1002
Device ID: 0x9830
SubSys ID: 0x78651462
Revision ID: 0x0000
Driver Strong Name: oem3.inf:cb0ae4148c08a993:ati2mtag_Kabini_Mobile:15.201.1151.1008:pci\ven_1002&dev_9830
Rank Of Driver: 00D12001
Video Accel:
DXVA2 Modes: DXVA2_ModeMPEG2_VLD DXVA2_ModeMPEG2_IDCT DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT DXVA2_ModeH264_VLD_Stereo_NoFGT DXVA2_ModeVC1_VLD DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC DXVA2_ModeVC1_IDCT DXVA2_ModeWMV9_IDCT
Deinterlace Caps: n/a
D3D9 Overlay: Not Supported
DXVA-HD: Not Supported
DDraw Status: Not Available
D3D Status: Enabled
AGP Status: Not Available
MPO Caps: Not Supported
MPO Stretch: Not Supported
MPO Media Hints: Not Supported
MPO Formats: Not Supported
----- I removed the rest as it's probably not helpful
Any help or pointers would be greatly appreciated! I've scraped the internet for solutions but so far haven't found anything that'd help.
@et_eito, I think memory might still explain why it used to run fine and here's why:
Using max 1GB was fine in the beginning because there wasn't a lot going on. At some point, though, things got busy enough that it needs the whole 1GB Xmx, so garbage collection (very CPU intensive) has to get really really busy to free up memory. Since you've got 16GB, just nudge your Xmx up to 2048 or 3072 MB instead of that stingy 1G. You may want to add a low-ish Xmn argument and increase your Xms to somewhere between Xmn and Xmx.
(Please understand that Xmn, Xmx, and Xms are sometimes the subject of hot debate in this community and subject to many many variables. Your mileage may vary listening to my advice, but it's what I'd try; experiment for yourself and read up on what they actually mean. Xmin, Xnormalsize, Xmax is kind of how I keep them separate in my head, even if doesn't represent a perfect understanding of what they actually do. Also remember that Xmx isn't the actual maximum size java will occupy in your memory; it may only represent 50% to 80% of the actual space java uses in your memory, so don't set it at 16GB and then go crazy loading chunks or building 10,000-chicken-per-second farms.)
Side note: I only just noticed the mod load. Yes, you absolutely need to give your server more RAM. Consider running Opis, too, to see if anything in particular is jumping out on the graphs. Sometimes mods bug out (One mod on your list used to have this occasional-but-not-every-server-was-affected thing where a mob's pathing algorithms were eating half a server's resources), and other times unexpected things happen like chunks or whole dimensions fail to unload when they aren't in use.
Chunk-loaders would also explain things. Allocate more RAM if you're going to have busy chunks loaded.