This content has been marked as final.
Show 17 replies
-
15. Re: Messaging blocked by long time-out
radimchatkalahari Oct 19, 2009 12:57 AM (in response to rtm333)Hi,
I was facing the same problem for a long time using
jboss-messaging 1.4.2GA-SP1 & jboss-remoting 2.2.2SP11
Yesterday I tried jboss-messaging 1.4.5GA together with
jboss-remoting 2.2.3SP1
but behavior was the same:2009-10-19 03:27:53,687 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling exception, exiting java.io.IOException: Connection reset by peer: socket write error ...and after 2 seconds 2009-10-19 03:27:55,687 WARN [org.jboss.messaging.core.impl.ChannelSupport] Queue[8724664/231/188656-y68h-xkppjy0g-1-655exx0g-xocyvy-2c3gs4] has reached maximum size, Reference[4166470286297938638]:NON-RELIABLE will be dropped
and after that communication works for a couple of seconds and then
ALL communication with ALL clients to/from jboss STOPPED
jboss log (with debug level) is after that time empty.
and thing gone even worst, because, when this occurred @ jbrem 2.2.2SP11
I just restarted jboss and all the clients reconnects correctly.
Using 2.2.3SP1 I had to restart ALL clients together with Jboss
(I tried left 2 clients with jbrem2.2.2SP11 and those ones reconnected automatically!)
my remoting-bisocket-service.xml @ jboss side looks like this... <invoker transport="bisocket"> <attribute name="stopLeaseOnFailure" isParam="true">true</attribute> <attribute name="clientLeasePeriod" isParam="true">10000</attribute> <attribute name="validatorPingPeriod" isParam="true">10000</attribute> <attribute name="validatorPingTimeout" isParam="true">5000</attribute> <attribute name="registerCallbackListener">false</attribute> <attribute name="timeout" isParam="true">0</attribute> <attribute name="numberOfRetries" isParam="true">10</attribute> <attribute name="JBM_clientMaxPoolSize" isParam="true">200</attribute> <attribute name="callbackTimeout">10000</attribute> </invoker> ...
do you have any suggestions how to solve this problem? -
16. Re: Messaging blocked by long time-out
ron_sigal Nov 6, 2009 10:15 PM (in response to rtm333)"radimchatkalahari" wrote:
2009-10-19 03:27:53,687 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshall
ing exception, exiting
java.io.IOException: Connection reset by peer: socket write error
...and after 2 seconds
2009-10-19 03:27:55,687 WARN [org.jboss.messaging.core.impl.ChannelSupport] Queue[8724664/231/188656
-y68h-xkppjy0g-1-655exx0g-xocyvy-2c3gs4] has reached maximum size, Reference[4166470286297938638]:NO
N-RELIABLE will be dropped
Just based on these two lines, I'm guessing you have a different problem. For example, the fact that you're getting a "Connection reset" message suggests that the network is working OK. And the "Queue ... has reached meximun size" is a JBossMessaging issue. Have you posted this question on the Messaging forum (http://www.jboss.org/index.html?module=bb&op=viewforum&f=238) ? -
17. Re: Messaging blocked by long time-out
radimchatkalahari Nov 7, 2009 6:08 AM (in response to rtm333)I probably found the source of issue.
Problem was in org.jboss.remoting.transport.socket.BisocketClientInvoker.java
(in jbrem2.2.3SP1) in method createSocketprotected Socket createSocket(String address, int port, int timeout) throws IOException { ... while (isConnected() && (!pingFailed.flag || pingFailedTimeRemaining > 0) && (timeout == 0 || timeRemaining > 0)) { .... } ... }
In my scenario the above while cycle was never-ending! :
timeout set through jboss-messaging was set to 0 (& isConnected() & !pingFailed.flag was true also)!
And because the thread that was cycling in while loop was also holding an importat jboss-messaging lock, all the other netwoking threads were waiting for that lock, and that's why complete network communication has been stopped forever.
When I set the timeout to 5000 ms.
in JBOSS_HOME/server/default/conf/mesbridlicna-port-bindings.xml<invoker transport="bisocket"> ... <attribute name="timeout" isParam="true">5000</attribute> ...
And the problem disappeared!