Problem Server crash once a day - Linux

  • 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

HotRod

New Member
Jul 29, 2019
6
0
0
Hi our server needs to be restarted every day - java runs, but is not responding.
We are running a restart script, but this only works if server has stopped completely i.e. FTB .jar is not running any more.
If I try to issue a stop command it does not shut down.
I have to kill it with -9
When I issue start command it works fine for another day.

The server starts with 4608MB (max\min) memory allocated.
Start string:

FTB version: 1.4.7 (1.1.2) Ultimate
Server solution: Dedicated headless server, hosted on fiber network at home.
Server os: Linux, ClearOS (centos) 64bit
Server hw:
CPU: Intel i3-2120 @ 3.30GHz
Mem: 8GB.
HDD: SATA-3 7200rpm Hitachi, 1TB (brand new).

Mods: None, but the ones that came default with Ultimate

Java: java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

Any suggestions what could cause this hang/freeze/crash?
Been previously hosting Minecraft vanilla, Tekkit and now FTB server on this hardware - no problems like this.

I have tried a full reinstall of the server OS and FTB server, same thing happens. HDD was also swapped due to failure.
I have tried to run the server directly without screen as root - same issue.

The crashlogs really don't tell me so much, maybe someone here know how to read them?
The log: http://pastebin.com/px7vd29h

Please advice...
 

cjm721

New Member
Jul 29, 2019
734
0
1
Gata love the garbage collector. Try:
Code:
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -server -Xmx8G -XX:UseSSE=4 -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:+AggressiveOpts -XX:-OmitStackTraceInFastThrow -jar ultimate.jar nogui

just have to change the java path
 

Dingham

New Member
Jul 29, 2019
294
0
0
I'm a bit of touch with pack support, sort of looks like a memory leak issue. I found the best way to deal with it is server restarts every 12hours.
 

HotRod

New Member
Jul 29, 2019
6
0
0
cjm721
Not sure what to do with that string... Is it supposed to be a part of my startscript?
Paste of my startscript: http://pastebin.com/gPqAqZxe

Dingham
What would a good way be to automatically restart the server every 12h? I guess it would involve making a cron job?

Please bear with me, i'm fairly new to java and a novice on linux.
 

Dingham

New Member
Jul 29, 2019
294
0
0
yeah, I just did a little script that is triggered by a cronjob, to stop the server, wait 2 minutes the restart it. I only advises, make sure you name a specific screen, otherwise it can create a new screen and not work.
 

cjm721

New Member
Jul 29, 2019
734
0
1
All that is going on is that the Garbage collector is running out of space. In your startup script has the same java parameters mine does, but some of them are commented out. From the looks of it that is ForgeCraft's script which have to be a bit careful with as it is highly customized for their server and the way java is odd in the fact that it runs better with less memory right up until it runs out of memory. I would readd what java parameters I have in my script to yours, and change the maxpermgen to 256M and see how that goes for you.