网站首页 > 技术教程 正文
1.tomcat6大并发出现:INFO: Maximum number of threads (200) created for connector with address null and port 8091
说明:最大线程数错误
解决方案:使用线程池,用较少的线程处理较多的访问,可以提高tomcat处理请求的能力。使用方式:
修改server.xml
刚开始设置一直没有起作用,原因是将和分开了
使用Java自带的性监测工具
http://blog.csdn.net/feihong247/article/details/7874063
jstack用于打印出给定的java进程ID或core file或远程调试服务的Java堆栈信息,
jstack pid > file.log pid 使用ps aux|grep tomcat 进程号
查看file.log可以查看tomcat服务器java信息
http://www.blogjava.net/jzone/articles/303979.html
Redis阻塞了,原因是:获得redis实例的方法上使用了同步锁
解决方法:将同步锁synchronized去掉就可以了
2.修改redis连接实例的最大数目
3.修改linux tcp连接数 /etc/sysctl.conf
net.ipv4.tcp_max_tw_buckets = 30000
sudo sysctl -p (让修改生效)
猜你喜欢
- 2025-04-24 Linux 下安装最新版 MySQL
- 2025-04-24 快速教会你优雅的解决TCP客户端端口耗尽的问题
- 2025-04-24 Linux系统——用户、用户组、权限和文件属性
- 2025-04-24 Linux 远程数据同步工具详解
- 2025-04-24 高流量大并发Linux TCP性能调优
- 2025-04-24 linux 系统自动化巡检脚本总结
- 2025-04-24 Linux 解决 oracle ORA-12537: TNS:connection closed 问题
- 2025-04-24 Linux 网络错误 TCP: too many orphaned sockets 分析与解决
- 2025-04-24 MySQL max_connections 达到最大值 – 我们如何解决它
- 2025-04-24 socket连接数受端口号的限制?谬论
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- 下划线是什么 (87)
- 精美网站 (58)
- qq登录界面 (90)
- nginx 命令 (82)
- nginx .http (73)
- nginx lua (70)
- nginx 重定向 (68)
- Nginx超时 (65)
- nginx 监控 (57)
- odbc (59)
- rar密码破解工具 (62)
- annotation (71)
- 红黑树 (57)
- 智力题 (62)
- php空间申请 (61)
- 按键精灵 注册码 (69)
- 软件测试报告 (59)
- ntcreatefile (64)
- 闪动文字 (56)
- guid (66)
- abap (63)
- mpeg 2 (65)
- column (63)
- dreamweaver教程 (57)
- excel行列转换 (56)
本文暂时没有评论,来添加一个吧(●'◡'●)