TPS Stopper is an incredibly simple plugin that will run a command if the TPS on your server drops below a certain value.
By default, the command that will be run is 'stop'. This way, you can configure your batch file or shell script to automatically restart your server when it's stopped.
@echo off :start: java -Xmx1024M -Xms1024M -jar bukkit.jar goto start
#!/bin/bash while true; do java -Xmx1024M -Xms1024M -jar bukkit.jar done;