|
|
Mozy Online Backup: 2GB Free. Automatic. Secure.
Subject: RE: Messages received from different group. - msg#00006
List: java.javagroups.general
I
can't address your first question as I'm new to JavaGroups as well, but to
modify log levels you just need to modify the log4j.properties file that is in
your classpath. If you don't have one it is probably using the default
config. You can find a sample
at jgroups-src/conf/log4j.properties. You can modify the logging for
the entire jgroups package or the individual components.
Daniel
-----Original Message----- From: Ven, Bas (Jacob Bastiaan
Ven) [mailto:bas.ven@xxxxxx] Sent: Wednesday, December 01, 2004
12:51 PM To:
javagroups-users@xxxxxxxxxxxxxxxxxxxxx Subject: [javagroups-users]
Messages received from different group.
I am just starting playing with JGroup and
created a class that uses both NotificationBus and the MessageDispatcher (each
having their own channel). When running with eclipse, I only see messages when
I tell 'm to send them. When I run the same class from the command line, I see
a lot of the below warnings. I am suspecting that the log level is different
in both cases. What I'd like to know is why am getting these as warnings. It
reads to me that one channel receives messages (are these the pings????) send
by the other and vice versa. Can anyone explain?
Secondly how/where do I set and define the log
levels. I don't care too much about warnings (after understanding
them);
Thanks,
Bas
WARNING:
discarded message from different group (commandGroup). Sender was
batter:3831 Nov 22, 2004 1:23:31 PM org.jgroups.protocols.UDP
handleMessage WARNING: discarded message from different group
(commandGroup). Sender was batter:3831 Nov 22, 2004 1:23:35 PM
org.jgroups.protocols.UDP handleMessage WARNING: discarded message from
different group (NotificationGroup). Sender was
batter:3838
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Messages received from different group.
I am just starting playing with JGroup and created a class that uses both NotificationBus and the MessageDispatcher (each having their own channel). When running with eclipse, I only see messages when I tell 'm to send them. When I run the same class from the command line, I see a lot of the below warnings. I am suspecting that the log level is different in both cases. What I'd like to know is why am getting these as warnings. It reads to me that one channel receives messages (are these the pings????) send by the other and vice versa. Can anyone explain?
Secondly how/where do I set and define the log levels. I don't care too much about warnings (after understanding them);
Thanks,
Bas
WARNING: discarded message from different group (commandGroup). Sender was batter:3831
Nov 22, 2004 1:23:31 PM org.jgroups.protocols.UDP handleMessage
WARNING: discarded message from different group (commandGroup). Sender was batter:3831
Nov 22, 2004 1:23:35 PM org.jgroups.protocols.UDP handleMessage
WARNING: discarded message from different group (NotificationGroup). Sender was batter:3838
Next Message by Date:
click to view message preview
Merge
Hi
I am running the following scenario:
I have two or more machine implementing fail over using jgroups. When one
of
the machines fails, others in the group detect it and take action.
What I expect, is when the machine that failed comes back in (putting the
network plug back in - the application is still running, meaning that that
machine still "thinks" it is in the group), the other members should
recognize it, without the need to restart the appliaction and rejoining the
group.
Once I was told to add MERGE2 to the protocol stack. It did not help. The
"other" machines do not see that server comes back in, and not sharing data
with it.
I am using the following protocol stack :
UDP(bind_addr={0};mcast_addr={1};mcast_port={2};ip_ttl=32;\
mcast_send_buf_size=150000;mcast_recv_buf_size=80000):\
PING(timeout=1250;num_initial_members=2):\
MERGE2(max_interval=10000;min_interval=5000):\
FD_SOCK:\
FD(timeout=1000;max_tries=2):\
VERIFY_SUSPECT(timeout=500):\
pbcast.NAKACK(gc_lag=50;retransmit_timeout=300):\
UNICAST(timeout=1000):\
pbcast.STABLE(desired_avg_gossip=5000):\
FRAG(frag_size=4096;down_thread=false;up_thread=false):\
pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;\
shun=false;print_local_addr=true):\
pbcast.STATE_TRANSFER
Help would be appriciated.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Previous Message by Thread:
click to view message preview
Re: Messages received from different group.
You can ignore the warnings; you have 2 groups, and they simply discard
each other's messages. What I recommend though is to change the
multicast address and/or port in one of them, e.g.
UDP(mcast_addr=228.1.2.3; mcast_port=45678)
Ven, Bas (Jacob Bastiaan Ven) wrote:
I am just starting playing with JGroup and created a class that uses
both NotificationBus and the MessageDispatcher (each having their own
channel). When running with eclipse, I only see messages when I tell
'm to send them. When I run the same class from the command line, I
see a lot of the below warnings. I am suspecting that the log level is
different in both cases. What I'd like to know is why am getting these
as warnings. It reads to me that one channel receives messages (are
these the pings????) send by the other and vice versa. Can anyone
explain?
Secondly how/where do I set and define the log levels. I don't care
too much about warnings (after understanding them);
Thanks,
Bas
WARNING: discarded message from different group (commandGroup). Sender
was batter:3831
Nov 22, 2004 1:23:31 PM org.jgroups.protocols.UDP handleMessage
WARNING: discarded message from different group (commandGroup). Sender
was batter:3831
Nov 22, 2004 1:23:35 PM org.jgroups.protocols.UDP handleMessage
WARNING: discarded message from different group (NotificationGroup).
Sender was batter:3838
--
Bela Ban
Lead JGroups / JBossCache
callto://belaban
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Next Message by Thread:
click to view message preview
RE: Messages received from different group.
Maybe bad etiquette to follow up on one's own message but
anyways this might help someone else.
In my own classes I am not doing anything w.r.t.
logging.
I tried to point to my log properties file using
-Dlog4j.configuration=<my file> ....
This didn't work. When I changed it to
-Djava.util.logging.config.file=<my file>....
finally my properties were being
applied.
The 'whyj' on the WARNING message below is still
outstanding.
Bas
From:
javagroups-users-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:javagroups-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ven,
Bas (Jacob Bastiaan Ven)Sent: Wednesday, December 01, 2004 10:51
AMTo: javagroups-users@xxxxxxxxxxxxxxxxxxxxxSubject:
[javagroups-users] Messages received from different group.
I am just starting playing with JGroup and
created a class that uses both NotificationBus and the MessageDispatcher (each
having their own channel). When running with eclipse, I only see messages when I
tell 'm to send them. When I run the same class from the command line, I see a
lot of the below warnings. I am suspecting that the log level is different in
both cases. What I'd like to know is why am getting these as warnings. It reads
to me that one channel receives messages (are these the pings????) send by the
other and vice versa. Can anyone explain?
Secondly how/where do I set and define the log
levels. I don't care too much about warnings (after understanding
them);
Thanks,BasWARNING: discarded
message from different group (commandGroup). Sender was batter:3831Nov 22,
2004 1:23:31 PM org.jgroups.protocols.UDP handleMessageWARNING: discarded
message from different group (commandGroup). Sender was batter:3831Nov 22,
2004 1:23:35 PM org.jgroups.protocols.UDP handleMessageWARNING: discarded
message from different group (NotificationGroup). Sender was
batter:3838
|
|