spring httpinvoker的httpClient性能比较
spring invoker提供了两种类型的客户端代理,
SimpleHttpInvokerRequestExecutor和CommonsHttpInvokerRequestExecutor,请问哪个性能更好一些,我用jmeter做压力测试发现,SimpleHttpInvokerRequestExecutor好于CommonsHttpInvokerRequestExecutor,不知是否我的配置有问题,请高手指点。以下是我的配置:
<bean id="httpService"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceUrl">
<value>http://vm.local.com:8080/ucs/service/httpService</value>
</property>
<property name="serviceInterface" value="com.netqin.baike.service.UcService">
</property>
<property name="httpInvokerRequestExecutor">
<bean
class="org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor" />
</property>
</bean>