tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080 .
来源:互联网 发布:被淘宝卖家骂了怎么办 编辑:程序博客网 时间:2024/06/10 22:27
1、INFO: Maximum number of threads (200) created for connector with address null and port 8091
说明:最大线程数错误
解决方案:
使用线程池,用较少的线程处理较多的访问,可以提高tomcat处理请求的能力。使用方式:
首先。打开/conf/server.xml,增加
maxThreads="500" minSpareThreads="20" maxIdleTime="60000" />
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="500" minSpareThreads="20" maxIdleTime="60000" />
最大线程500(一般服务器足以),最小空闲线程数20,线程最大空闲时间60秒。
然后,修改<Connector >节点,增加executor属性,如:
port="80" 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 查看文件操作数
如下操作:
(2) lsof -p 10001|wc -l 查看当前进程id为10001的 文件操作数
(3)使用命令:ulimit -a 查看每个用户允许打开的最大文件数 默认是1024.
(4)然后执行:ulimit -n 65536 将允许的最大文件数调整为65536
- 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 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报错INFO: Maximum number of threads (200) created for connector with address null and port 8080
- 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 8091
- 线上问题排查: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)
- tomcat启动报Address already in use: JVM_Bind <null>:8080
- tomcat启动报错:java.net.BindException: Address already in use: JVM_Bind<null>:8080
- tomcat启动报错 Address already in use: JVM_Bind<null>:8080
- tomcat启动报错 Address already in use: JVM_Bind<null>:8080 .
- Tomcat运行报错:Address already in use:JVM Bind<null>:8080
- 启动Tomcat时,报错;Address already in use: JVM_Bind<null>:8080
- 【设计模式】学习笔记1:策略模式(Strategy)
- C++虚函数
- ScrollView中若嵌套有滑动的控件(如:WebView,ListView或GridView)焦点问题
- hdu 1142 A Walk Through the Forest
- android体系化展示
- tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080 .
- hdu 4619 (二分匹配,最大匹配)
- gdb android 调试cgdbserver
- cg profiles,什么是profiles,以及如何使用CGC编译Cg语言
- 自己验证的一片扯淡的骨架提取论文
- status和state
- 嵌入式领域linux作为实时操作系统的缺点
- poj - 1273 - Drainage Ditches(最大流)
- oracle 日期处理