apache+tomcat 负载集群报错跟踪及解决

本文详细记录了在Apache+Tomcat负载集群环境下遇到的线程耗尽、数据库连接错误、网络问题及MySQL崩溃等问题,以及相应的解决步骤。通过调整Apache的ThreadsPerChild参数、优化TCP连接设置、禁用MySQL的DNS反查以及解决网络名不可用的故障,成功解决了系统运行中出现的性能和稳定性问题。
摘要由CSDN通过智能技术生成

 一、搭建集群之后部署应用系统,约有200人同时使用该系统进行做账。定期出现访问问题,而且是tomcat崩溃,跟踪log如下:

apache

Server ran out ofthreads to serve requests. Consider raising the ThreadsPerChild setting

[warn] (OS 64)指定的网络名不再可用。  : winnt_accept:Asynchronous AcceptEx failed.

tomcat

Unable to receivemessage through TCP channel

 

Session id mismatch, notexecuting the delta request

The web application []appears to have started a thread named [pool-1-thread-1] but has failed to stopit. This is very likely to create a memory leak.

严重: The web application [/finance] appears to have started athread named [AWT-Windows] but has failed to stop it. This is very likely tocreate a memory leak.
2013-12-24 9:26:37 org.apache.catalina.ha.session.DeltaManager stop
信息: Manager[localhost#/docs] expiring sessions upon shutdown

 

警告: Manager [localhost#/finance]: Drop message SESSION-MODIFIEDinside GET_ALL_SESSIONS sync phase start date 13-12-24上午9:26 message date13-12-24上午9:26
2013-12-24 9:26:53org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener messageReceived

经查询,得知ThreadsPerChild参数是默认64一般够用了,而现在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值