My minecraft server, which has worked flawlessly since 1.5, has suddenly started crashing recently and lagging.
It keeps throwing this error as it crashes:
12.12 19:47:41 [Server] INFO Exception in thread "File IO Thread" java.lang.OutOfMemoryError: GC overhead limit exceeded
And sometimes when it crashes someone will be booted...
12.12 19:47:38 [Disconnect] User [19:47:38] [Server thread/INFO]: _________ has disconnected, reason: TranslatableComponent{key='disconnect.genericReason', args=[Internal Exception: io.netty.handler.codec.EncoderException: java.lang.OutOfMemoryError: GC overhead limit exceeded], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
The server will show up on the server list, and it will show that everyone who was online at the time is still on the server. My friend has a server and it did the same exact thing to him. He has 1Gb of mem for his server and I have 512(both with good processors) In the past, the server has worked fine, even with 10 people on. Now it crashes anywhere from 2-5 people. I suspect some kind of memory leak or mojang changed something in the code which requires vastly more memory. note: The server view distance is still 10 as always.
Attachments
Comments 6
It's quite clear you don't understand, or even read the report. It was working fine before 1.7. Which is why I believe there could be a problem with the 1.7 update. Also, 512mb is sufficient as it crashes even when there only are two players. If you've read the wiki yourself then you can see that it clearly says 512mb is perfectly acceptable for 6-10 players.
Yes the wiki does state that for minimum requirements, but recommends more. It's not that I don't believe you were able to run the server with that much before, but rather that your server is now crashing due to not enough memory. For that reason I suggest you increase the memory you allocate to solve the problem. If not, the I would recommend you add some JVM arguments to change it's behaviour. Since it appears to be the Garbage Collector that is causing the crash, options such as "-DisableExplicitGC", "+UseGCOverheadLimit", "-UseParallelGC", or "ParallelGCThreads=n" (see the Documentation for details on these).
Okay, but I don't see why I would need more memory all of a sudden. I can't even play with more than 2 players. When it last crashed, it was stuck showing the 3 players that were on last. But when I shutdown the server I get this message:
14.12 17:03:54 [Disconnect] User [17:35:57] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:29:07] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:16:21] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [18:43:19] [Server thread/INFO]: Ryoakira has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [17:38:10] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [21:28:29] [Server thread/INFO]: A_Priori has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [18:53:28] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [02:00:20] [Server thread/INFO]: A_Priori has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [11:42:59] [Server thread/INFO]: TheCharlamange has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [18:04:52] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [19:53:18] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [18:40:38] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [01:57:34] [Server thread/INFO]: A_Priori has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [19:53:31] [Server thread/INFO]: A_Priori has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:32:00] [Server thread/INFO]: TheCharlamange has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:27:58] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [21:01:35] [Server thread/INFO]: Eloc_Drahc has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [08:54:23] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [17:51:32] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:29:25] [Server thread/INFO]: TheCharlamange has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [11:09:49] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [18:41:09] [Server thread/INFO]: TheCharlamange has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [19:57:22] [Server thread/INFO]: Ryoakira has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [08:54:48] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:32:59] [Server thread/INFO]: A_Priori has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [17:49:09] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [19:57:21] [Server thread/INFO]: TheCharlamange has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [15:17:03] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [15:05:57] [Server thread/INFO]: zxkai12 has disconnected, reason: Server shutting down
14.12 17:03:54 [Disconnect] User [20:31:55] [Server thread/INFO]: Munchk has disconnected, reason: Server shutting down
Even though half of those players weren't even online. Could this mean that somehow the server still registers the players and clones of players as online and thus renders the world as if everyone and their clones were in the world?
I suppose it might be possible it's storing info for players that aren't online. Why it's doing this I couldn't say, though it does sound somewhat similar to other bug reports about "cloning players".
We have had this problem on our server after upgrading to 1.7.8 aswell. (Previous version was 1.6.4, and we hadnt updated due to people having a lot to do.)
Anyway now it has some problem all of a sudden. It goes down on average once every week (sometimes we can play for 2-3 weeks without problem and sometimes it goes down around 2-3 times a day.
We have been playing around 5-6 players on the server without crashing, and sometimes it crashes when one player is online.
I dont have admin access to the server right now, but I will talk to the person in charge of it for more info. (He is not that active, just the one in charge of the server we have).
Anyway.. Today I got thrown out with an error, waited a while before joining again and then got thrown out again, but this time the server shut down aswell.
I had been the last one online yesterday and could play without problem then. Noone had played in between, but we had a scheduled server restart in between. (We always restart the server at 5 in the morning and make a backup, just to make problems occur less often, but I dont know if it helps really)
Update: Another thing that I personally have noticed is that this happens often when someone is online that is also downloading something or got a heavy load on his internet in any other way.
(I did not think that this was the case today, but after seeing that my dropbox was autoupdating with a large movie file I realize that this was the case today aswell)
Here is the activity log for today:
[11:11:47] [Server thread/INFO]: Cyoor lost connection: TranslatableComponent{key='disconnect.genericReason', args=[Internal Exception: io.netty.handler.codec.EncoderException: java.lang.OutOfMemoryError], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
[11:11:47] [Server thread/INFO]: Cyoor left the game
[11:12:09] [Server thread/INFO]: There are 0/20 players online:
[11:12:09] [Server thread/INFO]:
[11:13:41] [Server thread/INFO]: Cyoor/<hiding.my.IP.here>:49382 logged in with entity id 1346 at (-4345.552974498071, 28.0, 1898.699999988079)
[11:13:41] [Server thread/INFO]: Cyoor joined the game
[11:13:47] [Server thread/INFO]: Cyoor lost connection: TranslatableComponent{key='disconnect.genericReason', args=[Internal Exception: io.netty.handler.codec.EncoderException: java.lang.OutOfMemoryError], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
[11:13:47] [Server thread/INFO]: Cyoor left the game
[11:13:47] [Server thread/INFO]: Stopping server
[11:13:47] [Server thread/INFO]: Saving players
It is quite clear that you need to allocate more memory for your server. 512mb is not sufficient. See the Minecraft wiki for details about server system requirements.