最近生产上进群环境出现系统访问缓慢,甚至出现网络连接超时现象。
问题起因汇总:1,服务器所在物理主机出现ioerror ,后来和云平台同事那边了解到是云主机出现设备故障引起的文件系统损坏。
2,每个集群节点tomcat 并发连接优化,如下:
tomcat的maxThreads、acceptCount(最大线程数、最大排队数)
acceptCount | The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. The default value is 100. |
maxThreads | The maximum number of request processing threads to be created by thisConnector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 200. If an executor is associated with this connector, this attribute is ignored as the connector will execute tasks using the executor rather than an internal thread pool. |