Jump to content

Memory heap troubles


EUDOXIO

Recommended Posts

Hi, im having some troubles with my server, my service provider keeps adding more memory to the server every time i send a ticket to them, but still having some of this errors from time to time, and the server freezes unless i restart it manually.

 

Any help on what can be keep causing this errors?

 

Thanks :)

 

Last error server had:

Exception in thread "main" Exception in thread "PlayerDownloadServer 16265" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:2219)
at java.util.Vector.toArray(Vector.java:687)
at java.util.Vector.addAll(Vector.java:880)
at zombie.core.skinnedmodel.ModelManager.update(ModelManager.java:397)
at zombie.gameStates.IngameState.update(IngameState.java:1278)
at zombie.network.GameServer.main(GameServer.java:596)
Exception in thread "PlayerDownloadServer 16267" java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at zombie.network.ClientChunkRequest.getByteBuffer(ClientChunkRequest.java:36)
at zombie.network.PlayerDownloadServer.createLargeAreaZip(PlayerDownloadServer.java:300)
at zombie.network.PlayerDownloadServer.access$000(PlayerDownloadServer.java:22)
at zombie.network.PlayerDownloadServer$2.run(PlayerDownloadServer.java:328)
Exception in thread "LoadChunk" java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "MapCollisionData" java.lang.OutOfMemoryError: GC overhead limit exceeded
at zombie.ZombiePopulationManager$MPDebugInfo.update(ZombiePopulationManager.java:3868)
at zombie.ZombiePopulationManager.updateThread(ZombiePopulationManager.java:1959)
at zombie.ZombiePopulationManager.shouldWait(ZombiePopulationManager.java:1593)
at zombie.MapCollisionData$MCDThread.shouldWait(MapCollisionData.java:1015)
at zombie.MapCollisionData$MCDThread.runInner(MapCollisionData.java:999)
at zombie.MapCollisionData$MCDThread.run(MapCollisionData.java:953)
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.net.DualStackPlainSocketImpl.accept0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:198)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at zombie.network.PlayerDownloadServer$2.run(PlayerDownloadServer.java:368)
RecalcAll for cell 165,96 ms=68336.414
Exception in thread "UdpEngine" java.lang.OutOfMemoryError: GC overhead limit exceeded
RecalcAll for cell 166,96 ms=6532.329

Link to comment
Share on other sites

I think so, every time they have upgrade it, it shows at the console in the first number, when i stop the server.

 

I think the server is using too much memory but i dont really know the reason why. I dont have mods or anything installed on it if it helps.

 

Heap PSYoungGen total 611648K, used 579279K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000)

eden space 524288K, 93% used [0x00000007d5560000,0x00000007f35c4ba0,0x00000007f5560000)

from space 87360K, 99% used [0x00000007faab0000,0x00000007fffff100,0x0000000800000000)

to space 87360K, 0% used [0x00000007f5560000,0x00000007f5560000,0x00000007faab0000)

ParOldGen total 1398144K, used 213957K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000)

object space 1398144K, 15% used [0x0000000780000000,0x000000078d0f14c0,0x00000007d5560000)

PSPermGen total 21248K, used 17349K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000)

object space 21248K, 81% used [0x000000077ae00000,0x000000077bef16c8,0x000000077c2c0000)

 

Also they've told me in the last ticket ive send to them, that the server never had exceded 2Gb's, and im the only customer having this issues.

Link to comment
Share on other sites

Just had another crash. If anyone have any clues on what can be causing this, many times it happens when a player just log in.

 

Exception in thread "MapCollisionData" Exception in thread "LoadChunk" Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded 

  at zombie.MapCollisionData$Cell.load(MapCollisionData.java:234)

RecalcAll for cell 164,96 ms=84216.81Exception in thread "UdpEngine" java.lang.OutOfMemoryError: Java heap space

 

Thread dump, after just rebooted it.

Heap PSYoungGen total 466048K, used 233088K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 100% used [0x00000007d5560000,0x00000007e3900000,0x00000007e3900000) from space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) to space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) ParOldGen total 1398144K, used 1398143K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555ffb0,0x00000007d5560000) PSPermGen total 21248K, used 17936K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000) object space 21248K, 84% used [0x000000077ae00000,0x000000077bf842b0,0x000000077c2c0000)

Link to comment
Share on other sites

I have this crashes several times a day, but i havent find a patternt yet, some times when a player log in, new or old char, other times just with people in it, in a range from 1 to 11 eleven that ive seen,  also the errors are different when appears, this is the last one:

 

Exception in thread "MapCollisionData" java.lang.OutOfMemoryError: GC overhead limit exceeded    at zombie.ZombiePopulationManager$MPDebugInfo.update(ZombiePopulationManager.java:3868)    at zombie.ZombiePopulationManager.updateThread(ZombiePopulationManager.java:1959)    at zombie.ZombiePopulationManager.shouldWait(ZombiePopulationManager.java:1593)    at zombie.MapCollisionData$MCDThread.shouldWait(MapCollisionData.java:1015)    at zombie.MapCollisionData$MCDThread.runInner(MapCollisionData.java:999)    at zombie.MapCollisionData$MCDThread.run(MapCollisionData.java:953)Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded    at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)    at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:822)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:830)    at zombie.iso.IsoChunk.SaveLoadedChunk(IsoChunk.java:1481)    at zombie.network.ServerChunkLoader$SaveChunkThread.addLoadedJob(ServerChunkLoader.java:235)    at zombie.network.ServerChunkLoader.addSaveLoadedJob(ServerChunkLoader.java:291)    at zombie.network.ServerMap$ServerCell.Save(ServerMap.java:366)    at zombie.network.ServerMap.SaveAll(ServerMap.java:97)    at zombie.network.ServerMap.preupdate(ServerMap.java:695)    at zombie.network.GameServer.main(GameServer.java:558)[ZNetJNI] Connection closed: reason=2 port=1Connection Lost for id=4 username=PlesatecException in thread "PathFind0" java.lang.OutOfMemoryError: GC overhead limit exceeded    at java.util.HashMap.createEntry(HashMap.java:869)    at java.util.HashMap.addEntry(HashMap.java:856)    at java.util.HashMap.put(HashMap.java:484)    at java.util.HashSet.add(HashSet.java:217)    at zombie.ai.astar.AStarPathFinder$SortedList.add(AStarPathFinder.java:1084)    at zombie.ai.astar.AStarPathFinder.addToOpen(AStarPathFinder.java:1023)    at zombie.ai.astar.AStarPathFinder.PathfindIsoGridSquare(AStarPathFinder.java:88)    at zombie.ai.astar.AStarPathFinder.findPath(AStarPathFinder.java:657)    at zombie.ai.astar.AStarPathFinder.Cycle(AStarPathFinder.java:247)    at zombie.PathfindManager$PathfindJob.Process(PathfindManager.java:291)    at zombie.PathfindManager$PathfindJob.access$100(PathfindManager.java:246)    at zombie.PathfindManager.run(PathfindManager.java:110)    at zombie.PathfindManager.access$200(PathfindManager.java:31)    at zombie.PathfindManager$2.run(PathfindManager.java:380)    at java.lang.Thread.run(Thread.java:724)Exception in thread "UdpEngine" java.lang.OutOfMemoryError: Java heap space

 

 

Heap PSYoungGen total 466048K, used 233088K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 100% used [0x00000007d5560000,0x00000007e3900000,0x00000007e3900000) from space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) to space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) ParOldGen total 1398144K, used 1398143K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555fed0,0x00000007d5560000) PSPermGen total 21248K, used 17566K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000) object space 21248K, 82% used [0x000000077ae00000,0x000000077bf27b60,0x000000077c2c0000)

 

Had another one when posting this :D

 

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space    at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)    at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:822)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:830)    at zombie.iso.IsoChunk.SaveLoadedChunk(IsoChunk.java:1481)    at zombie.network.ServerChunkLoader$SaveChunkThread.addLoadedJob(ServerChunkLoader.java:235)    at zombie.network.ServerChunkLoader.addSaveLoadedJob(ServerChunkLoader.java:291)    at zombie.network.ServerMap$ServerCell.Save(ServerMap.java:366)    at zombie.network.ServerMap.SaveAll(ServerMap.java:97)    at zombie.network.ServerMap.preupdate(ServerMap.java:695)    at zombie.network.GameServer.main(GameServer.java:558)Exception in thread "UdpEngine" java.lang.OutOfMemoryError: Java heap space

 

 

Heap PSYoungGen total 466048K, used 233088K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 100% used [0x00000007d5560000,0x00000007e3900000,0x00000007e3900000) from space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) to space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) ParOldGen total 1398144K, used 1398142K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555fa20,0x00000007d5560000) PSPermGen total 21504K, used 17864K [0x000000077ae00000, 0x000000077c300000, 0x0000000780000000) object space 21504K, 83% used [0x000000077ae00000,0x000000077bf72288,0x000000077c300000)

Link to comment
Share on other sites

I haven't had any problems with this myself, but I do have a suggestion to help minimize this issue; as it is, it seems like servers load chunks when players occupy them, but do not unload them from memory when they are vacant. As you can probably imagine, this causes the used memory for the server to keep increasing and increasing until it hits the limit set by the server operator, at which point you get these errors. Curious as to why the devs did not implement a system like this, as loading chunks into memory but never unloading them is just asking for memory problems with populated servers.

Link to comment
Share on other sites

Not sure if it helps but, heres another one for just now

 

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space    at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)    at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:822)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:830)    at zombie.iso.IsoChunk.SaveLoadedChunk(IsoChunk.java:1481)    at zombie.network.ServerChunkLoader$SaveChunkThread.addLoadedJob(ServerChunkLoader.java:235)    at zombie.network.ServerChunkLoader.addSaveLoadedJob(ServerChunkLoader.java:291)    at zombie.network.ServerMap$ServerCell.Save(ServerMap.java:366)    at zombie.network.ServerMap.SaveAll(ServerMap.java:97)    at zombie.network.ServerMap.preupdate(ServerMap.java:695)    at zombie.network.GameServer.main(GameServer.java:558)Exception in thread "SaveChunk" java.lang.OutOfMemoryError: GC overhead limit exceeded    at sun.nio.ch.FileChannelImpl.<init>(FileChannelImpl.java:63)    at sun.nio.ch.FileChannelImpl.open(FileChannelImpl.java:89)    at java.io.FileOutputStream.getChannel(FileOutputStream.java:401)    at zombie.iso.IsoChunk.SafeWrite(IsoChunk.java:1420)    at zombie.network.ServerChunkLoader$SaveLoadedTask.save(ServerChunkLoader.java:166)    at zombie.network.ServerChunkLoader$SaveChunkThread.run(ServerChunkLoader.java:205)Exception in thread "UdpEngine" java.lang.OutOfMemoryError: GC overhead limit exceeded

 

Heap PSYoungGen total 466048K, used 233087K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 99% used [0x00000007d5560000,0x00000007e38ffff0,0x00000007e3900000) from space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) to space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) ParOldGen total 1398144K, used 1398143K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555fff8,0x00000007d5560000) PSPermGen total 21248K, used 17838K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000) object space 21248K, 83% used [0x000000077ae00000,0x000000077bf6b9f0,0x000000077c2c0000) 

 

And another one :D

 

Exception in thread "MapCollisionData" java.lang.OutOfMemoryError: Java heap space    at java.io.BufferedInputStream.<init>(BufferedInputStream.java:195)    at java.io.BufferedInputStream.<init>(BufferedInputStream.java:175)Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded    at zombie.ZombiePopulationManager.addChunkToWorld(ZombiePopulationManager.java:2172)    at zombie.iso.IsoChunk.doLoadGridsquare(IsoChunk.java:1072)    at zombie.network.ServerMap$ServerCell.RecalcAll2(ServerMap.java:303)    at zombie.network.ServerMap$ServerCell.Load2(ServerMap.java:180)    at zombie.network.ServerMap.preupdate(ServerMap.java:679)Exception in thread "RecalcAll" java.lang.OutOfMemoryError: GC overhead limit exceededException in thread "UdpEngine" java.lang.OutOfMemoryError: GC overhead limit exceeded

 

Heap PSYoungGen total 466048K, used 233088K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 100% used [0x00000007d5560000,0x00000007e3900000,0x00000007e3900000) from space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) to space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) ParOldGen total 1398144K, used 1398142K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555fa20,0x00000007d5560000) PSPermGen total 21248K, used 17980K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000) object space 21248K, 84% used [0x000000077ae00000,0x000000077bf8f3f8,0x000000077c2c0000) 

 

 

And another one...

 

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space    at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)    at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:822)    at zombie.iso.IsoChunk.ensureCapacity(IsoChunk.java:830)    at zombie.iso.IsoChunk.SaveLoadedChunk(IsoChunk.java:1481)    at zombie.network.PlayerDownloadServer.expectZipArrayRequest(PlayerDownloadServer.java:147)    at zombie.network.GameServer.mainLoopDealWithNetData(GameServer.java:1808)    at zombie.network.GameServer.main(GameServer.java:577)Exception in thread "UdpEngine" java.lang.OutOfMemoryError: Java heap space    at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)    at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)    at zombie.network.ZomboidNetData.<init>(ZomboidNetData.java:17)    at zombie.network.ZomboidNetDataPool.get(ZomboidNetDataPool.java:15)Exception in thread "MapCollisionData" java.lang.OutOfMemoryError: GC overhead limit exceeded    at zombie.ZombiePopulationManager$MPDebugInfo.update(ZombiePopulationManager.java:3868)    at zombie.ZombiePopulationManager.updateThread(ZombiePopulationManager.java:1959)

 

Heap PSYoungGen total 466048K, used 233086K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 99% used [0x00000007d5560000,0x00000007e38ffbc0,0x00000007e3900000) from space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) to space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) ParOldGen total 1398144K, used 1398142K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555f9e8,0x00000007d5560000) PSPermGen total 21504K, used 18097K [0x000000077ae00000, 0x000000077c300000, 0x0000000780000000) object space 21504K, 84% used [0x000000077ae00000,0x000000077bfac720,0x000000077c300000)

 

 

A short one, last days it seems its going better, at least crashes are more spaced in time.

 

 

Exception in thread "main" Exception in thread "LoadChunk" java.lang.OutOfMemoryError: Java heap space

 

 

Heap PSYoungGen total 513600K, used 399095K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 399104K, 99% used [0x00000007d5560000,0x00000007edb1dd10,0x00000007edb20000) from space 114496K, 0% used [0x00000007f9030000,0x00000007f9030000,0x0000000800000000) to space 149952K, 0% used [0x00000007edb20000,0x00000007edb20000,0x00000007f6d90000) ParOldGen total 1398144K, used 1398141K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555f4e0,0x00000007d5560000) PSPermGen total 21504K, used 18245K [0x000000077ae00000, 0x000000077c300000, 0x0000000780000000) object space 21504K, 84% used [0x000000077ae00000,0x000000077bfd1788,0x000000077c300000)

 

 

Exception in thread "main" Exception in thread "MapCollisionData" java.lang.OutOfMemoryError: GC overhead limit exceeded    at java.util.HashMap.createEntry(HashMap.java:869)    at java.util.HashMap.addEntry(HashMap.java:856)    at java.util.HashMap.put(HashMap.java:484)    at zombie.iso.sprite.IsoSprite.LoadCache(IsoSprite.java:1270)    at zombie.characters.IsoGameCharacter.InitSpritePartsZombie(IsoGameCharacter.java:5271)    at zombie.characters.IsoGameCharacter.InitSpritePartsZombie(IsoGameCharacter.java:5185)Exception in thread "SaveChunk" java.lang.OutOfMemoryError: GC overhead limit exceededException in thread "UdpEngine" Exception in thread "RecalcAll" java.lang.OutOfMemoryError: GC overhead limit exceededException in thread "LoadChunk" java.lang.OutOfMemoryError: GC overhead limit exceeded    at zombie.ZombiePopulationManager$Cell.save(ZombiePopulationManager.java:587)    at zombie.ZombiePopulationManager$Cell.access$1300(ZombiePopulationManager.java:501)    at zombie.ZombiePopulationManager.save(ZombiePopulationManager.java:941)    at zombie.ZombiePopulationManager.updateThread(ZombiePopulationManager.java:2114)    at zombie.ZombiePopulationManager.shouldWait(ZombiePopulationManager.java:1593)    at zombie.MapCollisionData$MCDThread.shouldWait(MapCollisionData.java:1015)    at zombie.MapCollisionData$MCDThread.runInner(MapCollisionData.java:999)    at zombie.MapCollisionData$MCDThread.run(MapCollisionData.java:953)java.lang.OutOfMemoryError: GC overhead limit exceededjava.lang.OutOfMemoryError: GC overhead limit exceeded    at java.lang.Long.valueOf(Long.java:577)    at zombie.core.raknet.UdpEngine.decode(UdpEngine.java:264)    at zombie.core.raknet.UdpEngine.access$100(UdpEngine.java:24)

 

Heap PSYoungGen total 466048K, used 233088K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 233088K, 100% used [0x00000007d5560000,0x00000007e3900000,0x00000007e3900000) from space 232960K, 0% used [0x00000007f1c80000,0x00000007f1c80000,0x0000000800000000) to space 232960K, 0% used [0x00000007e3900000,0x00000007e3900000,0x00000007f1c80000) ParOldGen total 1398144K, used 1398085K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d5551680,0x00000007d5560000) PSPermGen total 21248K, used 18076K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000) object space 21248K, 85% used [0x000000077ae00000,0x000000077bfa73f8,0x000000077c2c0000)

 

 

Exception in thread "PlayerDownloadServer 16267" java.lang.OutOfMemoryError: Java heap space    at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)    at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)    at zombie.network.ClientChunkRequest.getByteBuffer(ClientChunkRequest.java:36)    at zombie.network.PlayerDownloadServer.createLargeAreaZip(PlayerDownloadServer.java:300)    at zombie.network.PlayerDownloadServer.access$000(PlayerDownloadServer.java:22)    at zombie.network.PlayerDownloadServer$2.run(PlayerDownloadServer.java:328)Exception in thread "LoadChunk" java.lang.OutOfMemoryError: GC overhead limit exceeded    at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:149)    at java.lang.StringCoding.decode(StringCoding.java:193)Exception in thread "main" java.lang.OutOfMemoryError: Java heap space    at java.util.Arrays.copyOf(Arrays.java:2219)    at java.util.Vector.toArray(Vector.java:687)    at java.util.Vector.addAll(Vector.java:880)    at zombie.core.skinnedmodel.ModelManager.update(ModelManager.java:397)    at zombie.gameStates.IngameState.update(IngameState.java:1278)    at zombie.network.GameServer.main(GameServer.java:596)Exception in thread "PlayerDownloadServer 16266" java.lang.OutOfMemoryError: Java heap space    at java.io.BufferedOutputStream.<init>(BufferedOutputStream.java:76)RecalcAll for cell 158,135 ms=81772.36RecalcAll for cell 159,135 ms=2905.0312

2015-10-31 18:32:51

 

Heap PSYoungGen total 476480K, used 243775K [0x00000007d5560000, 0x0000000800000000, 0x0000000800000000) eden space 243776K, 99% used [0x00000007d5560000,0x00000007e436fff8,0x00000007e4370000) from space 232704K, 0% used [0x00000007f1cc0000,0x00000007f1cc0000,0x0000000800000000) to space 222528K, 0% used [0x00000007e4370000,0x00000007e4370000,0x00000007f1cc0000) ParOldGen total 1398144K, used 1398143K [0x0000000780000000, 0x00000007d5560000, 0x00000007d5560000) object space 1398144K, 99% used [0x0000000780000000,0x00000007d555ff80,0x00000007d5560000) PSPermGen total 21248K, used 18075K [0x000000077ae00000, 0x000000077c2c0000, 0x0000000780000000) object space 21248K, 85% used [0x000000077ae00000,0x000000077bfa6ee0,0x000000077c2c0000)     at java.io.BufferedOutputStream.<init>(BufferedOutputStream.java:59)Exception in thread "UdpEngine"

 

Link to comment
Share on other sites

  • 4 months later...

Sorry to resurrect a "Zombie" thread.

 

But I'm also having this issue multiple times a day on Linux. I'm quite surprised it's still happening after so many months.

 

This is just one of the many:

Quote

Exception in thread "LoadChunk" Exception in thread "RecalcAll" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at zombie.core.properties.PropertyContainer.AddProperties(PropertyContainer.java:33)
        at zombie.iso.IsoGridSquare.RecalcProperties(IsoGridSquare.java:5225)
        at zombie.network.ServerChunkLoader$RecalcAllThread.run(ServerChunkLoader.java:383)
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at zombie.iso.IsoGridSquare.<init>(IsoGridSquare.java:167)
        at zombie.iso.IsoGridSquare.getNew(IsoGridSquare.java:2603)
        at zombie.iso.IsoChunk.Load(IsoChunk.java:916)
        at zombie.iso.IsoChunk.Load(IsoChunk.java:274)
        at zombie.network.ServerChunkLoader$LoaderThread.run(ServerChunkLoader.java:34)
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.lang.Short.valueOf(Short.java:235)
Exception in thread "UdpEngine" java.lang.OutOfMemoryError: GC overhead limit exceeded

 

Link to comment
Share on other sites

32gb of memory.

 

Quote

                                   total       used       free          shared    buffers     cached
Mem:                          31870    13592     18277      44           783          9230
-/+ buffers/cache:                     3578      28291

 

Edited by Turbine
Link to comment
Share on other sites

How much RAM have you allocated to PZ, specifically?

 

There have been a few memory leaks found in build 33.20 that EasyPickins is working on now. (Redboid was gobbling up to 90 GB over 36 hours.) Hopefully he'll release a patch or something.

Link to comment
Share on other sites

I tried modifying start-server.sh to increase the memory usage up to 8gb. The game starts up using just under the 4gb memory mark. All of a sudden a helicoptor may go by, and it'll have a collision out-of-memory error.

 

Here's my start-server.sh. The heap changes don't seem to be used:

Quote

#!/bin/bash
#
###############################################################################

INSTDIR="`dirname $0`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`"

if "${INSTDIR}/jre64/bin/java" -version > /dev/null 2>&1; then
        echo "64-bit java detected"
        export PATH="${INSTDIR}/jre64/bin:$PATH"
        export LD_LIBRARY_PATH="${INSTDIR}/linux64:${INSTDIR}/natives:${INSTDIR}:${INSTDIR}/jre64/lib/amd64:${LD_LIBRARY_PATH}"
        JSIG="libjsig.so"
        LD_PRELOAD="${LD_PRELOAD}:${JSIG}" ./ProjectZomboid64 "$@"
elif "${INSTDIR}/jre/bin/java" -client -version > /dev/null 2>&1; then
        echo "32-bit java detected"
        export PATH="${INSTDIR}/jre/bin:$PATH"
        export LD_LIBRARY_PATH="${INSTDIR}/linux32:${INSTDIR}/natives:${INSTDIR}:${INSTDIR}/jre/lib/i386:${LD_LIBRARY_PATH}"
        JSIG="libjsig.so"
        LD_PRELOAD="${LD_PRELOAD}:${JSIG}" ./ProjectZomboid32 "$@"
else
        echo "couldn't determine 32/64 bit of java"
fi
exit 0


JARPATH="java/:java/lwjgl.jar:java/lwjgl_util.jar:java/sqlite-jdbc-3.8.10.1.jar:java/uncommons-maths-1.2.3.jar"

LD_PRELOAD=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjsig.so \
java \
        -Dzomboid.steam=1 -Dzomboid.znetlog=1 \
        -Djava.library.path="${INSTDIR}/natives:${INSTDIR}/linux64" \
        -Xms8192m \
        -Xmx8192m \
        -XX:-UseSplitVerifier \
        -cp "${JARPATH}" \
        zombie.network.GameServer \
        "$@"

exit 0

#
# EOF
#
###############################################################################

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...