tomcat能撑多少个并发?

xiaoxiao2022-06-12  37

有没有测试过tomcat并发量的 下面是我测试的 请求的页面如下 是最简单的 不涉及任何数据库操作 <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Insert title here</title></head><body> <div><a href="/ask/index.html">问答频道</a> </div></body></html> 线程数 耗时(ms)100 350ms-400ms150 450 - 500200 650300 850 - 900 中间报过一次异常[code="java"] java.net.BindException: Address already in use: connect 400 1200 中间经常报上面的异常 600 1600 有时会600ms左右 有时2000多ms 1000 2400 左右[/code] 平均下来 300-400/s 增大tomcat线程数 maxThreads="1000" acceptCount="1000" 之后又测试 感觉没有多大变化 不知道是配置有问题 还是怎么滴 听说tomcat6配置线程池 能够提高处理的速度 空了要试试
转载请注明原文地址: https://www.6miu.com/read-4933076.html

最新回复(0)