Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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 :D

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...