Windows .exe Choppyness from Chunk Updates, then OutofMemoryErrors!?

  • 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

Saterra

New Member
Jul 29, 2019
2
0
0
Launcher version 1.2.7
Minecraft version 1.5.2
Java version 7, update 45

Description of Issue:

-Hey guys. I'm rather new to the forums, and I mainly joined because this problem is annoying the hell out of me. I am currently running an Unleashed server through portforwarding off my router, and using my own machine as the server computer.

-When I first started it up, I noticed that I was getting insane chunk updates that wouldn't stop even if we kept playing and letting the world load. Went through many many forum posts on MinecraftForums and on the FTB forums, and found that people were having similar issues. They were told to change their RAM configurations for their .bat files. Now me being the noob that I am, I took the string of code that they posted and pasted it into my ServerStart.bat file. Here is this code (I'm still using this):

"C:\Program Files\Java\jre7\bin\java" -server -Xincgc -Xmx4096M -Xms2048M -Xmn1024M -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:parallelGCThreads=4 -XX:+AggressiveOpts -cp "ftbserver.jar" -jar "ftbserver.jar"

-Also, the code in my ServerStart.sh file is:

java -Xms2048M -Xmx3G -XX:permSize=256m -jar ftbserver.jar

-My computer specs are:

i7 3770K
16 GB of RAM
GTX 680 + FTW
Windows 7 64-bit

-Now, on with the story. This fixed the problem for the most part. Though my friends and I noticed insane fluctuation in our ChunkUpdates when we pressed F3, the lag and choppyness were gone.


-Because no problem fixes everything, this start another set of issues for me. NOW I am getting OutofMemoryErrors left and right. Here is the last one:

OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Connection #12 read thread"

-Generally, these issues happen after a long time of playing (possibly a few hours) and are hard to replicate because I have no idea what causes them. Finally, I have no idea where to look for the exact logs from the command prompt. I do remember, however, that many of my errors involved Java heaps such. Sorry for the lack of detail, just don't know where to look. ;(

*So my question to you is, is there anything that can be done about the choppyness? Is anything in the .bat file or the .sh file causing or relieving the choppyness? And what do you think may be causing the crashes? How can they be resolved?


Error logs unavailable, don't know where to find them. :(
Thanks. ;)
 

Saterra

New Member
Jul 29, 2019
2
0
0
How much memory have you allocated to the sever? How much memory have you allocated to the launcher.

For log informormation go here.

Allocated for the server? Well..you can find that in the ServerStart.bat file that I posted up there. I don't know exactly which one it is. I'm pretty sure xms is the start amount, and it can use up to xmx amount. I allocated 4096MB to it on xmx, and start is 2048MB.

As for logs, that says nothing. I already found that thread and went through it, and there are no error messages in there that are relevant to my crash. In fact, there is no trace of the crash in the server.log file. Wierd, huh?