1 Reply Latest reply on Aug 29, 2014 1:07 PM by Radoslav Husar

    how to configure MPING ip_ttl in wildfly

    Dieter Cailliau Newbie

      Since my move from AS 7.2.0 (with jgroups 3.2.7) to wildfly 8.1 (with jgroups 3.4.3), i'm unable to configure the ttl for mping via -Djgroups.mping.ip_ttl=10.

       

      With wireshark I see that the ttl is always set to 2 in wildfly 8.1 for these multicast packets.

       

      It is set to my value-of-choice in AS 7.2.0.

       

      Using JMX console to wildfly, I can see that the jgroups/protocol/"interserver"/MPING/ip_ttl is 2 - which is not equal to my -Djgroups.mping.ip_ttl=10 system property (also inspected in jmx).

       

      So that means wildfly is simply somehow overruling the -Djgroups.mping.ip_ttl system property, with a value 2 i did not configure.

       

      Where can i find information about that?

       

       

       

      I'm testing on a ubuntu machine with java 7:

       

      java -version

      java version "1.7.0_55"

      OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.10.1)

      OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

        • 1. Re: how to configure MPING ip_ttl in wildfly
          Radoslav Husar Master

          You don't really want to configure this as command line parameter, you want it to be configured in the profile.

           

          Here is an XML snippet to do that:

           

          <subsystem xmlns="urn:jboss:domain:jgroups:2.0" default-stack="tcp">
            <stack name="tcp">
            <transport type="TCP" socket-binding="jgroups-tcp"/>
            <protocol type="MPING" socket-binding="jgroups-mping"/>
                 <property name="ip_ttl">1</property>
            </protocol>
          ...