Hi,

You can configure the underlying jetty through something like

<beans xsi:schemaLocation=" http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/ security.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http- conf.xsd http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http- jetty.xsd http://www.springframework.org/schema/ beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd "> <http:destination name="{http://apache.org/cxf/ calculator}CalculatorPort.http-destination">
  </http:destination>

<httpj:engine-factory bus="cxf">

<httpj:engine port="19000">
<httpj:threadingParameters minThreads="what_ever_you_want" maxThreads="what_ever_you_want"/>
</httpj:engine>
</httpj:engine-factory>
</beans>

Freeman


On 2011-9-5, at 下午3:27, Blue Diamond wrote:

My REST client see the following Exception as the no. of parallel clients
increase from 1000 to 2000:

(3 failures in 2000 client requests).

java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java: 77) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java: 105)
at
org .apache .commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
at
org .apache .commons .httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
at
org .apache .commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java: 1590)
at
org .apache .commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at
org .apache .commons .httpclient .HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org .apache .commons .httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java: 170)
at
org .apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: 396)
at
org .apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: 324)
at Myclient.GET.run(StressTestingRESTClient.java:100)
at
java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to