Kresimir Simatovic | 13 Jan 17:09 2014
Picon

[jgroups-users] Garbage collection and suspect event

Hello!

I've observed following:

1) Node in cluster has long garbage collection pause (45 sec)
2) It was suspected by neighbor node 
3) Node was excluded by coordinator some 10 sec after GC started 
4) When GC finished node sent heartbeat:  ignoring the SUSPECT message and
sending back a HEARTBEAT_ACK

As a result, node has obsolete view which was installed before it was
suspected. It could send messages to other nodes (and receive responses
back) but it was invisible to other members. Coordinator on it and other
nodes was same. After disconnect/connect everything worked fined.

Is there way node could detect such situation and recover from it ?

Protocol stack is distro tcp.xml.

Thanks!

--
View this message in context: http://jgroups.1086181.n5.nabble.com/Garbage-collection-and-suspect-event-tp10037.html
Sent from the JGroups - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
(Continue reading)

Rajni Sharma | 10 Jan 08:59 2014
Picon

[jgroups-users] Return IPv6 in Java

Hi

I'm trying to print ipv6 address of my system using following java program
but it returns only ipv4 address.
When I do ipconfig it shows both ipv4 and ipv6 address.

    public static void main(String args[]) throws UnknownHostException {  

        System.out.println(System.getProperty("java.home"));  
        System.setProperty("java.net.preferIPv6Addresses", "true");  

System.out.println(System.getProperty("java.net.preferIPv6Addresses"));  
        InetAddress[] addr = InetAddress.getAllByName(hostname);  
        for (InetAddress address : addr) {  
            if (address instanceof Inet6Address) {  
                System.out.println("ipv6 address is " +
address.getHostAddress());  
            }  
            else  
                System.out.println("ipv4 address is " +
address.getHostAddress());  
        }  
    }  

Also on debugging i found though impl refers to Inet6Address but
findNative() method of ClassLoader.class calls init() method of
Inet4Address.class in place of calling init() method of Inet6Address.class
Anyone have any idea of why its doing this?

--
(Continue reading)

Bela Ban | 4 Jan 14:12 2014
Picon

[jgroups-users] JGroups 3.4.2.Final released

FYI, the release notes are below.
Cheers,

         Release Notes - JGroups - Version 3.4.2

<h2>        Bug
</h2>
<ul>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1715'>JGRP-1715</a>] 
-         NullPointerException in MessageDispatcher.handleUpEvent
</li>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1744'>JGRP-1744</a>] 
-         Race condition allows NullPointerException in Executing protocol
</li>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1752'>JGRP-1752</a>] 
-         Concurrent message headers modification causes that message is 
never sent
</li>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1753'>JGRP-1753</a>] 
-         BlockingInputStream: reading beyond the array&#39;s capacity
</li>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1755'>JGRP-1755</a>] 
-         TP: dropping message to wrong destination in a shared transport
</li>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1756'>JGRP-1756</a>] 
-         ConcurrentModificationException in Executing.handleView
</li>
<li>[<a href='https://issues.jboss.org/browse/JGRP-1757'>JGRP-1757</a>] 
-         Logging: exceptions are not logged correctly
</li>
(Continue reading)

Bela Ban | 23 Dec 17:32 2013
Picon

[jgroups-users] Change in overriding of bind_addr etc via system props

FYI,

I've changed the way system properties override protocol properties [1]. 
The use case was a customer trying to create different clusters inside 
of the same JBoss EAP instance.

They assumed that using <UDP mcast_addr="${app1.mcast_addr:235.5.5.5}"/> 
for one app and {UDP mcast_addr="${app2.mcast_addr:236.5.5.5}"/> for the 
other and setting the relevant system properties app1.mcast_addr and 
app2.mcast_addr to *different* values would create 2 separate clusters...

Wrong ! JBoss EAP sets jgroups.udp.mcast_addr, which overwrites whatever 
was set in the XML config or via custom sysprops, so both clusters 
joined the same mcast_addr. Turns out they also used the same mcast_port 
(not set) and cluster name ("ISPN" set by Infinispan), so their nodes 
all joined the same cluster !

[1] https://issues.jboss.org/browse/JGRP-1749

--

-- 
Bela Ban, JGroups lead (http://www.jgroups.org)

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
Tomás Rafael Moreno Poggio | 15 Dec 20:31 2013
Picon

[jgroups-users] Problems to use the demos .java

Hello I have problems running the demo below https://github.com/belaban/JGroups/blob/master/src/org/jgroups/demos/ViewDemo.java I get an error that says the following: 

Exception in thread "main" java.lang.ExceptionInInitializerError 
at org.jgroups.conf.XmlConfigurator.parse (XmlConfigurator.java: 115) 
at org.jgroups.conf.XmlConfigurator.getInstance (XmlConfigurator.java: 64) 
at org.jgroups.conf.XmlConfigurator.getInstance (XmlConfigurator.java: 47) 
at org.jgroups.conf.ConfiguratorFactory.getXmlConfigurator (ConfiguratorFactory.java: 216) 
at org.jgroups.conf.ConfiguratorFactory.getStackConfigurator (ConfiguratorFactory.java: 93) 
. at org.jgroups.JChannel <init> (JChannel.java: 138) 
at Main.ViewDemo.start (ViewDemo.java: 30) 
at Main.ViewDemo.main (ViewDemo.java: 62) 
Caused by: java.lang.NullPointerException 
at java.util.ResourceBundle.getBundle (ResourceBundle.java: 1026) 
. org.jgroups.util.Util at <clinit> (Util.java: 98) 

I viewed the source code and the problem line originates 

            String tmp = Util.getProperty (new String [] {Global.XML_VALIDATION}, null, null, false, null); 

Line 115 XmlConfigurator.java file. 

I'm using eclipse Kepler Service Release 1 Build id: 20130919-0819.

JGroups-3.4.1.Final.jar added as library in eclipse 

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Linux Mint 14

The copy of the file udp.xml https://github.com/belaban/JGroups/tree/master/conf/udp.xml and place it in the root of the bin folder generated by eclipse. 

I tried with other examples and I get the same error. 

Someone could help me please.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users
sarath pillai | 12 Dec 22:11 2013
Picon

[jgroups-users] (no subject)

Hi,

Am trying to get s3ping discovery method working in jboss as 7. I have deployed a sample web app which is clustered. As of now i have a single node. But in the near future i ill be adding more nodes in the cluster..

I have modified the file standalone-ha.xml with the required s3 credentials and bucket details.

 <stack name="s3ping">
                <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/>
                <protocol type="S3_PING">
                    <property name="access_key">
                        XXXXXXXXXXXXXXX
                    </property>
                    <property name="secret_access_key">
                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                    </property>
                    <property name="prefix">
                        MyjbossBucket
                    </property>
                    <property name="timeout">
                        6000
                    </property>
                </protocol>
                <protocol type="MERGE2"/>
                <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
                <protocol type="FD"/>
                <protocol type="VERIFY_SUSPECT"/>
                <protocol type="BARRIER"/>
                <protocol type="pbcast.NAKACK"/>
                <protocol type="UNICAST2"/>
                <protocol type="pbcast.STABLE"/>
                <protocol type="pbcast.GMS"/>
                <protocol type="UFC"/>
                <protocol type="MFC"/>
                <protocol type="FRAG2"/>
            </stack>


And i start this jboss instance by using the below command.

./standalone.sh -b 10.1.137.250 -bmanagement=10.1.137.250 -c standalone-ha.xml -Djboss.default.jgroups.stack=s3ping -Djgroups.bind.address=10.1.137.250 -Djboss.node.name=node1

Its getting started successfully, but am unable to see any node information file created inside the s3 bucket. Kindly please guide me through the correct method to get this done...Or am i doing some mistake in the configs...

Regards
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users
Laura McCord | 11 Dec 21:20 2013

[jgroups-users] JGroups tcp configuration

I noticed while I was testing out my tcp.xml file, there were a couple properties that my version of JGroups did not like (JGroups-3.4.1.Final). I had received an error when I had gc_lag=“100” in my <pbcast.NAKACK> configuration and when I had  shun=“false” in the <pbcast.GMS> property. I removed those properties from the configurations and it worked. However, I am not sure if those are needed or if they are deprecated in my distro.

Thanks,
 Laura

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users
Laura McCord | 9 Dec 20:47 2013

[jgroups-users] Testing Ehcache/JGroups replication

Hi,

I set up ehcache and groups replication on 2 nodes and I can’t tell if it’s working. Both nodes are RedHat Linux on an F5 load balancer using the groups tcp option. 

I tried to run the example SimpleChat application (http://www.jgroups.org/tutorial/html/ch02.html#d0e181) but had a hard time getting it to run. 

I did the following:

javac -classpath "jgroups-3.4.1.Final.jar” SimpleChat.java
java -classpath "jgroups-3.4.1.Final.jar” SimpleChat

and it resulted in 
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleChat
Caused by: java.lang.ClassNotFoundException: SimpleChat

Is there an additional jar file that needs to be added?

Thanks


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users
Karim Ammous | 25 Nov 16:05 2013
Picon

[jgroups-users] RELAY2 : Address formats are not relayed.

Hi Bela,

My question concerns REALY2 channel definition.

When defining a relay channel, we haven't the ability to set an AddressGenrator. Indeed, the Relayer uses its own AddressGenerator providing addresses of type SiteUUID.  This is particularly embarrassing in the following case: when we define a customized address format (like CanBeSiteMasterTopology or TopologyUUID) for members of two Sites A and B, address format is lost by crossing relay. Address type of messages sent by A to B are seen as SiteUUID at B side.

Is it possible to make address format "relayable" ?


Best regards,

--
Karim AMMOUS
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users
Richard Searle | 22 Nov 14:56 2013

[jgroups-users] Configuring "client-server" so client waits for server to start

JGroups 3.2.6

 

I am using jgroups to communicate between a pair of processes on a single machine, which form  a strict client/server structure.

That requires a configuration where the client will wait indefinitely for the server to start and become the coordinator.

 

The documentation indicates that

   pbcast.GMS

   max_join_attempts=0

would provide that functionality.

 

But the client starts up as a singleton as soon as the PING timeout expires.

 

(jgroups is obviously overkill but the servers form a cluster, so using the same technology throughout is convenient)

 

Thanks

 

<!--

  Configuration for communication within a machine

-->

 

<config xmlns="urn:org:jgroups"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.1.xsd">

      

        

    <UDP

         bind_addr="localhost"

         mcast_port="45599"

         tos="8"

         ucast_recv_buf_size="20M"

         ucast_send_buf_size="640K"

         mcast_recv_buf_size="25M"

         mcast_send_buf_size="640K"

         loopback="true"

         max_bundle_size="64K"

         max_bundle_timeout="30"

         ip_ttl="8"

         enable_bundling="true"

         enable_diagnostics="true"

         thread_naming_pattern="cl"

 

         timer_type="new"

         timer.min_threads="4"

         timer.max_threads="10"

         timer.keep_alive_time="3000"

         timer.queue_max_size="500"

 

         thread_pool.enabled="true"

         thread_pool.min_threads="2"

         thread_pool.max_threads="8"

         thread_pool.keep_alive_time="5000"

         thread_pool.queue_enabled="true"

         thread_pool.queue_max_size="10000"

         thread_pool.rejection_policy="discard"

 

         oob_thread_pool.enabled="true"

         oob_thread_pool.min_threads="1"

         oob_thread_pool.max_threads="8"

         oob_thread_pool.keep_alive_time="5000"

         oob_thread_pool.queue_enabled="false"

         oob_thread_pool.queue_max_size="100"

         oob_thread_pool.rejection_policy="Run"/>

 

 

 

    <PING timeout="5000"

            num_initial_members="2"/>

    <MERGE2 max_interval="30000"

            min_interval="10000"/>

    <FD_ALL/>

    <VERIFY_SUSPECT timeout="1500"  />

    <BARRIER />

   

    <pbcast.NAKACK2 xmit_interval="1000"

                    xmit_table_num_rows="100"

                    xmit_table_msgs_per_row="2000"

                    xmit_table_max_compaction_time="30000"

                    max_msg_batch_size="500"

                    use_mcast_xmit="false"

                    discard_delivered_msgs="true"/>

    <UNICAST  xmit_interval="2000"

              xmit_table_num_rows="100"

              xmit_table_msgs_per_row="2000"

              xmit_table_max_compaction_time="60000"

              conn_expiry_timeout="60000"

              max_msg_batch_size="500"/>

    <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"

                   max_bytes="4M"/>

    <AUTH auth_class="org.jgroups.auth.SimpleToken"

          auth_value="…"/>

    <pbcast.GMS print_local_addr="true" join_timeout="3000"

                view_bundling="true"/>

    <UFC max_credits="2M"

         min_threshold="0.4"/>

    <MFC max_credits="2M"

         min_threshold="0.4"/>

    <FRAG2 frag_size="60K"  />

    <RSVP resend_interval="2000" timeout="10000"/>

    <ENCRYPT encrypt_entire_message="true"

             sym_init="256" sym_algorithm="AES/ECB/PKCS5Padding"

             asym_init="512" asym_algorithm="RSA"/>

    <pbcast.STATE_TRANSFER />

    <pbcast.FLUSH/>

</config>

 

 

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users
Ramakrishna Reddy Kandula | 21 Nov 22:57 2013
Picon

[jgroups-users] UNICAST2 - message not found in retransmission table

Hi,

We are getting this non-recoverable problem periodically in our clusters. On the sender machines, we see the WARN message like

2013-06-19 12:09:11,534 WARN   [OOB-141,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529: (requester=iseps-psn-28-18567) message iseps-psn-28-18567::7431 not found in retransmission table of iseps-psn-28-18567:

I have traced down why this is happening and here is the gist of the sequence.

2013-06-19 12:08:25,097 TRACE  [Incoming-96,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529 --> DATA(iseps-psn-28-18567: #8041, conn_id=265)
2013-06-19 12:08:25,097 TRACE  [Incoming-96,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.TUNNEL -:::::- sending msg to iseps-psn-28-18567, src=iseps-pan01-8529, headers are RequestCorrelator: id=200, type=RSP, id=27389, rsp_expected=false, UNICAST2: DATA, seqno=8041, conn_id=265, TUNNEL: [channel_name=ISERepCluster-BjJ4D]
...

<< There is a view change on the receiver iseps-psn-28-18567, but no such view change on the sender iseps-pan01-8529>>

2013-06-19 12:08:33,220 TRACE  [OOB-107,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.TUNNEL -:::::- received [dst: iseps-pan01-8529, src: iseps-psn-28-18567 (2 headers), size=0 bytes, flags=OOB], headers are UNICAST2: SEND_FIRST_SEQNO, seqno=8054, TUNNEL: [channel_name=ISERepCluster-BjJ4D]
2013-06-19 12:08:33,220 TRACE  [OOB-107,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529 <-- SEND_FIRST_SEQNO(iseps-psn-28-18567,8054)
2013-06-19 12:08:33,226 TRACE  [OOB-107,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.TUNNEL -:::::- sending msg to iseps-psn-28-18567, src=iseps-pan01-8529, headers are RequestCorrelator: id=200, type=RSP, id=26119, rsp_expected=false, UNICAST2: DATA, seqno=7417, conn_id=265, first, TUNNEL: [channel_name=ISERepCluster-BjJ4D]

2013-06-19 12:08:36,635 TRACE  [OOB-118,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.TUNNEL -:::::- received [dst: iseps-pan01-8529, src: iseps-psn-28-18567 (2 headers), size=0 bytes, flags=OOB], headers are UNICAST2: STABLE, seqno=8041, conn_id=265, TUNNEL: [channel_name=ISERepCluster-BjJ4D]
2013-06-19 12:08:36,635 TRACE  [OOB-118,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529 <-- STABLE(iseps-psn-28-18567: 8041-8041, conn_id=265)

2013-06-19 12:09:11,140 TRACE  [OOB-120,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.TUNNEL -:::::- received [dst: iseps-pan01-8529, src: iseps-psn-28-18567 (2 headers), size=0 bytes, flags=OOB], headers are UNICAST2: STABLE, seqno=7426, conn_id=265, TUNNEL: [channel_name=ISERepCluster-BjJ4D]
2013-06-19 12:09:11,140 TRACE  [OOB-120,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529 <-- STABLE(iseps-psn-28-18567: 7426-8135, conn_id=265)

2013-06-19 12:09:11,528 TRACE  [OOB-141,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.TUNNEL -:::::- received [dst: iseps-pan01-8529, src: iseps-psn-28-18567 (2 headers), size=15 bytes, flags=OOB], headers are UNICAST2: XMIT_REQ, seqno=0, TUNNEL: [channel_name=ISERepCluster-BjJ4D]
2013-06-19 12:09:11,528 TRACE  [OOB-141,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529 <-- XMIT(iseps-psn-28-18567: #[7431-8128])
2013-06-19 12:09:11,534 WARN   [OOB-141,ISERepCluster-BjJ4D,iseps-pan01-8529][] org.jgroups.protocols.UNICAST2 -:::::- iseps-pan01-8529: (requester=iseps-psn-28-18567) message iseps-psn-28-18567::7431 not found in retransmission table of iseps-psn-28-18567:


The receiver has seen upto message 8041 and then there was a membership view change on receiver but not on sender. The STABLE(8041) message that was received is probably caused by removeReceiveConnection on UNICAST2 in response to the membership view change that happened. But this message has come a few seconds after SEND_FIRST_SEQNO. The sender has responded to this with first seq number as 7417. Then as soon as STABLE(8041) was received, all messages up to 8041 were deleted from the window.
Now the receiver is stuck permanently and keeps as for retransmission of the messages that don't exist in the window.

We are using GossipRouter as we needed a hub-and-spoke model. Other observation is that this happens when some of the members are under heavy load.

Please advise.

Thanks,
ramky



------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
javagroups-users mailing list
javagroups-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javagroups-users

Gmane