如何提高jboss的响应时间

时间:2014-08-28 05:53:34

标签: java multithreading time jboss response

环境是JBoss 5.1.0, RestEasy Web服务部署并加载测试,每秒约10次事务。

需要改善Resteasy Web服务的响应时间, 然后将工作线程数更改为100.

jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/server.xml

  <!-- connectionTimeout and keepAliveTimeout should be greater than the
       Heartbeat period between SIPServer and XS.
       (Here 60s for an Heartbeat less than 60s) -->
  <Connector protocol="${http.connector.class}"
           port="${xs.http.port}" address="${jboss.bind.address}"
           allowTrace="false" enableLookups="false"
           SSLEnabled="false"
           connectionTimeout="60000" keepAliveTimeout="60000"
           maxKeepAliveRequests="-1" maxThreads="100" compression="off" />

虽然admin-console显示结果不好,但最大处理时间仍然大于1000ms。

最大线程数:100 当前线程数:4 当前线程忙:4 最长处理时间:1061 ms 处理时间:55.7秒 请求数:657 错误计数:1 收到的字节数:0.08 MB 发送的字节数:0.86 MB

问题是如何改善JBoss Web Service的响应时间。

0 个答案:

没有答案
相关问题