记一次tomcat参数调试
来源:互联网 发布:数据挖掘 招聘 长沙 编辑:程序博客网 时间:2024/06/05 03:53
Tomcat 8.5.24参数调试测试
前置条件:
Endpoint类型:NioEndpoint
服务器配置: CentOS:7.2.1511 双核8G
业务逻辑代码:
long startTime = System.currentTimeMillis();PressureTestConfig config = channelConfigManager.getChannelConfig(rq.getChannelId());if(config != null && config.getDaoConfig() != null){ stopTime = config.getDaoConfig().getStopTime() > 0 ? config.getDaoConfig().getStopTime() : 5000L; } Thread.sleep(stopTime); QueryCityRS rs = ResponseResultBuild.newSuccessInstance(QueryCityRS.class); List<BusaCityVO> data = Lists.newArrayList(); BusaCityVO vo = new BusaCityVO(); vo.setCityName("黑子测试"); data.add(vo); rs.setData(data); rs.setModels("请求成功!!业务层用时:" + (System.currentTimeMillis() - startTime) + "s, 当前线程总数: " + Thread.activeCount()); return rs;
测试场景:
`<Connector port="8001" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />`
最高QPS:103 JVM内线程数量:282 虚拟用户数:600
`<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" pollerThreadCount="1" acceptCount="200" maxThreads="300" redirectPort="8443" />`
最高QPS:155 JVM内线程数量:381 虚拟用户数:600
` <Connector port="8001" protocol="HTTP/1.1" connectionTimeout="20000" maxThreads="500" pollerThreadCount="1" acceptCount="200" redirectPort="8443" />`
最高QPS:260 JVM内线程数量:581 虚拟用户数:600
` <Connector port="8001" protocol="HTTP/1.1" connectionTimeout="20000" maxThreads="800" pollerThreadCount="1" acceptCount="200" redirectPort="8443" />`
最高QPS:300 JVM内线程数量:683 虚拟用户数:600
阅读全文
0 0
- 记一次tomcat参数调试
- tomcat远程调试参数
- Tomcat |Tomcat设置远程调试参数
- 记一次js调试经历,关于传入参数为value还是function
- 记一次I2S调试经历
- 记一次芯片休眠调试
- 记一次前段调试问题
- 一次Tomcat奇慢无比的调试,使用Python
- eclipse tomcat或jboss调试vm参数
- 记一次快速排序算法的调试
- [DEBUG]记一次野指针调试
- 记一次内存释放调试经历
- 记一次STM32F103 bootloader的调试
- 记一次mapreduce程序错误调试
- 记一次tomcat web应用压测调优
- 记一次服务器Tomcat优化经历
- 记一次tomcat服务配置问题
- webloic resin tomcat 的远程调试的参数
- zookeeper的zkCli.sh命令行使用方法
- 二战时图灵机破译的Enigma密码,现在AI仅需13分钟便可破译
- ChromeDriver can't do file uploads if file input not clickable
- centos7系统下使用yum命令被锁定
- 浏览器同源政策及其规避方法
- 记一次tomcat参数调试
- 从神经网络到深度学习(学习网址)
- SSM,在后台打印SQL
- android IPC笔记
- SpringMVC通过切面,实现超灵活的注解式数据校验
- JS——密码强度
- AES加密异常处理 InvalidAlgorithmParameterException:expected IV length of 16 but was 32
- curl发送请求简单实践
- MySQL优化之表结构优化的5大建议(数据类型选择讲的很好)