You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by alvincys <al...@yahoo.com> on 2011/02/19 05:07:10 UTC

BareOutInterceptor taking 10s to complete intermittently

My application exposes web services via CXF. When deployed to a Linux box
with WebSphere 6.1 FP 31, I'm getting intermittent 10s response. Upon
turning on the debug logs in CXF classes, I've noticed that it actually took
the BareOutInterceptor 10 seconds to complete. It's most obvious in the
first of many requests (leaving it idle for about 1 minute then start
invoking)

This does not happen in my local Windows WebSphere 6.1 FP 31. Any insight is
greatly appreciated. Thanks

2011-02-24 02:20:45.163 DEBUG [PhaseInterceptorChain] - Invoking
handleMessage on interceptor
org.apache.cxf.interceptor.BareOutInterceptor@70dc70dc
2011-02-24 02:20:55.169 DEBUG [PhaseInterceptorChain] - Invoking
handleMessage on interceptor
org.apache.cxf.interceptor.WrappedOutInterceptor$WrappedOutEndingInterceptor@fa60fa6
2011-02-24 02:20:55.170 DEBUG [PhaseInterceptorChain] - Invoking
handleMessage on interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor@21962196
2011-02-24 02:20:55.170 DEBUG [PhaseInterceptorChain] - Invoking
handleMessage on interceptor
org.apache.cxf.interceptor.StaxOutInterceptor$StaxOutEndingInterceptor@218e218e
2011-02-24 02:20:55.170 DEBUG [PhaseInterceptorChain] - Invoking
handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@2da62da6
2011-02-24 02:20:55.171 DEBUG [PhaseInterceptorChain] - Invoking
handleMessage on interceptor
com.zsg.endpoint.cxf.BaseResponseInterceptor@35a635a6
2011-02-24 02:20:55.172 DEBUG [BaseResponseInterceptor] - [handleMessage:
remove sessionId, serviceId]=SESS_ID,SVC_ID
2011-02-24 02:20:55.172 DEBUG [ServletController] - Finished servicing http
request on thread: Thread[WebContainer : 2,5,main]

More information on my configuration.
O/S
Linux picatapp13 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686
i686 i386 GNU/Linux

Application Server
WebSphere 6.1 Fixpack 31 (without Web Services pack)

Shared library (Classes loaded with application class loader first)
saaj-api-1.3.jar
saaj-impl-1.3.2.jar
wsdl4j-1.6.2.jar
xercesImpl.jar (compiled from JAXP_RI_20060217.class)

Application classpath (WEB-INF/lib)
xmlsec-1.4.4.jar
XmlSchema-1.4.5.jar
xerces-2.9.0.jar
wstx-asl-3.2.9.jar
wss4j-1.5.11.jar
wsdl4j-1.6.2.jar
velocity-1.5.jar
standard.jar
spring-ws-2.0.0.RELEASE-all.jar
slf4j-api-1.6.1.jar
saxon9-dom.jar
saaj-api-1.3.jar
quartz-all-1.8.4.jar
org.springframework.*-3.0.5.RELEASE.jar
opencsv-1.8.jar
logback-classic-0.9.28.jar
log4j-over-slf4j-1.6.1.jar
jta-1.1.jar
jstl-1.1.0.jar
jcl-over-slf4j-1.6.1.jar
jaxb-impl-2.1.13.jar
jaxb-api-2.1.jar
javolution-5.5.1.jar
jakarta-oro-2.0.8.jar
hibernate-3.2.5.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
geronimo-jaxws_2.1_spec-1.0.jar
geronimo-annotation_1.0_spec-1.1.1.jar
ehcache-core-2.3.0.jar
cxf-2.3.2.jar
commons-validator-1.3.1.jar
commons-lang-2.5.jar
commons-io-1.4.jar
commons-httpclient-3.1.jar
commons-fileupload-1.2.1.jar
commons-discovery-0.4.jar
commons-digester-2.0.jar
commons-collections-3.2.1.jar
commons-beanutils-1.8.3.jar
cglib-nodep-2.1_3.jar
castor-1.1.2.1.jar
bcprov-jdk14-145.jar
backport-util-concurrent-3.1.jar
axis-1.4.jar
aopalliance-1.0.jar
activation.jar
saxon9.jar
saaj-impl-1.3.2.jar
logback-core-0.9.28.jar
dom4j-1.6.1.jar
commons-compress-1.1.jar
commons-codec-1.4.jar
aspectjweaver-1.5.3.jar
antlr-2.7.7.jar

Spring configuration (within jaxws:endpoint)
<jaxws:inInterceptors>
	<bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
	<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
		<constructor-arg>
			<map>
				<entry key="action" value="UsernameToken"/>
				<entry key="passwordType" value="PasswordText"/>
				<entry key="passwordCallbackRef">
					<bean id="endpointPasswordCallback" ref="myPasswordCallback"/>
				</entry>
			</map>
		</constructor-arg>
	</bean>			
	<bean class="com.zsg.endpoint.cxf.BaseRequestInterceptor"/>
	<bean class="com.zsg.endpoint.cxf.BaseResponseInterceptor"/>
</jaxws:inInterceptors>

<jaxws:properties>
	<entry key="schema-validation-enabled" value="false" />
	<entry key="faultStackTraceEnabled" value="true" />
	<entry key="mtom-enabled" value="false" />
</jaxws:properties>

<jaxws:binding>
	<soap:soapBinding mtomEnabled="false" version="1.2" />
</jaxws:binding>

<jaxws:dataBinding>
	<bean class="org.apache.cxf.jaxb.JAXBDataBinding"/>
</jaxws:dataBinding>
-- 
View this message in context: http://cxf.547215.n5.nabble.com/BareOutInterceptor-taking-10s-to-complete-intermittently-tp3392104p3392104.html
Sent from the cxf-user mailing list archive at Nabble.com.

XMLStreamWriter taking 10s to complete intermittently

Posted by alvincys <al...@yahoo.com>.
Narrowed it down to XMLStreamWriter....
-- 
View this message in context: http://cxf.547215.n5.nabble.com/BareOutInterceptor-taking-10s-to-complete-intermittently-tp3392104p3392154.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: BareOutInterceptor taking 10s to complete intermittently

Posted by alvincys <al...@yahoo.com>.
Is there an entry in JIRA for the fix?
-- 
View this message in context: http://cxf.547215.n5.nabble.com/BareOutInterceptor-taking-10s-to-complete-intermittently-tp3392104p3395537.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: BareOutInterceptor taking 10s to complete intermittently

Posted by Daniel Kulp <dk...@apache.org>.
On Sunday 20 February 2011 2:37:29 AM alvincys wrote:
> HttpServletRequestSnapshot constructor will invoke
> HttpServletRequest.getRemoteHost(), which is inefficient.

I just fixed this.   We DO need to call that in some cases (like one-ways that 
are flipping threads), but in most cases we don't.   It should  be fixes now.


-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Re: BareOutInterceptor taking 10s to complete intermittently

Posted by alvincys <al...@yahoo.com>.
HttpServletRequestSnapshot constructor will invoke
HttpServletRequest.getRemoteHost(), which is inefficient.
-- 
View this message in context: http://cxf.547215.n5.nabble.com/BareOutInterceptor-taking-10s-to-complete-intermittently-tp3392104p3392921.html
Sent from the cxf-user mailing list archive at Nabble.com.