烦,动不动就出现Service Temporarily Unavailable



QUOTE:
原帖由 todayhero 于 2008-6-21 01:29 发表



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

http://Y_R_HOSTNAME FOR Y_R_IP:8080

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

...

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


QUOTE:
原帖由 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.