如何检测503服务暂时无法使用错误原因和处理呢? [英] How to Detect cause of 503 Service Temporarily Unavailable error and handle it?

查看:572
本文介绍了如何检测503服务暂时无法使用错误原因和处理呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误503服务暂时无法使用很多次我的应用程序
我要检测为什么会出现此错误,怎么办?如果有一个日志文件或类似的东西,因为我不熟悉Apache。

i am getting the error 503 Service Temporarily Unavailable many times in my application and i want to detect why this error occurs, how ? if there's a log file or something like that, since i am not familiar with apache.

第二件事情是,它是来处理这个错误,当它发生时重新启动Apache的?

second thing is that, is it possible to handle this error, that when it occurs apache is restarted ?

推荐答案

当然还有一些Apache日志文件。在日志关键字的Apache配置文件的搜索,你一定会发现很多他们。根据您的操作系统和安装的地方可能会有所不同(在一个典型的Linux服务器这将是/var/log/apache2/[access|error].log)。

There is of course some apache log files. Search in your apache configuration files for 'Log' keyword, you'll certainly find plenty of them. Depending on your OS and installation places may vary (in a Typical Linux server it would be /var/log/apache2/[access|error].log).

在有Apache的503错误通常意味着的代理页/服务不可用。我假设你使用的是Tomcat,这意味着Tomcat是要么不回应阿帕奇(超时?),甚至不可用(下来?坠毁?)。所以有机会,它在连接Apache和Tomcat或应用程序的tomcat里面那甚至不是发送Apache的响应方式的配置错误。

Having a 503 error in Apache usually means the proxied page/service is not available. I assume you're using tomcat and that means tomcat is either not responding to apache (timeout?) or not even available (down? crashed?). So chances are that it's a configuration error in the way to connect apache and tomcat or an application inside tomcat that is not even sending a response for apache.

有时,在生产服务器,它可以同时是你得到太多的交通Tomcat服务器,Apache的处理比proxyied服务(Tomcat)的多个请求能接受这样的后端变得不可用。

Sometimes, in production servers, it can as well be that you get too much traffic for the tomcat server, apache handle more request than the proxyied service (tomcat) can accept so the backend became unavailable.

这篇关于如何检测503服务暂时无法使用错误原因和处理呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆