Problem Server crashing (.bat help)

  • 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

Varen

New Member
Jul 29, 2019
2
0
0
Hi all,

  • Operating System - Windows 8 (64-bit)
  • Running on my home PC, yes I do run the client as well.
  • Running FTB Unleashed v1.1.3
  • I added some disabled mods, DeathTimer, EnchantingPlus, Hats, HatStand, NetherOres, PowerConverters, Reliquary. (I know I was having the laggy issues before I enabled these).
  • Specs:
    • Intel Core i5 760 @ 2.80 GHz
    • 8GB DDR3 RAM
    • 2TB WD Black (WD2002FAEX-007BA0)

So I know my setup isn't the greatest but I can get the server running just the way I want it under certain circumstances, the only problem is that is crashes after a couple of hours when anyone is playing on the server.

Well to start from the beginning, I had been running the server with the default .bat file, just adjusted for RAM.

java -Xms2G -Xmx4G -XX:permSize=128m -jar ftbserver.jar

My friends and I (yes I was experiencing it too) had been noticing a weird type of lag, kind of felt like was glitching out.

I did a bit lerking around on the forums and found some posts about modifying .bat files.

I pieced together these....

Code:
java -server -Xincgc -Xmx4G -Xms1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1
-XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC
-XX:+DisableExplicitGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods
-XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4
-XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=2 -XX:+AggressiveOpts
-cp ftbserver.jar -jar ftbserver.jar

Code:
java -server -Xincgc -Xmx4G -Xms1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1
-XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC
-XX:+DisableExplicitGC -Xnoclassgc -XX:+UseFastAccessorMethods
-XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4
-XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts
-XX:ReservedCodeCacheSize=1G  -cp ftbserver.jar -jar ftbserver.jar

They both make the server run great, except the fact that after a couple of hours of anyone playing on the server, the server crashes.

Could anyone check through that .bat's and figure out why? I'm assuming it has something to do with those.

Terribly sorry I forgot to make a note of any messages that occur when the server crashes, I'm running the server with the original .bat now so if needed I can switch back and make it crash post what messages I receive. I know all players get disconnected, the server window stays open and no one can reconnect. I can't type "stop" to shut down, I have to 'x' out of it and start the sever again.

Thanks all.
 

twitch204

New Member
Jul 29, 2019
14
0
0
If my understanding is ram is correct, windows is going to take a gig to a gig and half all by itself. You I assume are playing on the server while hosting it? My personal computer to run FTB takes around 4 gig of ram, so where up to 5.5 my server normally runs around 5 gig with 3-7 people on. So, i think that your just don't have the memory avilable to run it and that is why it is crashing. Even if your not on the server, everything you have running is going to take up some ram, from chrome to anything.
 

Varen

New Member
Jul 29, 2019
2
0
0
Yeah I do play on the computer as well.
I've been keeping an eye on my RAM through task manager (I don't know how accurate it is). It usually hangs around the 5-6GB mark (I have a total of 8GB).
Designated 1-4GB for the server. 1GB for client.
Although I must admit I probably haven't payed attention to it just before crashing.
I only have 3 people on my server atm including myself, may get up to 4 soon.

I guess I'll try them out again and try to really watch the RAM, also watch out for any error messages and post back.

Thanks for input!