hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: I/O Dispatcher thread blocks on a read
Date Sat, 15 May 2010 10:58:45 GMT
On Sat, 2010-05-15 at 14:02 +0530, Supun Kamburugamuva wrote:
> Hi,
> 
> One of the I/O dispatcher threads in Synapse is blocked
> in SharedInputBuffer.read method. Here is the thread dump. I would really
> appreciate if you can point me to the correct path for figuring out the root
> cause of this.
> 
> This dispatcher is sending the message out from synapse. In this case it
> tries to read the incoming message read by the listeners to send it out.
> 
> Thanks,
> Supun..

Supun,

SharedInputBuffer is shared by two (or more) threads: a data consumer
and a data producer. The data consumer thread is stuck waiting for more
data to arrive because the data producer thread does not fill the buffer
with more data.

Try to find out why there is no data in the shared buffer.

Oleg  

> 
> "http-Sender I/O dispatcher-2" prio=10 tid=0x08505800 nid=0x1718 in
> Object.wait() [0x613ac000]
>    java.lang.Thread.State: WAITING (on object monitor)
>         at java.lang.Object.wait(Native Method)
>         - waiting on <0x8213c928> (a java.lang.Object)
>         at java.lang.Object.wait(Object.java:485)
>         at
> org.apache.http.nio.util.SharedInputBuffer.waitForData(SharedInputBuffer.java:132)
>         - locked <0x8213c928> (a java.lang.Object)
>         at
> org.apache.http.nio.util.SharedInputBuffer.read(SharedInputBuffer.java:192)
>         - locked <0x8213c928> (a java.lang.Object)
>         at
> org.apache.http.nio.entity.ContentInputStream.read(ContentInputStream.java:64)
>         at
> java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221)
>         at
> java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
>         at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
>         at java.io.FilterInputStream.read(FilterInputStream.java:90)
>         at
> org.wso2.carbon.relay.BinaryRelayBuilder.readAllFromInputSteam(BinaryRelayBuilder.java:48)
>         at
> org.wso2.carbon.relay.StreamingOnRequestDataSource.getInputStream(StreamingOnRequestDataSource.java:59)
>         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
>         at
> org.wso2.carbon.relay.ExpandingMessageFormatter.findAndWrite2OutputStream(ExpandingMessageFormatter.java:170)
>         at
> org.wso2.carbon.relay.ExpandingMessageFormatter.writeTo(ExpandingMessageFormatter.java:99)
>         at
> org.apache.synapse.transport.nhttp.util.GzipMessageFormatterDecorator.writeTo(GzipMessageFormatterDecorator.java:66)
>         at
> org.apache.synapse.transport.nhttp.Axis2HttpRequest.setStreamAsTempData(Axis2HttpRequest.java:332)
>         at
> org.apache.synapse.transport.nhttp.Axis2HttpRequest.getRequest(Axis2HttpRequest.java:169)
>         at
> org.apache.synapse.transport.nhttp.ClientHandler.processConnection(ClientHandler.java:194)
>         at
> org.apache.synapse.transport.nhttp.ClientHandler.connected(ClientHandler.java:160)
>         at
> org.apache.http.impl.nio.DefaultClientIOEventDispatch.connected(DefaultClientIOEventDispatch.java:134)
>         at
> org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:284)
>         at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:423)
>         at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:286)
>         at
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
>         at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:528)
>         at java.lang.Thread.run(Thread.java:619)
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message