Tomcat 应用程序没有响应且没有日志
Posted
技术标签:
【中文标题】Tomcat 应用程序没有响应且没有日志【英文标题】:Tomcat application not responding with no logs 【发布时间】:2012-03-16 16:39:06 【问题描述】:我已将 apache 配置为将请求转发给 tomcat。以下是我的配置。
<VirtualHost *:80>
ServerName ***
ServerAlias ***
ServerAlias ***
RewriteEngine on
RewriteCond %HTTP_HOST =***
RewriteRule (.*) https://***/ [R]
RewriteCond %HTTP_HOST =***
RewriteRule (.*) https://***/ [R]
RewriteCond %HTTP_HOST =***
RewriteRule (.*) https://***/ [R]
</VirtualHost>
<VirtualHost *:443>
ServerName ***
ServerAlias ***
ServerAlias ***
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/***.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/***.key
SSLCACertificateFile /etc/pki/tls/certs/***.crt
</VirtualHost>
我在 apache 日志中收到以下错误
[Sun Feb 26 23:28:28 2012] [error] (111)Connection refused: proxy: AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed
[Sun Feb 26 23:28:28 2012] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Sun Feb 26 23:28:28 2012] [error] proxy: AJP: failed to make connection to backend: localhost
[Sun Feb 26 23:28:29 2012] [error] proxy: AJP: disabled connection for (localhost)
[Sun Feb 26 23:28:29 2012] [error] proxy: AJP: disabled connection for (localhost)
它工作了一段时间然后突然我收到以下错误
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
当我尝试netstat -antup | grep 8009
命令时,我得到了以下信息
tcp 1 0 ::1:40293 ::1:8009 CLOSE_WAIT 32434/httpd
tcp 1 0 ::1:40288 ::1:8009 CLOSE_WAIT 32430/httpd
tcp 1 0 ::1:40289 ::1:8009 CLOSE_WAIT 32429/httpd
tcp 1 0 ::1:40294 ::1:8009 CLOSE_WAIT 32622/httpd
tcp 1 0 ::1:40292 ::1:8009 CLOSE_WAIT 32435/httpd
tcp 1 0 ::1:40290 ::1:8009 CLOSE_WAIT 32436/httpd
tcp 1 0 ::1:40287 ::1:8009 CLOSE_WAIT 32433/httpd
我不知道我的问题出在哪里。是apache配置还是tomcat配置还是编码问题……我相信是配置问题……请帮帮我..
【问题讨论】:
你的tomcat配置监听的端口是什么? 我的 tomcat 配置为 SSL 的 8080 和 8443,我也有 ajp '修复后我遇到了两个问题 tomcat 没有崩溃..
-
在 Hardisk 中有坏扇区。我在消息日志中发现所以 java 崩溃了。。
我让旧的石英调度程序运行..我删除了,然后现在 tomcat 没有崩溃..
【讨论】:
以上是关于Tomcat 应用程序没有响应且没有日志的主要内容,如果未能解决你的问题,请参考以下文章