tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Sávio <joaosa...@gmail.com>
Subject Re: Help with Tomcat 7 clustering using BIO receiver
Date Thu, 03 Jul 2014 14:46:11 GMT
Unfortunately it's not working yet

I increased the log level as you suggested. Log attached

Thanks



2014-07-03 11:10 GMT-03:00 João Sávio <joaosavio@gmail.com>:

> Hello Mark
>
> Thanks for your answer. I put the new information and cluster works (maybe
> because I reboot my machine)
>
> Indeed, I'm trying BIO because NIO is causing session replication issues
> on load tests. Using NIO, I've already tried to increase maxThreads, and
> this minimizes the problem, but don't solve it.
>
> Thanks
>
>
> 2014-07-02 13:28 GMT-03:00 Mark Eggers <its_toasted@yahoo.com.invalid>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 7/2/2014 6:37 AM, João Sávio wrote:
>> > ?
>> >
>> >
>> > 2014-06-30 18:38 GMT-03:00 João Sávio <joaosavio@gmail.com>:
>> >
>> >> Hello people
>> >>
>> >> This is my first message on this group! I'm trying to set up a
>> >> Tomcat clustering using BIO receiver but I've been receiving the
>> >> following error when I started two nodes and tried to enter on my
>> >> application:
>> >>
>> >> Jun 30, 2014 9:25:12 PM
>> >> org.apache.catalina.tribes.transport.bio.BioReplicationT ask run
>> >> SEVERE: Unable to service bio socket
>> >> java.net.SocketTimeoutException: Read timed out at
>> >> java.net.SocketInputStream.socketRead0(Native Method) at
>> >> java.net.SocketInputStream.read(SocketInputStream.java:152) at
>> >> java.net.SocketInputStream.read(SocketInputStream.java:122) at
>> >> java.net.SocketInputStream.read(SocketInputStream.java:108) at
>> >> org.apache.catalina.tribes.transport.bio.BioReplicationTask.drainSock
>> >>
>> >>
>> et(BioReplicationTask.java:146)
>> >> at
>> >> org.apache.catalina.tribes.transport.bio.BioReplicationTask.run(BioRe
>> >>
>> >>
>> plicationTask.java:64)
>> >> at
>> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
>> >>
>> >>
>> java:1145)
>> >> at
>> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
>> >>
>> >>
>> .java:615)
>> >> at java.lang.Thread.run(Thread.java:744)
>> >>
>> >> Jun 30, 2014 9:25:15 PM
>> >> org.apache.catalina.ha.session.DeltaManager startInternal INFO:
>> >> Register manager localhost#/myApp to cluster element Engine with
>> >> name Catalina Jun 30, 2014 9:25:15 PM
>> >> org.apache.catalina.ha.session.DeltaManager startInternal INFO:
>> >> Starting clustering manager at localhost#/myApp Jun 30, 2014
>> >> 9:25:15 PM org.apache.catalina.ha.session.DeltaManager
>> >> getAllClusterSessions INFO: Manager [localhost#/myApp],
>> >> requesting session state from
>> >> org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 212,
>> >> 191, 209}:4000,{10, 212, 191, 2 09},4000, alive=32096,
>> >> securePort=-1, UDP Port=-1, id={-58 95 -116 89 86 -12 714 -75 -2
>> >> 74 -45 -54 -82 40 -114 }, payload={}, command={}, domain={}, ].
>> >> This operation will timeout if no session state has been received
>> >> within 60 seconds.
>> >>
>> >>
>> >> Attached are my two server.xml configuration. I've taken the
>> >> default configuration (worked on my computer) and replaced the
>> >> following things:
>> >>
>> >>
>> >> <Receiver
>> >> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>> >> by <Receiver
>> >> className="org.apache.catalina.tribes.transport.bio.BioReceiver"
>> >>
>> >> and
>> >>
>> >> <Transport
>> >>
>> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
>> >>
>> >>
>> by
>> >> <Transport
>> >>
>> className="org.apache.catalina.tribes.transport.bio.PooledMultiSender"/>
>> >>
>> >>
>> >>
>> >>
>> I don't know if I'm missing something. I'll be very thankful if someone
>> >> can take a look on my server.xml files or send me an example
>> >> configuration using BIO receiver (I couldn't find anyone).
>> >>
>> >> Thanks João -- http://joaosavio.wordpress.com
>>
>> João,
>>
>> Welcome to the list.
>>
>> I've only used NIO, and it's been a while since I've used clustering.
>>
>> A few questions to ask:
>>
>> 1. Is there a firewall blocking port 4000 (if the Tomcats are on
>>    separate machines)?
>> 2. Multicast enabled and routed?
>> 3. Environment (Tomcat version, java version, platforms)?
>> 4. Why BIO?
>>
>> What are you trying to accomplish by using the BIO connector rather
>> than the NIO connector?
>>
>> You can turn on more logging by adding something like the following to
>> logging.properties:
>>
>> # at the end of the handlers line:
>> ,5cluster.org.apache.juli.FileHandler
>>
>> # in the handler-specific properties section:
>> 5cluster.org.apache.juli.FileHandler.level = FINER
>> 5cluster.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
>> 5cluster.org.apache.juli.FileHandler.prefix = cluster.
>>
>> # in the facility specific properties section
>> # be aware of line wrapping
>> org.apache.catalina.tribes.MESSAGES.level = FINE
>> org.apache.catalina.tribes.MESSAGES.handlers =
>> 5cluster.org.apache.juli.FileHandler
>>
>> org.apache.catalina.tribes.level = FINE
>> org.apache.catalina.tribes.handlers = 5cluster.org.apache.juli.FileHandler
>>
>> org.apache.catalina.ha.level = FINE
>> org.apache.catalina.ha.handlers = 5cluster.org.apache.juli.FileHander
>>
>> org.apache.catalina.ha.deploy.level = INFO
>> org.apache.catalina.ha.deploy.handlers =
>> 5cluster.org.apache.juli.FileHandler
>>
>> Last note - we're normally a pretty helpful bunch of folks here, but
>> we are all volunteers. Things like work impact participation :-p. Also
>> as noted above, I've only used NIO so I don't know why this would not
>> work with BIO.
>>
>> . . . just my two cents
>> /mde/
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.13 (MingW32)
>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>
>> iQEcBAEBAgAGBQJTtDM0AAoJEEFGbsYNeTwtkR8H/3JM2LPJBolSWp6kA2K+HJYK
>> mOn5LahCs6cQcZEKs6JKZMS5aVz9A8CPc4/e/LDfGJ86SH1kB1KAwPOwNtFjijl/
>> hpQvQYe8WTIc8Mh6QtbA1jfJD67FBqDxl356+QSrmZJnuJTEz8zAy/6L1/Fvo08c
>> HLYOjfkPj463TnDXJMUNIk1DSuHIdEnaxdXpM55ADTrkrJC06pM/wuU9znfpP/58
>> xKbkX05ODgdBLvP7sfs4vI4DoVWO81+w/4W3o7DC4y9UmqQhtTtFvSacGh8IimW2
>> G/+PVCbYUigKaeegqIVo9eCXeHLO7OBX6njWJKdzYtzPQHZ0AFS2miNC6AVH4co=
>> =bWHh
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> --
> http://joaosavio.wordpress.com
>
>
>


-- 
http://joaosavio.wordpress.com

Mime
View raw message