Server shutting down - java.lang.OutOfMemoryError: 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

Dweight

New Member
Jul 29, 2019
20
0
0
Hello, I keep having this error occuring about every 30-60mins. I have server pc with MCPC+, MindCrack Pack and 8GB. I getting these error messages with java.lang.OutOfMemoryError: PermGen space

One type of error: http://pastebin.com/wAKSENvy

I dont know what can i do.
 

Xajar78

New Member
Jul 29, 2019
9
0
0
The same thing happened to me as well. I seen a post here somewhere that said it was caused by too many plugins. The post suggested adding "-XX:MaxPermSize=128m" to a batch file used to start the server. It fixed it for me.

My entire batch file looks like this:
Code:
java -d64 -server -XX:CompileThreshold=3000 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=12 -XX:MaxPermSize=128m -Xms512m -Xmx1024m -XX:NewSize=100m -XX:SurvivorRatio=6 -XX:MaxTenuringThreshold=4 -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintCommandLineFlags -XX:+PrintGCDetails -Xloggc:GC.log -XX:parallelGCThreads=2 -jar mcpc-plus-legacy-1.4.7-R1.1-SNAPSHOT-f534-L7.jar nogui

A lot of that comes from suggestions from XCompWiz (Mystcraft), that helps the server handle ages better.
 

Dweight

New Member
Jul 29, 2019
20
0
0
Maybe bad question, but what can do my players ? This error is from the client launcher?
 

Dweight

New Member
Jul 29, 2019
20
0
0
I have these parameters (java -Xms$MINHEAP -Xmx$MAXHEAP -XX:MaxPermSize=128m -jar $SERVICE $OPTIONS) - special script... but everyday im getting this shity error...http://pastebin.com/m9E69Qf7
After first error players get lag and then server down...
 

UnionCraft

New Member
Jul 29, 2019
266
0
0
Code:
-XX:PermSize=128m -XX:MaxPermSize=512m

Worked for us (both client and server)

I have these parameters (java -Xms$MINHEAP -Xmx$MAXHEAP -XX:MaxPermSize=128m -jar $SERVICE $OPTIONS) - special script... but everyday im getting this shity error...http://pastebin.com/m9E69Qf7
After first error players get lag and then server down...

Update MCPC+ Legacy to #15, this apparently fixes the xycraft crash (which is what your log is)
http://ci.md-5.net/job/MCPC-Plus-Legacy/