13 Replies Latest reply on May 18, 2004 1:07 PM by Tim Bauer

    Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!

    Tim Bauer Novice

      Once again, jgroups is acting up. Why is it that every time you guys release a new dot-dot release that thing change so much that existing configurations stop working as before...

      1. Why do you NEVER give a good example of using TCP in the cluster-service.xml file...UDP is lame, and probably used in production environments. Every time I get TCP to work, you change something that make it stop working in subsequent versions.

      2. The documentation on the javagroups (jgroup.org) site is 2 YEARS out of date...PLEASE UPDATE IT, if you want people to be able to use jgroups. I have in the past paid for a doc subscription, but found that 3 or 4 doc releases every year (and always months behind) is not helpful .

      3. How the heck do a turn off the REAMS of information coming out of FIND_INITIAL_MBRS ???

      17:47:45,349 INFO [Server] JBoss (MX MicroKernel) [3.2.4RC2 (build: CVSTag=Branch_3_2 date=200405170233)] Started in 47s:963ms
      17:47:45,356 INFO [TCP] received msg [dst: adsl-63-193-224-220:11800 (additional data: 19 bytes), src: adsl-63-193-224-220:11800 (additional data: 19 bytes) (3 headers), size = 0 bytes]
      17:47:45,453 INFO [TCPPING] [FIND_INITIAL_MBRS] adsl-63-193-224-220:11800 is already a member
      17:47:48,454 INFO [TCPPING] [FIND_INITIAL_MBRS] initial members are [[own_addr=adsl-63-193-224-220:11800, coord_addr=adsl-63-193-224-220:11800 (additional data: 19 bytes)]]
      17:47:48,456 INFO [TCP] dest=adsl-63-193-224-220:11800 (additional data: 19 bytes), hdrs:
      NAKACK: [NAKACK: MSG, seqno=1, range=null]
      TCP: [TCP:group_addr=DefaultPartition]
      STABLE: [STABILITY]: digest is [adsl-63-193-224-220:11800 (additional data: 19 bytes): [-1 : 0]

      17:47:48,603 INFO [TCP] received msg [dst: adsl-63-193-224-220:11800 (additional data: 19 bytes), src: adsl-63-193-224-220:11800 (additional data: 19 bytes) (3 headers), size = 0 bytes]
      17:48:08,004 INFO [TCPPING] [FIND_INITIAL_MBRS] adsl-63-193-224-220:11800 is already a member
      17:48:11,006 INFO [TCPPING] [FIND_INITIAL_MBRS] initial members are [[own_addr=adsl-63-193-224-220:11800, coord_addr=adsl-63-193-224-220:11800 (additional data: 19 bytes)]]
      17:48:23,566 INFO [TCP] dest=adsl-63-193-224-220:11800 (additional data: 19 bytes), hdrs:
      NAKACK: [NAKACK: MSG, seqno=2, range=null]
      TCP: [TCP:group_addr=DefaultPartition]
      STABLE: [STABLE_GOSSIP]: digest is [adsl-63-193-224-220:11800 (additional data: 19 bytes): [0 : 1 (1)]]

      17:48:23,759 INFO [TCP] received msg [dst: adsl-63-193-224-220:11800 (additional data: 19 bytes), src: adsl-63-193-224-220:11800 (additional data: 19 bytes) (3 headers), size = 0 bytes]
      17:48:24,709 INFO [TCPPING] [FIND_INITIAL_MBRS] adsl-63-193-224-220:11800 is already a member
      17:48:27,711 INFO [TCPPING] [FIND_INITIAL_MBRS] initial members are [[own_addr=adsl-63-193-224-220:11800, coord_addr=adsl-63-193-224-220:11800 (additional data: 19 bytes)]]
      17:48:27,713 INFO [TCP] dest=adsl-63-193-224-220:11800 (additional data: 19 bytes), hdrs:
      NAKACK: [NAKACK: MSG, seqno=3, range=null]
      TCP: [TCP:group_addr=DefaultPartition]
      STABLE: [STABILITY]: digest is [adsl-63-193-224-220:11800 (additional data: 19 bytes): [-1 : 1 (1)]]

      17:48:27,759 INFO [TCP] received msg [dst: adsl-63-193-224-220:11800 (additional data: 19 bytes), src: adsl-63-193-224-220:11800 (additional data: 19 bytes) (3 headers), size = 0 bytes]

        • 1. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
          Bela Ban Master


          // 1. Why do you NEVER give a good example of
          // using TCP in the cluster-service.xml file...

          Coming. For now you can just copy tcp.xml from JGroups/conf.

          // UDP is lame, and probably used in production
          // environments.

          you're saying ?



          // 2. The documentation on the javagroups
          // (jgroup.org) site is 2 YEARS out of
          // date...PLEASE UPDATE IT

          I hear you (and others). Documentation is on the todo list


          // 3. How the heck do a turn off the REAMS of
          // information coming out of FIND_INITIAL_MBRS

          in your log4j.xml file:








          Sorry about that, this was caused by the conversion from trace to commons-logging. I already changed this in the JGroups CVS, but for now excluding these cats is the only way to solve this.

          I'll be at JavaOne, come to my BOF and you can bang my head with a baseball bat to let off some steam ... :-)

          Bela

          • 2. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
            Tim Bauer Novice

            Thanks Bela...I will try these changes...

            I have met you before at a BootCamp in SF...I'm in awe at people like you and Sasha...I can only hope to understand this stuff 10% of what
            you do...

            Also, I have a scheduler MBean that calls a logger based on org.jboss.logging.Logger... it no longer works in 3.2.4FC2 ...

            log.info(" "); no longer displays anything on the console log???why??

            • 3. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
              Tim Bauer Novice

              <!-- Limit org.jgroups category to INFO -->




              what are the valid values for priority value?? DEBUG, WARNING, ERROR?

              I want to quiet jgroups except for errors??

              thx,

              tim

              • 4. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                Tim Bauer Novice

                okay, so I have tcp.xml, but how and where do I put this file (or it's contents) in JB 3.2.4FC2 to make it work??

                • 5. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                  Bela Ban Master

                   

                  "tbauer" wrote:
                  <!-- Limit org.jgroups category to INFO -->
                  <category name="org.jgroups">
                  <priority value="INFO"/>
                  </category>

                  what are the valid values for priority value?? DEBUG, WARNING, ERROR?

                  I want to quiet jgroups except for errors??

                  thx,

                  tim


                  Valid values are fatal, error, warn, trace, debug, info
                  You want to set the tracing level for org.jgroups.protocols.{TCP,TCPPING} to WARN because they still use INFO, which is too verbose. I just checked in the changes which now uses TRACE as logging level.
                  So setting the 2 cats is a temp solution, until the new version of JGroups is shipped with JBoss (3.2.4RC3).

                  Bela

                  • 6. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                    Tim Bauer Novice

                    Okay, seems to work now...but one question?? I have ALWAYS gotten
                    this message on the console...
                    How (or what) is a valid multicaset address/port given I want to
                    hardcode the IP address in the HANamingService section of the .xml


                    18:35:14,978 INFO [HANamingService] Listening on /63.193.224.220:1100
                    18:35:14,994 WARN [HANamingService] Failed to start AutomaticDiscovery
                    java.net.SocketException: Not a multicast address
                    at java.net.MulticastSocket.joinGroup(MulticastSocket.java:271)
                    at org.jboss.ha.jndi.HANamingService$AutomaticDiscovery.start(HANamingService.java:479)
                    at org.jboss.ha.jndi.HANamingService.startService(HANamingService.java:261)

                    • 7. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                      Bela Ban Master

                       

                      "tbauer" wrote:
                      okay, so I have tcp.xml, but how and where do I put this file (or it's contents) in JB 3.2.4FC2 to make it work??


                      server//deploy/cluster-service.xml. Just replace the matching tag with the contents of tcp.xml, e.g.



                      <!-- Name of the partition being built -->
                      XSAM_Partition_XSAM26B_partition
                      <!-- Determine if deadlock detection is enabled -->
                      False

                      <!-- The JGroups protocol configuration -->


                      <TCP start_port="7800" bind_addr="localhost" loopback="true"/>
                      <TCPPING timeout="3000" initial_hosts="localhost[7800]" port_range="3" num_initial_members="3"/>
                      <MERGE2 max_interval="10000" down_thread="false" min_interval="5000"/>
                      <FD_SOCK down_thread="false"/>
                      <VERIFY_SUSPECT timeout="1500" down_thread="false"/>
                      <pbcast.NAKACK max_xmit_size="60000" down_thread="false" use_mcast_xmit="true" gc_lag="1" retransmit_timeout="300,600,1200,2400,4800"/>
                      <pbcast.STABLE stability_delay="1000" desired_avg_gossip="5000" down_thread="false" max_bytes="250000"/>
                      <pbcast.GMS print_local_addr="true" join_timeout="3000" down_thread="false" join_retry_timeout="2000" shun="true"/>
                      <FC max_credits="1000000" down_thread="false" min_threshold="0.10"/>
                      <COMPRESS down_thread="false" min_size="500" compression_level="3" up_thread="true"/>
                      <pbcast.STATE_TRANSFER down_thread="false" up_thread="false"/>





                      • 8. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                        Bela Ban Master

                         

                        "tbauer" wrote:
                        Okay, seems to work now...but one question?? I have ALWAYS gotten
                        this message on the console...
                        How (or what) is a valid multicaset address/port given I want to
                        hardcode the IP address in the HANamingService section of the .xml


                        18:35:14,978 INFO [HANamingService] Listening on /63.193.224.220:1100
                        18:35:14,994 WARN [HANamingService] Failed to start AutomaticDiscovery
                        java.net.SocketException: Not a multicast address
                        at java.net.MulticastSocket.joinGroup(MulticastSocket.java:271)
                        at org.jboss.ha.jndi.HANamingService$AutomaticDiscovery.start(HANamingService.java:479)
                        at org.jboss.ha.jndi.HANamingService.startService(HANamingService.java:261)


                        What's the value of your
                        230.0.0.4 ?
                        (in cluster-service.xml). It needs to be between 224.x.x.x and 239.2x.x.x

                        • 9. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                          Tim Bauer Novice

                          Bela, okay I have the jgroups logging under control, but now I notice in the actual server.log file that ALL jdbc queries are logged...

                          I've looked all over for how to turn this off, can't find the right xml file...

                          How do I turn of all this verbosity(sp) with jdbc??

                          2004-05-17 20:43:08,592 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.WorkTicketStatusBean] Executing SQL: SELECT ticket_status_name FROM WorkTicketStatus WHERE (ticket_status_id=?)
                          2004-05-17 20:43:08,647 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.WorkTicketBean#findByShiftRequestId] Executing SQL: SELECT t0_r.work_ticket_id FROM WorkTickets t0_r WHERE (t0_r.shift_request_id = ?)
                          2004-05-17 20:43:08,651 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.WorkTicketBean] Executing SQL: SELECT shift_request_id, shift_id, shift_begin_date, shift_end_date, user_id, facility_id, department_id, a

                          • 10. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                            Tim Bauer Novice

                             

                            "bela" wrote:
                            "tbauer" wrote:
                            Okay, seems to work now...but one question?? I have ALWAYS gotten
                            this message on the console...
                            How (or what) is a valid multicaset address/port given I want to
                            hardcode the IP address in the HANamingService section of the .xml


                            18:35:14,978 INFO [HANamingService] Listening on /63.193.224.220:1100
                            18:35:14,994 WARN [HANamingService] Failed to start AutomaticDiscovery
                            java.net.SocketException: Not a multicast address
                            at java.net.MulticastSocket.joinGroup(MulticastSocket.java:271)
                            at org.jboss.ha.jndi.HANamingService$AutomaticDiscovery.start(HANamingService.java:479)
                            at org.jboss.ha.jndi.HANamingService.startService(HANamingService.java:261)


                            What's the value of your
                            <attribute name="AutoDiscoveryAddress">230.0.0.4</attribute> ?
                            (in cluster-service.xml). It needs to be between 224.x.x.x and 239.2x.x.x


                            Okay, DUH, that fixed it...

                            [HANamingService$AutomaticDiscovery] Listening on /63.193.224.220:1102, group=230.0.0.4, HA-JNDI address=63.193.224.220:1100


                            • 11. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                              Tim Bauer Novice

                              stupid me...duh!! Using the correct multicast address worked...

                              [HANamingService$AutomaticDiscovery] Listening on /63.193.224.220:1102, group=230.0.0.4, HA-JNDI address=63.193.224.220:1100

                              thanks again....

                              • 12. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                                Bela Ban Master

                                set the category "org.jboss.ejb.plugins to WARN (or INFO should work too in that case)
                                Bela

                                • 13. Re: Jgroups in 3.2.4RC2 ?? How to turn off logging?!?!?!
                                  Tim Bauer Novice

                                  Bela, thanks again for your help...I got everything working now, and server.log is MUCH more quiet now...a bit verbose on startup, but I can live with that.... cheers, tim