You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by niteshjain132 <ni...@gmail.com> on 2016/09/12 11:03:45 UTC
CXF HTTP Connection pooling CLOSE_WAIT
I'm using CXF 3.0.6
I'm invoking a route using ProducerTemplate
I have an cxf endpoint as below in my camel context .. (TEST_ENDPOINT is an
actual endpoint)
<route id="invokePostRestService">
<from uri="direct:invokeWS" />
<log message=" ${body}" />
<to
uri="cxf://{{TEST_ENDPOINT}}?dataFormat=payload&loggingFeatureEnabled=true"
/>
<log message=" ${body}" />
</route>
<http-conf:conduit name="*.http-conduit">
<http-conf:client ConnectionTimeout="30000"
ReceiveTimeout="30000" MaxRetransmits="1"
AllowChunking="false" />
</http-conf:conduit>
<bean id="systemProps"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" value="#{@systemProperties}" />
<property name="targetMethod" value="putAll" />
<property name="arguments">
<util:properties>
<prop key="http.maxConnections">11</prop>
</util:properties>
</property>
</bean>
I think CXF logging is interfering with log4j.xml in
Jetty/resources/log4j.xml somehow, that when i set logging level to ERROR in
log4j.xml, i see that CLOSE_WAIT piling up and http.maxConnections goes
above 100+ (as a fact its just 11, configured)
When i set logging mode to INFO in log4j.xml, everything works as expected
and http.maxConnections is 11 !! which is as expected and no close_waits !
after debugging i see that Logging level is INFO in
"org.apache.camel.processor.interceptor.BacklogDebugger" despite of ERROR in
log4j.xml, can this be the cause of this issue ?
any help is appreciated ...
--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-HTTP-Connection-pooling-CLOSE-WAIT-tp5772502.html
Sent from the cxf-user mailing list archive at Nabble.com.