activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james strachan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-898) SocketWrite hangs indefinitely
Date Wed, 07 Mar 2007 14:21:21 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

james strachan resolved AMQ-898.
--------------------------------

    Resolution: Fixed

This just looks like a blocked TCP/IP socket. There's not a whole lot the ActiveMQ client
can do other than wait for the socket to unblock. I wonder if its OS/network related.

I wonder if your producer is blocking...
http://activemq.apache.org/my-producer-blocks.html

which is stopping the broker reading from the socket, which is causing the socket to block?

> SocketWrite hangs indefinitely
> ------------------------------
>
>                 Key: AMQ-898
>                 URL: https://issues.apache.org/activemq/browse/AMQ-898
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.0.1
>         Environment: Linux, Java 1.5, JBoss appserver
>            Reporter: Edward Tolson
>            Priority: Critical
>
> We routinely have our message distribution locked up permanently and without means of
recovery by a socketWrite0 call that hangs indefinitely in a thread holding a number of the
Active MQ locks.  Here is a stack trace of such a locked up thread:
>         at java.net.SocketOutputStream.socketWrite0(Native Method)
>         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>         at org.apache.activemq.transport.tcp.TcpBufferedOutputStream.write(TcpBufferedOutputStream.java:95)
>         at java.io.DataOutputStream.write(DataOutputStream.java:90)
>         - locked <0x4bc298c8> (a java.io.DataOutputStream)
>         at org.apache.activemq.openwire.v1.BaseDataStreamMarshaller.tightMarshalByteSequence2(BaseDataStreamMarshaller.java:403)
>         at org.apache.activemq.openwire.v1.MessageMarshaller.tightMarshal2(MessageMarshaller.java:160)
>         at org.apache.activemq.openwire.v1.ActiveMQMessageMarshaller.tightMarshal2(ActiveMQMessageMarshaller.java:88)
>         at org.apache.activemq.openwire.v1.ActiveMQObjectMessageMarshaller.tightMarshal2(ActiveMQObjectMessageMarshaller.java:88)
>         at org.apache.activemq.openwire.OpenWireFormat.marshal(OpenWireFormat.java:240)
>         at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:124)
>         at org.apache.activemq.transport.InactivityMonitor.oneway(InactivityMonitor.java:141)
>         at org.apache.activemq.transport.TransportFilter.oneway(TransportFilter.java:78)
>         at org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:77)
>         at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:44)
>         - locked <0x4bac2b80> (a java.lang.Object)
>         at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
>         at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1111)
>         at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1553)
>         at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:462)
>         at com.hb.jms.api.util.JmsSession.sendObjects(JmsSession.java:345)
>         - locked <0x4aca1230> (a org.apache.activemq.ActiveMQSession)
>         at com.hb.jms.api.util.JmsSession.sendObjects(JmsSession.java:307)
>         at com.hb.jms.api.util.JmsSession$QueueProcessor.sendFromSessionQueue(JmsSession.java:1002)
>         - locked <0x6adc9f80> (a com.hb.jms.api.util.JmsSession$SessionQueue)
>         at com.hb.jms.api.util.JmsSession$QueueProcessor.run(JmsSession.java:981)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message