免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 12458 | 回复: 4
打印 上一主题 下一主题

[Web] 烦,动不动就出现Service Temporarily Unavailable [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-20 15:18 |显示全部楼层 |倒序浏览
tomcat + apache
动不动就出Service Temporarily Unavailable
各jsp网站都打不开了,php倒是正常的很, 服务器配置应该足够, google了一下, 似乎跟apache的连接并发数有关系, 可是也简单设置了一下测试过, 没搞定, 请教一下, 具体应该配置哪些参数???

论坛徽章:
0
2 [报告]
发表于 2008-06-21 00:06 |显示全部楼层
原帖由 守住每一天 于 2008-6-20 17:43 发表
apache 与tomcat 在同一机器?

LZ 多提供点信息。



是的, 同一机器, 但php的站运行正常

论坛徽章:
0
3 [报告]
发表于 2008-06-21 00:07 |显示全部楼层
原帖由 ipaddr 于 2008-6-20 18:15 发表
走啥协议?mod_jk?

看Log。

估计是Tomcat死了,或连接数不够。




是的, 是mod_jk , 默认连接数是多少哟?似乎没几个人访问啊, tomcat仍在运行中。。。。。。。。

论坛徽章:
0
4 [报告]
发表于 2008-06-23 20:35 |显示全部楼层
原帖由 todayhero 于 2008-6-21 01:29 发表



1.独立测试一下tomcat是不是正常.方法很简单就是访问8080端口.若是正常,表示tomcat没有问题.

http://Y_R_HOSTNAME FOR Y_R_IP:8080

若是有问题了,那就看一下,日志输出,包括stderr stdout等日志

...



要烦死了, 看了下, 似乎是tomcat死了, 访问基本的html都访问不了, 一样报这个错误。
请教下如何调试及解决 ????

论坛徽章:
0
5 [报告]
发表于 2008-06-23 20:51 |显示全部楼层
原帖由 hmglly 于 2008-6-23 09:49 发表

你有100个访问的时候,才能出现100,你没有访问的话,出现一个已经不错了



在stdout中发现以下错误,不知道tomcat是不是因为这些才出问题

Exception in thread "TP-Processor2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor7" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor10" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor12" java.lang.OutOfMemoryError: PermGen space
2008-06-23 20:22:17,222 [com.laoer.bbscs.service.task.SubscibeSendTimerTask]-[INFO] Send Subscibe, subscibeQueue's Num:0
2008-06-23 20:22:17,222 [com.laoer.bbscs.service.task.SubscibeSendTimerTask]-[INFO] Send Subscibe End
Exception in thread "TP-Processor1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor8" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor6" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor16" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor9" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space
2008-06-23 20:27:17,285 [com.laoer.bbscs.service.task.SubscibeSendTimerTask]-[INFO] Send Subscibe, subscibeQueue's Num:0
2008-06-23 20:27:17,285 [com.laoer.bbscs.service.task.SubscibeSendTimerTask]-[INFO] Send Subscibe End
Exception in thread "TP-Processor15" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor14" java.lang.OutOfMemoryError: PermGen space
2008-06-23 20:27:31,722 [com.laoer.bbscs.service.task.LoginErrorClearTimerTask]-[INFO] Start LoginErrorClearTimerTask...
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6" Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor13" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor20" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor19" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor18" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-8080-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor17" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7" java.lang.OutOfMemoryError: PermGen space
Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor24" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TP-Processor23" java.lang.OutOfMemoryError: PermGen space
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:28
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP