运行环境windows 2003+jdk1.4+tomcat5.0.27.后面数据库为oracle9i配置及运行状态:
jvm
Free memory: 796.39 MB Total memory: 988.93 MB Max memory: 988.93 MB
http-80
Max threads: 500 Min spare threads: 25 Max spare threads: 75 Current thread count: 319 Current thread busy: 280
Max processing time: 429031 ms Processing time: 20028 s Request count: 139289 Error count: 20925 Bytes received: 3.12 MB Bytes sent: 522.09 MB
Stage Time B Sent B Recv Client
S 20441500 ms 0 KB 0 KB 220.169.128.23
S 21154609 ms 0 KB 0 KB 220.169.128.23
S 20591484 ms 0 KB 0 KB 61.187.123.245
还有很多
stage处于sever状态的线程数过高,且执行时间长的不可思议。tomcat日志中有与数据库连接失败报出,数据库并发线程没有用完。
目前,每次只有在线程快爆时重启tomcat,导致用户抱怨。
大家帮我看看是什么原因,有什么好办法。