Problem Server crashes OutofMemory PermGen space

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
My server repeatedly crashes within about 30 minutes to an hour from what seems to be an outofmemory error.
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 8/5/13 6:25 AM
Description: Exception in server tick loop

java.lang.NoClassDefFoundError: eplus/inventory/ContainerEnchantTable
at eplus.network.GuiHandler.getServerGuiElement(GuiHandler.java:64)
at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:308)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:352)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2396)
at eplus.blocks.BlockEnchantTable.func_71903_a(BlockEnchantTable.java:60)
at net.minecraft.item.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:412)
at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:553)
at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58)
at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:461)
at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:134)
at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53)
at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:677)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:275)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:573)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
Caused by: java.lang.ClassNotFoundException: eplus.inventory.ContainerEnchantTable
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 17 more
Caused by: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227)
... 19 more
That's the crash report, and this is my serverstart.sh file

java -Xms16M -Xmx2048M -XX:permSize=256m -XX:MaxPermSize=1024m -jar ftbserver.jar

Any help would be appreciated I've been trying to fix it myself,but I haven't been able to.
 

Vauthil

New Member
Jul 29, 2019
1,491
-14
1
Random out of the blue question: Using Logistics Pipes to any extent?
 

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
Well it's enabled, but I don't know that anyone is using it.
Edit:
Checked around, and no one has logistic pipes anywhere.
 

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
New crash related to memory permgen

Code:
06.08 01:34:53 [Server] INFO Exception in thread "Connection #38 write thread" java.lang.OutOfMemoryError: PermGen space
06.08 01:34:53 [Server] INFO Exception in thread "Connection #40 write thread" java.lang.OutOfMemoryError: PermGen space
06.08 01:34:46 [Server] INFO [Minecraft-Server] Saving chunks for level 'Another'/Overworld
06.08 01:34:46 [Server] INFO [Minecraft-Server] Saving worlds
06.08 01:34:46 [Server] INFO Unloading Player: elephent3
06.08 01:34:46 [Server] INFO Unloading Player: hsgunner
06.08 01:34:46 [Server] INFO Unloading Player: xSimpleName
06.08 01:34:46 [Server] INFO Unloading Player: Sheogorath321
06.08 01:34:46 [Server] INFO [Minecraft-Server] Closing listening thread
06.08 01:34:46 [Server] INFO at net.minecraft.server.ServerListenThread.run(ServerListenThread.java:80)
06.08 01:34:46 [Server] INFO at java.net.ServerSocket.accept(ServerSocket.java:490)
06.08 01:34:46 [Server] INFO at java.net.ServerSocket.implAccept(ServerSocket.java:522)
06.08 01:34:46 [Server] INFO at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
06.08 01:34:46 [Server] INFO at java.net.PlainSocketImpl.socketAccept(Native Method)
06.08 01:34:46 [Server] INFO java.net.SocketException: Socket closed
06.08 01:34:46 [Server] INFO [Minecraft-Server] Saving players
06.08 01:34:46 [Server] INFO [Minecraft-Server] Stopping server
06.08 01:34:46 [Multicraft] Skipped 40 lines due to rate limit (30/s)
06.08 01:34:45 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method)
06.08 01:34:45 [Server] INFO Caused by: java.lang.OutOfMemoryError: PermGen space
06.08 01:34:45 [Server] INFO ... 22 more
06.08 01:34:45 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
06.08 01:34:45 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
06.08 01:34:45 [Server] INFO at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)
06.08 01:34:45 [Server] INFO Caused by: java.lang.ClassNotFoundException: mods.railcraft.common.gui.containers.ContainerSteamOven
06.08 01:34:45 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
06.08 01:34:45 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470)
06.08 01:34:45 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:573)
06.08 01:34:45 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:275)
06.08 01:34:45 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:677)
06.08 01:34:45 [Server] INFO at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
06.08 01:34:45 [Server] INFO at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53)
06.08 01:34:45 [Server] INFO at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:134)
06.08 01:34:45 [Server] INFO at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:461)
06.08 01:34:45 [Server] INFO at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58)
06.08 01:34:45 [Server] INFO at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:553)
06.08 01:34:45 [Server] INFO at net.minecraft.item.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:412)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.blocks.machine.BlockMachine.func_71903_a(BlockMachine.java:124)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.blocks.machine.beta.TileBoiler.blockActivated(TileBoiler.java:154)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.blocks.machine.TileMachineBase.blockActivated(TileMachineBase.java:86)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.blocks.machine.beta.TileBoiler.openGui(TileBoiler.java:212)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.blocks.machine.beta.TileBoilerFireboxLiquid.openGui(TileBoilerFireboxLiquid.java:48)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.gui.GuiHandler.openGui(GuiHandler.java:22)
06.08 01:34:45 [Server] INFO at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2396)
06.08 01:34:45 [Server] INFO at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:352)
06.08 01:34:45 [Server] INFO at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:308)
06.08 01:34:45 [Server] INFO at mods.railcraft.common.gui.GuiHandler.getServerGuiElement(GuiHandler.java:53)
06.08 01:34:45 [Server] INFO java.lang.NoClassDefFoundError: mods/railcraft/common/gui/containers/ContainerSteamOven
 

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
I've seen that forum post, and used every code for the serverstart.sh script. Nothing seems to work. I searched for hours on solutions and tried pretty much all of them before I made a post.
 

Joey19982

New Member
Jul 29, 2019
68
0
0
Try setting it to -XX;PermSize=128M -XX:MaxPermSize=256M. Having a whole gigabyte of Perm space is unnecessary, especially when you only have 2GB of RAM.
 

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
Code:
java -Xmx2G -Xms2G -XX:PermSize=256M -XX:MaxPermSize=512M -jar server.jar nogui
That's the server file atm I've got 2.5 gigs of ram in all
 

Joey19982

New Member
Jul 29, 2019
68
0
0
Again, try setting it to:
Code:
java -Xms2G -Xmx2G -XX:PermSize=128M -XX:MaxPermSize=256M -jar server.jar nogui

and post the results. Even 512MB is a bit much for what I assume is a smaller server (based off of ram). I have a pretty large server and only set it to 256MB.
 

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
Alright I've set it to that I'll tell you if it crashes and try to grab the errors from console before it restarts itself. It hasn't been generating a crash log lately.
 

Joey19982

New Member
Jul 29, 2019
68
0
0
You should be able to fetch it from the server.log file instead of copying from the console, which is in the same folder as your server's .jar.
 

Sheogorathe321

New Member
Jul 29, 2019
21
0
0
Code:
06.08 13:42:11 [Server] INFO Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Server thread"
06.08 13:42:10 [Server] INFO Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-1"
06.08 13:42:07 [Server] INFO [Minecraft-Server] Saving worlds
06.08 13:41:58 [Server] INFO Unloading Player: BlurVex
06.08 13:41:40 [Server] INFO Unloading Player: firefudge
06.08 13:41:33 [Server] INFO Unloading Player: sebasido
06.08 13:41:33 [Server] INFO [Minecraft-Server] Closing listening thread
06.08 13:41:33 [Server] INFO at net.minecraft.server.ServerListenThread.run(ServerListenThread.java:80)
06.08 13:41:33 [Server] INFO at java.net.ServerSocket.accept(ServerSocket.java:490)
06.08 13:41:33 [Server] INFO at java.net.ServerSocket.implAccept(ServerSocket.java:522)
06.08 13:41:33 [Server] INFO at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
06.08 13:41:33 [Server] INFO at java.net.PlainSocketImpl.socketAccept(Native Method)
06.08 13:41:33 [Server] INFO java.net.SocketException: Socket closed
06.08 13:41:33 [Server] INFO [Minecraft-Server] Saving players
06.08 13:41:33 [Server] INFO [Minecraft-Server] Stopping server
06.08 13:41:32 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
06.08 13:41:32 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470)
06.08 13:41:32 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:573)
06.08 13:41:32 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:275)
06.08 13:41:32 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:648)
06.08 13:41:32 [Server] INFO at net.minecraft.world.World.func_72914_a(World.java:4401)
06.08 13:41:32 [Server] INFO java.lang.OutOfMemoryError: PermGen space
Last crash more out of memory. There are only 2-6 people on at a time and there's 2.5 gigs of ram in all.
 

Joey19982

New Member
Jul 29, 2019
68
0
0
Any idea how much of the RAM is being used at the time? It may just be that 2GB isn't enough.
 

Joey19982

New Member
Jul 29, 2019
68
0
0
Well, Perm gen space still does come from the RAM. I'm not too sure what else to do, though. Sorry :(
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Code:
java -Xmx2G -Xms2G -XX:PermSize=256M -XX:MaxPermSize=512M -jar server.jar nogui
That's the server file atm I've got 2.5 gigs of ram in all

Before I say anything. Do you seriously have a 2.5 gigs of ram TOTAL or 2.5 gigs of ram AVAILABLE? There is a big difference.

Edit: also are you renting a server or is this your server.