We are using Dedicated Server for our E-comerce site designed in Java. DB used is Mysql. We used Tomcat and Apache. But often the site goes down. Sometime, when I restart Tomcat / Apache - the site will work after 503 temporarily down and in the other case, I have to restart the server itself to make my site working. What could be the problem and what factors should I look into to resolve the problem.
Hello, Did you checked the error logs? Can you find anything in logs? In case of a Linux server, the tomcat error logs could be found in the following files. ======= /usr/local/jakarta/tomcat/logs/catalina.err and /usr/local/jakarta/tomcat/logs/catalina.out ======= Please check these logs at the time when the error occurs. You will get a clue on what is happening there.
Is any other tech working in your server? Anyway check /var/log/messages and server /tmp partition, memory usages.
Check /usr/local/apache/logs/error_log via tail -f in ssh to see what apache is up to. This will also display major tomcat errors causing apache errors.