Problem Mindcrack Java Garbage Collect Problem

  • 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

usmcsnipes

New Member
Jul 29, 2019
140
0
0
I have this issue with my mindcrack server, I have tried everything possible to fix it and nothing seems to work. The problem only stared happening after we installed tick-threading and I would assume that the issue is with that. We have tried multiple builds of tick-threading, mcpc, java, and also messed around with the config chunk-gc options as well. Basically as you can see in the picture below the Garbage Collector for the server does not seem to be functioning properly and I have no idea why. The GC count slowly goes up to around 5,000 in about an hour or two time, and then the server slowly looses tps until it is unplayable which usually takes about 5-10 mins after the GC is at 5,000. The time that it takes for the GC to go up also depends on the amount of players on the server, when there is anywhere from 10-15 players on the server needs a restart every 2 hours or so. When there is 20+ players on it usually takes and hour or less for the GC to become filled up. If anybody has any idea how to fix this it would be greatly appreciated. Also if you need me to better explain this or show you more information just ask. Also the only post that I was able to find on any of the forums or google was this here: https://github.com/nallar/TickThreading/issues/277 where it was supposedly patched almost 2 months ago, although I don't think that is the same issue.




cxCLK7g.png
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
What arguments are you passing to your server when you start it? Please copy paste your complete .bat or .sh file (whichever you are using.)
 

usmcsnipes

New Member
Jul 29, 2019
140
0
0
It's a dedicated server, we have been running ftb servers since December and this is the first major problem that we have not been able to fix.
CPU: Intel Xeon E3-1245v2 3.4x4
Memory: 32GB DDR3
HDD: 2x120GB SSD's in raid
100mbps internet connection​
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Kk.

I'm at work on my phone atm. When I get home I'll give you some new arguments. Your gc isn't even slotted to start running until you reach over 4.5G of ram and your young generation might be set to high me thinks also.
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Code:
java -d64 -server -showversion -Xmn10G -Xms19G -Xmx19G -Xss128K -XX:+UnlockExperimentalVMOptions -XX:MaxTenuringThreshold=10 -XX:ParallelGCThreads=4 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseG1GC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:+UseLargePages -jar mcpc.jar nogui --nojline
pause

put that into a new .bat file. dont get rid of the old one. run this one for a bit to see if i need to tweak it any.
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
btw, no matter what you do, your heaps will "fill up"

the above should reduce, prevent any lag as the gc collects the garbage files. ive used similar fine on 5-6 man servers and cut alot of the normal gc lag out so this should help.

another thing you can do is open up your forge chunk loading.cfg and adjust the dormant chunk cache (default = 0) to about 8192, or maybe even higher since you have more than enough ram. i run it at 2048 with 4 gigs allocated to my ssp an it cuts down lag alot. ive never set the cache higher than that 8192, though.
 

usmcsnipes

New Member
Jul 29, 2019
140
0
0
Ok I will have to try these tomorrow as I had to take tick-threading off of the server because restarts every hour was getting unbearable, but tomorrow I will let you know how the above .bat works. Thanks!
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
np.

one note though, i have never used g1gc with tick-threading. so i dont know how they will play together. if you do reinstall tick-threading let me know how this works with it.
 

usmcsnipes

New Member
Jul 29, 2019
140
0
0
It runs fine for usually 2-3 hours then tick-threading makes the server crash with a java outofmemory exception, not exactly sure what it was but if it happens again I will post.
 

usmcsnipes

New Member
Jul 29, 2019
140
0
0
No not yet i'm gonna see if this java error appears again, if so i'll let you know. Thanks for the .bat startup again :D
 
  • Like
Reactions: Eyamaz

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Remove the -XX:UseLargePages from the .bat

Also go into the forgeChunkLoading.cfg and change the dormant chunk cache to 1024.
 

jp694

New Member
Jul 29, 2019
26
0
0
i feel like my server has the same issue but i removed tick threading my server crashes every hour or 2 with 10-20+ people on and in /lag
max mem 17,354
allocated mem 17,354
free mem 16,308
thats what happens right before it crashes i don't have any extra launch perimeters any help for me