当我在soapui中测试我的项目时,直接链接到wsdl可以达到1000tps或更高,但是当我改为使用http端点代理请求时,tps急剧下降到500甚至更少。
我不知道为什么,任何建议都会有所帮助。
这是源代码:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:core="http://www.mulesoft.org/schema/mule/core" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/pattern *http://www.mulesoft.org/schema/mule/pattern/current/mule-pattern.xsd
*http://www.mulesoft.org/schema/mule/http *http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
*http://www.mulesoft.org/schema/mule/cxf *http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd
*http://www.springframework.org/schema/beans *http://www.springframework.org/schema/beans/spring-beans-current.xsd
*http://www.mulesoft.org/schema/mule/core *http://www.mulesoft.org/schema/mule/core/current/mule.xsd
*http://www.mulesoft.org/schema/mule/ee/tracking *http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd">
<configuration doc:name="Configuration">
<default-dispatcher-threading-profile
maxThreadsActive="250" maxThreadsIdle="500" threadWaitTimeout="1000" threadTTL="60000" />
<default-receiver-threading-profile
maxThreadsActive="250" maxThreadsIdle="500" threadWaitTimeout="1000" threadTTL="60000" />
<default-service-threading-profile
maxThreadsActive="250" maxThreadsIdle="500" threadWaitTimeout="1000" threadTTL="60000" />
</configuration>
<flow name="CopyofmytestFlow1" doc:name="CopyofmytestFlow1">
<http:inbound-endpoint exchange-pattern="request-response" address="<a href="http://localhost:18081"">http://localhost:18081" doc:name="HTTP"/>
<http:outbound-endpoint exchange-pattern="request-response" address="http://192.168.80.27:8080/OIP-SIMU-01/services/OipServer" doc:name="respnse" method="POST" >
<message-properties-transformer scope="outbound">
<add-message-property key="SOAPAction" value="#[header:inbound:SOAPAction]"/>
</message-properties-transformer>
</http:outbound-endpoint>
</flow>
</mule>
环境:
- 骡子独立3.4.0
- 红帽企业 Linux 5
- 骡工作室 3.4
- 肥皂水 4.5.2