TOMCAT5的站点时常爆满宕机,跪求解决方案。

thread已经开到512M了。刚开机就有占用300个,实在不解。

下面是manager中的状态信息。看到很多stage=K的,解释为KeepAlive不知道什么意思。而且Time到了60s才释放这个thread。


Max threads: 512 Min spare threads: 64 Max spare threads: 300 Current thread count: 320 Current thread busy: 213

Max processing time: 0 ms Processing time: 0.0 s Request count: 0 Error count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB

Stage Time B Sent B Recv Client VHost Request
K 25771 ms ? ? 222.64.63.34 ? ?
K 2709 ms ? ? 222.212.14.46 ? ?
K 35168 ms ? ? 61.171.4.227 ? ?
R ? ? ? ? ? ?
K 57292 ms ? ? 222.175.169.60 ? ?
K 358 ms ? ? 60.164.144.140 ? ?
K 43673 ms ? ? 222.35.81.134 ? ?
K 6281 ms ? ? 222.183.192.101 ? ?
K 12170 ms ? ? 218.19.212.13 ? ?
R ? ? ? ? ? ?

是不是有大量的Socket等待在CLOSE_WAIT状态

一般和Tomcat关系不太大,可以微调运行线程和等待时间等参数。
主要可能是应用程序发生内存泄漏等问题。

那个UFO是怎么回事?