这与使用JMETER工具测试REST和检查吞吐量有关。
我对使用JMETER工具非常陌生。
在我的应用程序中,它是一个简单的REST,它基于几个条件将XLS文件转换为JSON格式的数据。这是在服务器(WildFly V10)上运行的。
JMETER中的配置:
线程数: 1000
爬坡时间: 10
循环计数:1
吞吐量保持不变,每秒10-12次命中.
我还在standalone.xml文件中为不同的子系统做了几个JBOSS通配符服务器10的配置设置,如下所示:
1) Configuring undertow subsystem:
modified the default max http connections from 10 to 100 till 1000
<http-listener name="default" **max-connections="1000"** socket-binding="http" redirect-socket="https" enable-http2="true" buffer-pipelined-data="true" />
2) Setting io subsystem:
configured io-threads and max-threads from 10 to 100 till 1000
<worker name="default" **io-threads="100" task-max-threads="100"** />
3) Configured standalone.conf file for JAVA VM options
OLD: JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true"
NEW: **JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m** -XX:NewRatio=2 -XX:PermSize=64m -Djava.net.preferIPv4Stack=true"
4) Configuring infinispan subsystem:
which has a <cache-container> to configure the thread pool execute in the thread subsystems. It governs the allocation and execution of runnable tasks in the replication queue.
5) Tried running my application on remote system having **64 GB RAM** and the 3rd configuration mentioned above.
6) Configuring high value for core threads in JCA subsystem
**<core-threads count="50"/>** in subsystem urn:jboss:domain:jca:4.0所有这些配置并没有帮助我提高吞吐量。
请任何人帮助我理解在通过JMETER进行测试时,需要修改或配置什么来提高服务器的吞吐量。
发布于 2017-08-22 04:43:44
有太多可能的原因,我只列出几个最常见的建议:
https://stackoverflow.com/questions/45794919
复制相似问题