Problem [INFO] [Minecraft-Server] Stopping server

  • 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

heartcore

New Member
Jul 29, 2019
21
0
0
Hello,

Me and some friends are trying to play on our own hosted server be the server constantly keeps closing with this error: with an error first i tought the error had to do with the ram the server was using, but i changed it, and now it crashes more frequently. I put both XMX and permgemsize to 6G, i have 18g or ram. Are there any other things i can do? this is unbearable to play for us, every time we log on the server crashes.

2013-12-01 14:24:19 [INFO] Starting Minecraft server on 25.97.170.4:25565
2013-12-01 14:24:27 [INFO] Preparing level "world"
2013-12-01 14:24:27 [INFO] Preparing start region for level 0
2013-12-01 14:24:27 [INFO] Done (0.421s)! For help, type "help" or "?"
2013-12-01 14:24:27 [INFO] Damage Indicators Mod v.2.7.0.1 is out of date. v.2.9.1.6 is now available.
2013-12-01 14:24:27 [INFO] Stopping server
2013-12-01 14:24:27 [INFO] Saving players
2013-12-01 14:24:27 [INFO] Saving worlds
2013-12-01 14:24:27 [INFO] Saving chunks for level 'world'/Overworld
2013-12-01 14:24:27 [INFO] Closing listening thread
2013-12-01 14:24:27 [INFO] Saving chunks for level 'world'/Nether
2013-12-01 14:24:27 [INFO] Saving chunks for level 'world'/The End
2013-12-01 14:24:27 [INFO] Saving chunks for level 'world'/Promised Land
2013-12-01 14:24:27 [INFO] Saving chunks for level 'world'/Twilight Forest
2013-12-01 14:24:27 [INFO] Stopping server
2013-12-01 14:25:32 [INFO] Starting minecraft server version 1.5.2
2013-12-01 14:25:57 [INFO] Loading properties
2013-12-01 14:25:57 [INFO] Default game type: SURVIVAL
2013-12-01 14:25:57 [INFO] Generating keypair
2013-12-01 14:25:57 [INFO] Starting Minecraft server on 25.97.170.4:25565
2013-12-01 14:26:11 [INFO] Preparing level "world"
2013-12-01 14:26:12 [INFO] Preparing start region for level 0
2013-12-01 14:26:13 [INFO] Preparing spawn area: 50%
2013-12-01 14:26:13 [INFO] Done (2.607s)! For help, type "help" or "?"
2013-12-01 14:26:14 [INFO] Damage Indicators Mod v.2.7.0.1 is out of date. v.2.9.1.6 is now available.
2013-12-01 14:26:14 [INFO] /25.97.170.4:58662 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57678 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57680 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57681 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57683 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57677 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57684 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57686 lost connection
2013-12-01 14:26:14 [INFO] /25.203.26.3:57688 lost connection
2013-12-01 14:26:20 [INFO] sinterpad[/25.203.26.3:57696] logged in with entity id 231 at (-577.6384273968343, 70.0, 548.8432531353491)
2013-12-01 14:26:20 [INFO] Vls_Product[/25.97.170.4:58671] logged in with entity id 244 at (-597.4794436609906, 11.0, 618.9973094294926)
2013-12-01 14:26:34 [INFO] [Vls_Product: Set own game mode to Creative Mode]
2013-12-01 14:26:47 [INFO] [Vls_Product: Set own game mode to Survival Mode]
2013-12-01 14:27:13 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
2013-12-01 14:27:50 [INFO] Stopping server
2013-12-01 14:27:56 [INFO] Saving players
2013-12-01 14:27:57 [INFO] Closing listening thread
2013-12-01 14:29:38 [INFO] Starting minecraft server version 1.5.2
2013-12-01 14:30:03 [INFO] Loading properties
2013-12-01 14:30:03 [INFO] Default game type: SURVIVAL
2013-12-01 14:30:03 [INFO] Generating keypair
2013-12-01 14:30:03 [INFO] Starting Minecraft server on 25.97.170.4:25565
2013-12-01 14:30:18 [INFO] Preparing level "world"
2013-12-01 14:30:19 [INFO] Preparing start region for level 0
2013-12-01 14:30:20 [INFO] Preparing spawn area: 31%
2013-12-01 14:30:21 [INFO] Preparing spawn area: 70%
2013-12-01 14:30:21 [INFO] Done (3.054s)! For help, type "help" or "?"
2013-12-01 14:30:21 [INFO] Damage Indicators Mod v.2.7.0.1 is out of date. v.2.9.1.6 is now available.
2013-12-01 14:30:22 [INFO] /25.203.26.3:57814 lost connection
2013-12-01 14:30:22 [INFO] /25.203.26.3:57815 lost connection
2013-12-01 14:30:22 [INFO] /25.203.26.3:57816 lost connection
2013-12-01 14:30:22 [INFO] /25.203.26.3:57817 lost connection
2013-12-01 14:30:28 [INFO] sinterpad[/25.203.26.3:57822] logged in with entity id 216 at (-582.7624999880791, 70.0, 542.8424678361234)
2013-12-01 14:30:49 [INFO] Vls_Product[/25.97.170.4:58765] logged in with entity id 815 at (-600.0406514343392, 11.0, 617.961070351329)
2013-12-01 14:31:02 [INFO] [Vls_Product: Set own game mode to Creative Mode]
2013-12-01 14:31:12 [INFO] [Vls_Product: Set own game mode to Survival Mode]
2013-12-01 14:31:16 [SEVERE] Encountered an unexpected exception OutOfMemoryError
java.lang.OutOfMemoryError: PermGen space
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(Unknown Source)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source)
at java.io_ObjectStreamClass.getSerializableConstructor(Unknown Source)
at java.io_ObjectStreamClass.access$1500(Unknown Source)
at java.io_ObjectStreamClass$2.run(Unknown Source)
at java.io_ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io_ObjectStreamClass.<init>(Unknown Source)
at java.io_ObjectStreamClass.lookup(Unknown Source)
at java.io_ObjectOutputStream.writeObject0(Unknown Source)
at java.io_ObjectOutputStream.writeObject(Unknown Source)
at com.google.common.collect.Serialization.writeMap(Serialization.java:65)
at com.google.common.collect.HashBiMap.writeObject(HashBiMap.java:659)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io_ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io_ObjectOutputStream.writeSerialData(Unknown Source)
at java.io_ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io_ObjectOutputStream.writeObject0(Unknown Source)
at java.io_ObjectOutputStream.writeObject(Unknown Source)
at denoflionsx.denLib.Lib.denLib$FileUtils.turnObjectToByteArray(denLib.java:376)
at denoflionsx.denLib.Lib.denLib$FileUtils.saveObjectToFile(denLib.java:363)
2013-12-01 14:31:17 [INFO] Stopping server
2013-12-01 14:31:17 [INFO] Saving players
2013-12-01 14:31:17 [INFO] Closing listening thread
2013-12-01 14:31:18 [INFO] Saving worlds
2013-12-01 14:31:22 [INFO] Saving chunks for level 'world'/Overworld
 

Solice2o0

New Member
Jul 29, 2019
69
0
0
You're running out of PermGen memory. Either you or the host must add this Java flag to allocate more PermGen memory.

-XX:MaxPermSize=256M
 
  • Like
Reactions: heartcore

heartcore

New Member
Jul 29, 2019
21
0
0
Hmm, can i add more since i tried to understand the error log and i put it at 6G and same with the -XmX so i had
java -Xms512M -Xmx6g -XX:permSize=6g -jar ftbserver.jar
 

lavarthan

New Member
Jul 29, 2019
2,437
0
0
Hmm, can i add more since i tried to understand the error log and i put it at 6G and same with the -XmX so i had
java -Xms512M -Xmx6g -XX:permSize=6g -jar ftbserver.jar
6GB is more than likely more than you'll ever need. Instead use these arguments and ensure that your server has the 64bit version of Java not the 32bit version, while removing all other versions including all the 32bit versions.
 
  • Like
Reactions: heartcore

heartcore

New Member
Jul 29, 2019
21
0
0
hmm, used those arguments, but when i a friend of me spawns a mining turtle in it seems to be crashing from that, for some weird reason, the server seems to get overloaded from one mining turtle
 

Solice2o0

New Member
Jul 29, 2019
69
0
0
Hmm, can i add more since i tried to understand the error log and i put it at 6G and same with the -XmX so i had
java -Xms512M -Xmx6g -XX:permSize=6g -jar ftbserver.jar

PermGen is only used to load up class files, you will never need more than 256MB of PermGen memory in Unleashed, let alone 6G's worth. Instead add these arguments in and your crash issue will disappear.

java -Xms14G -Xmx14G -XX:permGen=256M

The reason why your server instance was crashing is because the PermSize was taking up every little bit of memory that you allocated to the server. For instance, say you have;

java -Xms2G -Xmx2G -XX:permGen=256M

Because of the fact that you have 256M allocated to PermGen memory, your server will actually only have 1.75G of ram it can use.
 

heartcore

New Member
Jul 29, 2019
21
0
0
That is a little strange, unless it is poorly written code for the turtle program.
Well the turtle is spawned in from NEI since he created one, but then the server crashed shortly afterwards and he lost his turtle+the mats to make it.

PermGen is only used to load up class files, you will never need more than 256MB of PermGen memory in Unleashed, let alone 6G's worth. Instead add these arguments in and your crash issue will disappear.



The reason why your server instance was crashing is because the PermSize was taking up every little bit of memory that you allocated to the server. For instance, say you have;



Because of the fact that you have 256M allocated to PermGen memory, your server will actually only have 1.75G of ram it can use.

We have tried so many different aruments now, we are literally thinking of getting a server hosted by a professional company. i have tried everything you people have recommended. But still no luck.

Thanks for the answers.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
Well the turtle is spawned in from NEI since he created one, but then the server crashed shortly afterwards and he lost his turtle+the mats to make it.



We have tried so many different aruments now, we are literally thinking of getting a server hosted by a professional company. i have tried everything you people have recommended. But still no luck.

Thanks for the answers.
Well what errors are you getting now? With the per gem lowered this will prevent he out of memory error unless you have 32bit java/32bit windows. Also hosting with a company will change nothing other then internet speeds and a whole lot more money out of your pocket for that amount of ram.
 

Solice2o0

New Member
Jul 29, 2019
69
0
0
Yeah, speaking of which, if you're still having crash issues, try downloading the 64x version of Java, I found out when setting up both MySQL and my Minecraft server on the same bit version, it caused my server to have constant "Out of Memory" issues, reason for this is MySQL uses 32x whereas even if you're running a 32x system (Who runs 32x anymore? Lol), you can still install 64x and your server will be able to start up MySQL and Java at the same time.