Friday, January 15, 2010

How to enable logging for jgroups in SOA Cluster

There is an excellent site for learning about jgroups

http://www.jgroups.org/overview.html

Jgroups is a reliable protocol for muticast addressing.

Multicast addressing is a network technology for the delivery of information to a group of destinations simultaneously using the most efficient strategy to deliver the messages over each link of the network only once, creating copies only when the links to the multiple destinations split.

Jgroups is used within oracle SOA Suite as a multicast addressing protocol.It is used to find out issues realted to the clustering.YOu can enable the logging for jgroups by following these instructions.

shutdown your SOA Server

go to SOA_HOME/opmn/bin directory and issue opmnctl stopall command.It will stop the server.

now go to the following directory

SOA_HOME/j2ee/oc4j_soa/config and find the j2ee-logging.xml file there.

Add a new entry over there within logger configuration as shown




you might find the other entries also like this,this will contain the jgroup logs.

Here i have specified the path where i want my log files to be stored you can have your own path where you want to store it.

Now if you will browse down in the j2ee-logging.xml you might get the following entry




Now add a new entry for the jgroups so that it should now look like this



This example will made the loggin level to finest level you can change it to severe level to get more details about the issue.

Once all the changes are done save the file and restart the server.now you will be able to log the jgroups error in the path you have specified.

We know that if the machines are on same subnet then we use UDP protocol and when they are on different subnet we use TCP protocol but it is my experience that we always get issues with UDP protocol as also pointed out by the document i have mentioned in the begining,UDP is not a reliable protocol so if your configuration is not working properly with UDP you can always switch to TCP protocol , no matter even if it is on same subnet.

No comments: