tommygun Posted October 4, 2017 Posted October 4, 2017 Hi all, Wonderful service so far, really happy with this website. I'm running a Java server on Tommy, and I notice that it gets restarted or put to sleep regularly. Is this intended? The server I'm running was designed to run constantly. I need to regularly access a servlet page in order to keep the matchmaking service running. Cheers,Tommygun
wolstech Posted October 4, 2017 Posted October 4, 2017 Apache restarts whenever needed (domain updates, etc.) on Tommy, and I believe Tomcat does the same, so yes, servlets are subject to restarting without notice. Krydos would know more and might have an idea what's going on/how we can make this work for you. Escalating.
tommygun Posted October 4, 2017 Author Posted October 4, 2017 Thanks I'd be very surprised to learn the resets are from extremely frequent updates.
Krydos Posted October 5, 2017 Posted October 5, 2017 Tomcat needs to restart occasionally. Sometimes it goes days without needing a restart and sometimes only a couple hours. It's kind of random when and why it needs to be restarted. During each restart there will be a minute or so of downtime where you will probably get a 503 error. The last restart was about 6 hours ago. I have an uptime monitor on tomcat and it's usually about 1% lower than the server as a whole.
tommygun Posted October 5, 2017 Author Posted October 5, 2017 A minute or so of downtime doesn't bother me. Does anyone know if I can Java hook into the tomcat startup process? Currently my init doesn't run until someone visits a servelet for the first time. Thanks for the replies folks
wolstech Posted October 5, 2017 Posted October 5, 2017 How about a cron to call your page every minute? Even though we restrict cron in cpanel, we can set it up externally at much greater frequencies as long as the script to be called can be triggered by visiting it in a browser. If that would work, post the URL we need to call and Krydos can set that up for you.
tommygun Posted October 5, 2017 Author Posted October 5, 2017 I think that would work. It's not exactly elegant, but I'd much appreciate that. http://tommygun.heliohost.org/warpaint11/log Thanks! If you guys want free Steam keys to play the game, I'm happy to send them PM me
Krydos Posted October 5, 2017 Posted October 5, 2017 I set up an external cron to hit http://tommygun.heliohost.org/warpaint11/log every few minutes.
Recommended Posts