[jgroups-users] Using JGroups with Ehcache+Hibernate not working

Questions/problems related to using JGroups <[email protected]> Tue, 26 Mar 2019 01:54:48 -0700 (MST)
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.15698.1553590499.1518.javagroups-users@lists.sourceforge.net>
Hi,

We have multiple Java processes running on a single host that talk to a
single database using Hibernate. Later on the processes will run from
different hosts but for now everything runs on the same machine.
To improve our applications performance we decided to use Hibernate Second
Level Caching with Ehcache. Till here it works fine. But since we have
different java processes we need JGroups to sync the Ehcache in each
process. This is not working.

Environment: Linux Red Hat Enterprise Linux Server release 6.8 (Santiago)
ehcache-2.10.5.jar  
ehcache-jgroupsreplication-1.7.jar  
hibernate-ehcache-4.3.11.Final.jar
jgroups-3.0.16.Final.jar
openjdk version "1.8.0_141"

Attached is the ehcache.xml that has the configuration for JGroups
ehcache.xml <http://jgroups.1086181.n5.nabble.com/file/t1834/ehcache.xml>  

On starting the java processes we are able to see the EH_CACHE and other
related threads in JConsole, so I assume it is getting all the jars etc.
JConsole.PNG <http://jgroups.1086181.n5.nabble.com/file/t1834/JConsole.PNG>  

We are also able to see the UDP traffic. This means the packets are being
sent but probably not received. 
#tcpdump -v udp port 45566
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535
bytes
20:47:51.459913 IP6 (class 0x08, hlim 32, next-header UDP (17) payload
length: 85) fe80::5054:ff:fe63:b8dd.45566 > ff0e::e70c:1584.45566: [udp sum
ok] UDP, length 77

Can someone please confirm if the configurations in the Ehcache.xml are
correct or not?
What multicast IP should we be using? We are aware of the reserved IPs and
not used from that list.
Apart from this do we have to do any other configurations for the network
etc.
I do not have much networking knowledge and new to JGroups as well. 

Thanks!












--
Sent from: http://jgroups.1086181.n5.nabble.com/JGroups-General-f3.html