Maximum number of threads (200) created for connector with address null and port 9999
来源:互联网 发布:spss19.0 统计软件 编辑:程序博客网 时间:2024/05/23 21:27
1、INFO: Maximum number of threads (200) created for connector with address null and port 8091
说明:最大线程数错误
解决方案:
使用线程池,用较少的线程处理较多的访问,可以提高tomcat处理请求的能力。使用方式:
首先。打开/conf/server.xml,增加
- <Executorname="tomcatThreadPool"namePrefix="catalina-exec-"
- maxThreads="2500"minSpareThreads="20"maxIdleTime="60000"/>
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="500" minSpareThreads="20" maxIdleTime="60000" />
最大线程500(一般服务器足以),最小空闲线程数20,线程最大空闲时间60秒。
然后,修改<Connector ...>节点,增加executor属性,如:
- <Connectorexecutor="tomcatThreadPool"
- port="9999"protocol="HTTP/1.1"
- connectionTimeout="60000"
- keepAliveTimeout="15000"
- maxKeepAliveRequests="1"
- redirectPort="443"
- ....../>
<Connector executor="tomcatThreadPool" port="80" protocol="HTTP/1.1" connectionTimeout="60000" keepAliveTimeout="15000" maxKeepAliveRequests="1" redirectPort="443" ....../>
2、java.net.SocketException: Too many open files
当tomcat并发用户量大的时候,单个jvm进程确实可能打开过多的文件句柄。
使用 #lsof -p 10001|wc -l 查看文件操作数
如下操作:
- (1).ps -ef |grep tomcat 查看tomcat的进程ID,记录ID号,假设进程ID为10001
- (2).lsof -p 10001|wc -l 查看当前进程id为10001的 文件操作数
- (3).使用命令:ulimit -a 查看每个用户允许打开的最大文件数
- 默认是1024.
- (4).然后执行:ulimit -n 65536 将允许的最大文件数调整为65536
- Maximum number of threads (200) created for connector with address null and port 9999
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080 .
- tomcat报错INFO: Maximum number of threads (200) created for connector with address null and port 8080
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- tomcat调优方案Maximum number of threads (200) created for connector with address null and port 8091
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
- 线上问题排查:Maximum number of threads (1000) created for connector with address null and port 9502
- 解决:Maximum number of threads (200) created for connector with address null
- LINUX AND THE MAXIMUM NUMBER OF PROCESSES (THREADS)
- how to check port number and kill process with the port number
- <Socket> <BEA-000402> <There are: 5 active sockets, but the maximum number of socket reader threads
- A web application created a ThreadLocal with key of type [null]
- SSH-A web application created a ThreadLocal with key of type [null]
- java.lang.IllegalArgumentException: Tuple created with wrong number of fields. Expected 1 fields but
- Communications of Processes and Threads
- 最近做的一个Ngui 的Dragable Panel的上下左右拖拽锁
- python学习总结--数字
- 三种自定义CELL 的方法
- Cstyle的UEFI导读之SEC --- Reset Vector(下篇)
- jdbc中使用序列
- Maximum number of threads (200) created for connector with address null and port 9999
- 年过40岁的雷军致已逝去的青春!
- 关于hive升级到0.11的版本问题2
- php连接数据库
- iOS iBoot和iOS版本对应关系
- 输出"烫烫烫烫烫烫烫烫烫烫烫烫"
- Android 自定义 spinner (背景、字体颜色)
- python学习总结-- 字符串
- 使用CAShapeLayer与UIBezierPath画出想要的图形