[Direwolf20 1.6.4] Unable to start server. PermGen error.

  • 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

Rebirth Gaming

New Member
Jul 29, 2019
360
0
0
Details

Direwolf20 1.6.4 1.0.11
Hosted on Multicraft with direct FTP access.
2G RAM dedicated to the server.
No plugins installed.

Error Log

Code:
07.01 15:38:21 [Multicraft] Server shut down
07.01 15:38:21 [Multicraft] Forcefully killing server
07.01 15:38:20 [Multicraft] Terminating server via signal
07.01 15:37:48 [Multicraft] Stopping server!
07.01 15:35:11 [Server] INFO Caused by: java.lang.OutOfMemoryError: PermGen space
07.01 15:35:11 [Server] INFO ... 2 more
07.01 15:35:11 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 15:35:11 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 15:35:11 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 15:35:11 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.command.ServerCommand
07.01 15:35:11 [Server] INFO at net.minecraft.server.dedicated.DedicatedServerCommandThread.run(SourceFile:81)
07.01 15:35:11 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71331_a(DedicatedServer.java:307)
07.01 15:35:11 [Server] INFO Exception in thread "Thread-5" java.lang.NoClassDefFoundError: net/minecraft/command/ServerCommand
07.01 15:34:46 [Server] INFO Closing listening thread
07.01 15:34:46 [Server] INFO at net.minecraft.server.ServerListenThread.run(ServerListenThread.java:80)
07.01 15:34:46 [Server] INFO at java.net.ServerSocket.accept(Unknown Source)
07.01 15:34:46 [Server] INFO at java.net.ServerSocket.implAccept(Unknown Source)
07.01 15:34:46 [Server] INFO at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
07.01 15:34:46 [Server] INFO at java.net.PlainSocketImpl.socketAccept(Native Method)
07.01 15:34:46 [Server] INFO java.net.SocketException: Socket closed
07.01 15:34:46 [Server] INFO Saving chunks for level 'world'/Overworld
07.01 15:34:46 [Server] INFO Saving worlds
07.01 15:34:46 [Server] INFO Saving players
07.01 15:34:46 [Server] INFO Stopping server
07.01 15:34:46 [Multicraft] Skipped 7 lines due to rate limit (30/s)
07.01 15:34:44 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 15:34:44 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 15:34:44 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 15:34:44 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.world.CallableLvl2
07.01 15:34:44 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
07.01 15:34:44 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
07.01 15:34:44 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
07.01 15:34:44 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
07.01 15:34:44 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:673)
07.01 15:34:44 [Server] INFO at net.minecraft.world.World.func_72914_a(World.java:4420)
07.01 15:34:44 [Server] INFO java.lang.NoClassDefFoundError: net/minecraft/world/CallableLvl2
07.01 15:34:44 [Server] SEVERE Encountered an unexpected exception NoClassDefFoundError
07.01 15:34:44 [Server] INFO ... 8 more
07.01 15:34:44 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
07.01 15:34:44 [Server] INFO at java.security.SecureClassLoader.defineClass(Unknown Source)
07.01 15:34:44 [Server] INFO at java.lang.ClassLoader.defineClass(Unknown Source)
07.01 15:34:44 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method)
07.01 15:34:44 [Server] INFO Caused by: java.lang.OutOfMemoryError: PermGen space
07.01 15:34:44 [Server] INFO ... 6 more
07.01 15:34:44 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 15:34:44 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 15:34:44 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 15:34:44 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.world.CallableLvl2
07.01 15:34:44 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
07.01 15:34:44 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
07.01 15:34:44 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
07.01 15:34:44 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
07.01 15:34:44 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:673)
07.01 15:34:44 [Server] INFO at net.minecraft.world.World.func_72914_a(World.java:4420)
07.01 15:34:44 [Server] INFO java.lang.NoClassDefFoundError: net/minecraft/world/CallableLvl2
07.01 15:34:41 [Server] WARNING Can't keep up! Did the system time change, or is the server overloaded?
07.01 15:34:38 [Server] INFO Unloading dimension -100
07.01 15:34:38 [Server] INFO Unloading dimension 1
07.01 15:34:38 [Server] INFO Unloading dimension 7
07.01 15:34:38 [Server] INFO Unloading dimension 20
07.01 15:34:37 [Server] INFO Loading NEI
07.01 15:34:37 [Server] INFO [2.0.2] Loading world properties.
07.01 15:34:37 [Server] Startup Done (20.565s)! For help, type "help" or "?"
07.01 15:34:36 [Server] INFO Preparing spawn area: 95%

Error Log TL;DR

The server generates spawn, the immediately unloads all dimensions and shuts down, ending with a PermGem error.

Troubleshooting

Tried multiple instances of our serverstart.bat, trying PermGen and MaxPermGen sizes of 128, 256 and 512. Also tried setting Xmx and Xms to various variables, maximum of 2G (max RAM we have available for the server).

Also tried installing MCPC+.
 
Last edited:

Rebirth Gaming

New Member
Jul 29, 2019
360
0
0
I deleted all server files and downloaded a new instance of the Direwolf20 server files. (Another one of our server admins was fiddling with it, so I decided to work off of a clean slate.)
I unzipped the files locally and then loaded them up onto our server space.
I edited the .bat with the arguments provided in your link for servers, changing our Xmx and Xms to 1024m each, and left the PermSize at 256m. I did not adjust the Xmx and Xms above 1G, as the link you provided suggested leaving 1g free.
I then started up the server, and hoped for success.

This is the error it produced: (Same as before, but the PermGen space error was produced much faster than before.)

Code:
07.01 17:55:09 [Server] INFO Caused by: java.lang.OutOfMemoryError: PermGen space
07.01 17:55:08 [Server] INFO ... 2 more
07.01 17:55:08 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 17:55:08 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 17:55:08 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 17:55:08 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.command.ServerCommand
07.01 17:55:08 [Server] INFO at net.minecraft.server.dedicated.DedicatedServerCommandThread.run(SourceFile:81)
07.01 17:55:08 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71331_a(DedicatedServer.java:307)
07.01 17:55:08 [Server] INFO Exception in thread "Thread-5" java.lang.NoClassDefFoundError: net/minecraft/command/ServerCommand
07.01 17:54:33 [Server] WARNING Can't keep up! Did the system time change, or is the server overloaded?
07.01 17:54:33 [Server] INFO Unloading dimension -100
07.01 17:54:33 [Server] INFO Unloading dimension 1
07.01 17:54:33 [Server] INFO Unloading dimension 7
07.01 17:54:33 [Server] INFO Unloading dimension 20
07.01 17:54:30 [Server] INFO Loading NEI
07.01 17:54:30 [Server] INFO [2.0.2] World config does not exist, generating.
07.01 17:54:30 [Server] Startup Done (25.873s)! For help, type "help" or "?"
07.01 17:54:29 [Server] INFO Preparing spawn area: 92%

I restarted the server, making no changes, just in case...

Code:
07.01 18:00:37 [Server] INFO Caused by: java.lang.OutOfMemoryError: PermGen space
07.01 18:00:37 [Server] INFO ... 2 more
07.01 18:00:37 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 18:00:37 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 18:00:37 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 18:00:37 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.command.ServerCommand
07.01 18:00:37 [Server] INFO at net.minecraft.server.dedicated.DedicatedServerCommandThread.run(SourceFile:81)
07.01 18:00:37 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71331_a(DedicatedServer.java:307)
07.01 18:00:37 [Server] INFO Exception in thread "Thread-5" java.lang.NoClassDefFoundError: net/minecraft/command/ServerCommand
07.01 18:00:12 [Server] INFO Closing listening thread
07.01 18:00:12 [Server] INFO at net.minecraft.server.ServerListenThread.run(ServerListenThread.java:80)
07.01 18:00:12 [Server] INFO at java.net.ServerSocket.accept(Unknown Source)
07.01 18:00:12 [Server] INFO at java.net.ServerSocket.implAccept(Unknown Source)
07.01 18:00:12 [Server] INFO at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
07.01 18:00:12 [Server] INFO at java.net.PlainSocketImpl.socketAccept(Native Method)
07.01 18:00:12 [Server] INFO java.net.SocketException: Socket closed
07.01 18:00:12 [Server] INFO Saving chunks for level 'world'/Overworld
07.01 18:00:12 [Server] INFO Saving worlds
07.01 18:00:12 [Server] INFO Saving players
07.01 18:00:12 [Server] INFO Stopping server
07.01 18:00:12 [Multicraft] Skipped 7 lines due to rate limit (30/s)
07.01 18:00:11 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 18:00:11 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 18:00:11 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 18:00:11 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.world.CallableLvl2
07.01 18:00:11 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
07.01 18:00:11 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
07.01 18:00:11 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
07.01 18:00:11 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
07.01 18:00:11 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:673)
07.01 18:00:11 [Server] INFO at net.minecraft.world.World.func_72914_a(World.java:4420)
07.01 18:00:11 [Server] INFO java.lang.NoClassDefFoundError: net/minecraft/world/CallableLvl2
07.01 18:00:11 [Server] SEVERE Encountered an unexpected exception NoClassDefFoundError
07.01 18:00:11 [Server] INFO ... 8 more
07.01 18:00:11 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
07.01 18:00:11 [Server] INFO at java.security.SecureClassLoader.defineClass(Unknown Source)
07.01 18:00:11 [Server] INFO at java.lang.ClassLoader.defineClass(Unknown Source)
07.01 18:00:11 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method)
07.01 18:00:11 [Server] INFO Caused by: java.lang.OutOfMemoryError: PermGen space
07.01 18:00:11 [Server] INFO ... 6 more
07.01 18:00:11 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 18:00:11 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source)
07.01 18:00:11 [Server] INFO at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
07.01 18:00:11 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.world.CallableLvl2
07.01 18:00:11 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
07.01 18:00:11 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
07.01 18:00:11 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
07.01 18:00:11 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
07.01 18:00:11 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:673)
07.01 18:00:11 [Server] INFO at net.minecraft.world.World.func_72914_a(World.java:4420)
07.01 18:00:11 [Server] INFO java.lang.NoClassDefFoundError: net/minecraft/world/CallableLvl2
07.01 18:00:06 [Server] WARNING Can't keep up! Did the system time change, or is the server overloaded?
07.01 18:00:04 [Server] INFO Unloading dimension -100
07.01 18:00:04 [Server] INFO Unloading dimension 1
07.01 18:00:04 [Server] INFO Unloading dimension 7
07.01 18:00:04 [Server] INFO Unloading dimension 20
07.01 18:00:02 [Server] INFO Loading NEI
07.01 18:00:02 [Server] INFO [2.0.2] Loading world properties.
07.01 18:00:02 [Server] Startup Done (28.096s)! For help, type "help" or "?"
07.01 18:00:01 [Server] INFO Preparing spawn area: 94%

I then made the following changes to the .bat:
Increased PermSize to 512m

Code:
java -Xms1024m -Xmx1024m -XX:PermSize=512m -XX:NewRatio=3 -XX:SurvivorRatio=3 -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=8 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=50 -XX:MaxGCMinorPauseMillis=7 -XX:+ExplicitGCInvokesConcurrent -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:+BindGCTaskThreadsToCPUs -Xnoclassgc -jar FTBServer-1.6.4-965.jar nogui
pause

Started the server. Same problem.

Code:
07.01 18:06:52 [Server] INFO Closing listening thread
07.01 18:06:52 [Server] INFO at net.minecraft.server.ServerListenThread.run(ServerListenThread.java:80)
07.01 18:06:52 [Server] INFO at java.net.ServerSocket.accept(Unknown Source)
07.01 18:06:52 [Server] INFO at java.net.ServerSocket.implAccept(Unknown Source)
07.01 18:06:52 [Server] INFO at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
07.01 18:06:52 [Server] INFO at java.net.PlainSocketImpl.socketAccept(Native Method)
07.01 18:06:52 [Server] INFO java.net.SocketException: Socket closed
07.01 18:06:52 [Server] INFO Saving chunks for level 'world'/Overworld
07.01 18:06:52 [Server] INFO Saving worlds
07.01 18:06:52 [Server] INFO Saving players
07.01 18:06:52 [Server] INFO Stopping server
07.01 18:06:50 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
07.01 18:06:50 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
07.01 18:06:50 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
07.01 18:06:50 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:277)
07.01 18:06:50 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:315)
07.01 18:06:50 [Server] INFO at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:107)
07.01 18:06:50 [Server] INFO java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.util.ChatMessageComponent
07.01 18:06:50 [Server] SEVERE Encountered an unexpected exception NoClassDefFoundError
07.01 18:06:50 [Server] INFO at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
07.01 18:06:50 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
07.01 18:06:50 [Server] INFO at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
07.01 18:06:50 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:277)
07.01 18:06:50 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:315)
07.01 18:06:50 [Server] INFO at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:107)
07.01 18:06:50 [Server] INFO java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.util.ChatMessageComponent
07.01 18:06:18 [Server] WARNING Can't keep up! Did the system time change, or is the server overloaded?
07.01 18:06:15 [Server] INFO Unloading dimension -100
07.01 18:06:15 [Server] INFO Unloading dimension 1
07.01 18:06:15 [Server] INFO Unloading dimension 7
07.01 18:06:15 [Server] INFO Unloading dimension 20
07.01 18:06:14 [Server] INFO Loading NEI
07.01 18:06:14 [Server] INFO [2.0.2] Loading world properties.
07.01 18:06:14 [Server] Startup Done (24.035s)! For help, type "help" or "?"
07.01 18:06:13 [Server] INFO Preparing spawn area: 91%

Should Direwolf20 really be demanding a lot of memory, or is the devil in the details?
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
Sorry, but I'm not very good with server things. (I just know that Eyamaz's arguments work for almost everyone when they have memory related issues)
 

Rebirth Gaming

New Member
Jul 29, 2019
360
0
0
Thank you for your assistance. Hopefully someone with further insight can assist. I suspect it may be something related to this modpack being beta still. I will continue to troubleshoot and report any successes.
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
It's entirely possible, maybe try using FTB Lite 2 (since that's considered stable) to test that theory
 

Rebirth Gaming

New Member
Jul 29, 2019
360
0
0
Tried allocating 3G RAM to the server.
Still getting a PermGen error immediately after spawn generates.

Code:
java -Xms2048m -Xmx2048m -XX:PermSize=3G -XX:NewRatio=3 -XX:SurvivorRatio=3 -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=8 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=50 -XX:MaxGCMinorPauseMillis=7 -XX:+ExplicitGCInvokesConcurrent -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:+BindGCTaskThreadsToCPUs -Xnoclassgc -jar FTBServer-1.6.4-965.jar nogui
pause
 

Dorque

New Member
Jul 29, 2019
1,022
0
0
I'll be honest, that's not really enough memory for most of the new packs... is the server even a 64-bit OS? It's not likely to run anything 1.6.4 that's not the new Lite pack if not.