[jboss-user] [Clustering/JBoss] - Loadbalancing and clustering JBOSS using Apache Http server

yugantshah do-not-reply at jboss.com
Wed Feb 13 10:12:50 EST 2008

I have clustered two instances of JBOSS and I have configured the jboss web deployer for load balancing using apache http server.
Consider I have 2 instances of Tomcat (embedded in JBOSS) say TOM1 and TOM2.
Loadbalancer1 is TOM1 and TOM2 is Loadbalancer2 are configured in Apache server.
A request is processed by TOm1 and it goes down(using Ctrl+C) the request is then load balanced to TOM2.In the mean I start TOM1 again.
And bring TOM2 down...The request state is transfered to TOM1 and TOm1 restarts the processing of same request.
The problem is that TOM1 throws an exception

 13:24:40,954 INFO  [STDOUT] YUGANT Bean:5
13:24:41,455 INFO  [STDOUT] YUGANT Bean:6
13:24:41,957 INFO  [STDOUT] YUGANT Bean:7
13:24:42,458 INFO  [STDOUT] YUGANT Bean:8
13:24:42,960 INFO  [STDOUT] YUGANT Bean:9
13:24:43,477 ERROR [ServerThread] Worker thread initialization failure
java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
        at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputSt
        at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:666)
        at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.s
        at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.s
        at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(
        at org.jboss.remoting.transport.socket.ServerThread.versionedWrite(Serve
        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(Se
        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.j
        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.jav
15:06:03,431 INFO  [TreeCache] viewAccepted(): [|17] [192.168.0
15:06:03,463 INFO  [TreeCache] locking the subtree at / to transfer state
15:06:03,479 INFO  [StateTransferGenerator_140] returning the state for tree roo
ted in /(1024 bytes)
15:06:07,702 INFO  [final16] New cluster view for partition final16 (id: 17, del
ta: 1) : [,]
15:06:07,702 INFO  [final16] I am ( received membershipChanged
15:06:07,702 INFO  [final16] Dead members: 0 ([])
15:06:07,702 INFO  [final16] New Members : 1 ([])
15:06:07,702 INFO  [final16] All Members : 2 ([,

And the request is left unprocessed.
I am not able to resolve this issue.

Thanks in advance.

Thanks, Yugant Shah.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129176#4129176

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129176

More information about the jboss-user mailing list