Server reached maximum memory of 6GB allocated and started lagging severely, overloaded running like 50000ms behind. This continued even when no players were online.
Linked issues
relates to 1
Attachments
Comments 13
How do you see the server is running out of memory ?
The "can't keep up!" messages are occuring already shortly after the start of the server:
[08:31:36] [Server thread/INFO]: Starting minecraft server version 1.7.2
....
[12:25:01] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 3378ms behind, skipping 67 tick(s)
"The "can't keep up!" messages are occuring already shortly after the start of the server:"
So that should not be happening at all? I thought the 50 second lag alter on was because it reached max memory.
So I should file a bug report about getting any overload messages?
OK I've noticed this on my server as well, and was trying to identify the issue however have been unsuccessful (thought it was an issue on my end until I saw this report). Clearing mobs (/difficulty 0, /difficulty 3) seems to help the lag but does not resolve the issue. At this time only known temporary fix is to restart the server.
START "MineCraft Launcher" /HIGH "C:\Program Files\Java\jre7\bin\javaw.exe" -server -Xmx4G -Xms4G -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=2 -XX:MaxGCPauseMillis=100 -XX:+AggressiveOpts -jar "%CD%\minecraft_server.1.7.4.jar"
2 days uptime
Players logged in during uptime: 3
Simultaneous players: 2
RAM usage at 2800MB with no players online.
OK I just tried something and it seems to help (initially will have to test over time). I added -Xincgc to my java command line. Instead of RAM jumping from 300MB (no players fresh start) to over 1GB with one player, now it's staying around 500MB. See if this helps any.
START "MineCraft Launcher" /HIGH "C:\Program Files\Java\jre7\bin\javaw.exe" -server -Xmx4G -Xms4G -Xincgc -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=2 -XX:MaxGCPauseMillis=100 -XX:+AggressiveOpts -jar "%CD%\minecraft_server.1.7.4.jar"
I am still doing additional testing, sadly this is something that takes a while of server uptime to test. The above Java command does indeed keep the RAM usage lower, however over the period of about 24hrs I am still seeing a slow climb, but nowhere near what it used to be.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been deliviered.
This ticket is incomplete without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. If you are still experiencing this issue, we can reopen it at your request.
Please review the guidelines before reporting issues.
Please attach the server.log