Can't seem to make my server crash...

  • 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

Eremite

New Member
Jul 29, 2019
12
0
0
I've got FTB running on a Virtual Machine on my home computer and I got some friends on and we were trying like hell to crash the thing. We tried a 10x10x10 room of dynamite and while it made a very pretty hole, it only raised the load temporarily. Next was a massive row of nuclear reactors with no coolant. Same result, only with a bigger hole.

Then we started just dropping world anchors everywhere and blasting the bajeezus out of the countryside with mining lasers set to explosive while flying around to force new chunk generation.

Still no crash.

So, the reason I'm trying to make my server crash is that I want to test out a script I have that will re-start the server if it crashes by checking to see if its process exists:

Code:
#! /bin/bash
while [[ 1 ]]
 do
  if [[ "$(ps faux | grep FTB-Beta-A.jar|grep -v grep)" == "" ]]
   then echo -e "$(date) -- Server NOT running...  Attempting to start."
    java -Xms512M -Xmx4G -jar FTB-Beta-A.jar &
  else echo "$(date) -- Server detected as running."
  fi
  sleep 60
done

This is what I use to launch the server. If it finds the server already running, it does nothing, but if it doesn't see the process, it will start up the server again. If I close the server or kill the process, then the script will restart it after the next check (60 seconds between).

Problem is, I'm not sure if the .jar fill actually *closes* when the server crashes. Does it? Or does the process stay open to display errors, etc? It didn't occur to me until after all that destruction to simply ask some people who might have had the server crash on them already. :D

Thanks.
 

Eremite

New Member
Jul 29, 2019
12
0
0
Bumping with script update. I'm pretty sure it's gonna work since I think I managed to crash it on my test VPS mucking around with fifo named pipes trying to figure out how to send input directly to the console.

https://github.com/Sindern/rtb
 

CrafterOfMines57

New Member
Jul 29, 2019
275
0
0
I don't know if it is still in or not, or if you can easily add additional mods to your server, but I managed to run out of memory in a minecraft game only once when I used the 1.2.5 version of Explosives Plus, back when I used it there was a bomb that let you explode blocks into the world, and if you set the block exploding block to put itself into the world you could get an infinite feedback loop that would be probably very effective at crashing a server.
 

Greedseed

New Member
Jul 29, 2019
1,107
0
0
99% of the time the .Jar will NOT close !
If it is closing this is due to bad setup of the server or out of date java.

But in most cases it is a crash due to java conflicts or a bug in a mod. So most of the time the server will Freeze up, or the console will just start spamming. But the java prosses will not actually close.