-
1. Re: Question about UDP & Clustering
wdfink Apr 17, 2012 1:49 PM (in response to netpez)Is the JVM started with the option-Djava.net.preferIPv4Stack=true?
-
2. Re: Question about UDP & Clustering
netpez Apr 17, 2012 1:57 PM (in response to wdfink)No... I am not familiar with protocol details, but I thought most networks preferred IPv6 or IPv7 ?
Can you tell me what the details/impacts of this are?
FYI, here is my startup for the JVM (yes we are running vignette)
DIRNAME=`dirname $0`
if [ "x$JBOSS_HOME" = "x" ]; then JBOSS_HOME=`cd $DIRNAME/../..; pwd`; fi
JAVA_OPTS="$JAVA_OPTS -Xms1584m -Xmx1584m -XX:PermSize=128m -XX:MaxPermSize=384m -verbose:gc -Xloggc:/app/log/vap/jboss-gc/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dcom.vignette.portal.installdir.path=/app/vignette/vap/portal -Dcom.vignette.installDir=/app/vignette/vcm/Content/7_5 -Dcom.vignette.workingDir=/app/share/vcm/inst-vgninst/cfgagent/vcm-vgninst/cdsvcs/stage-live/cds-live/as/conf -Djava.awt.headless=true -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=false"
. "$JBOSS_HOME"/bin/run.sh -c portal -b 161.253.150.19
Thanks
Chris
-
3. Re: Question about UDP & Clustering
wdfink Apr 17, 2012 2:23 PM (in response to netpez)Uuhh, IPv7 you are in the future
There are IPv4 and IPv6 network standards.
IPv6 is not supported by AS4, so set something like:
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
to your run.conf (linux) or run.conf.bat (win) to ensure the setting.
If you set JAVA_OPTS by your environment you should add it here
-
4. Re: Question about UDP & Clustering
netpez Apr 17, 2012 2:34 PM (in response to wdfink)LOL IPV7... not sure where that came from...
As of right now, I don't believe our network has implemented ipv6, so what would the impact of the jvm startup not having that parameter be?.... Sorry, I try to fully understand issues/resolutions before implementing..
Thanks
Chris
-
5. Re: Question about UDP & Clustering
wdfink Apr 18, 2012 8:55 AM (in response to netpez)It's only to force IPv4 use, I don't understand the reason behind exactly.
But if the OS is able to connect to IPv6 you might have problems if you not force a IPv4 use.
-
6. Re: Question about UDP & Clustering
netpez Apr 18, 2012 10:38 AM (in response to wdfink)do you know if the bind_port config under the UDP section within cluster service should be the same port or different ports on our cluster of 4 jboss servers?
-
7. Re: Question about UDP & Clustering
wdfink Apr 18, 2012 12:42 PM (in response to netpez)What port you mean, can you show the configuration.
If you don't change the config you should use the -b to set the ip-binding and -u and -g for JGroups clustering.
-b depends on the installation/instance and -u-g must be the same for clustering
-
8. Re: Question about UDP & Clustering
netpez Apr 18, 2012 12:56 PM (in response to wdfink)in the cluster-service.xml file (which defines your cluster, there is a section for partitionconfig immediately under that is the UDP configs.... here is ours:
<UDP mcast_addr="${jboss.partition.udpGroup:239.164.11.44}" mcast_port="${jboss.hapartition.mcast_port:45566}" bind_port="45394" tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000" loopback="false" discard_incompatible_packets="true" enable_bundling="false" max_bundle_size="64000" max_bundle_timeout="30" use_incoming_packet_handler="true" use_outgoing_packet_handler="false" ip_ttl="${jgroups.udp.ip_ttl:20}" down_thread="false" up_thread="false"/> What I cannot figure out, is whether or not the bind_port config should be the same or different on all my app servers that are in the cluster.
Thanks
Chris
-
9. Re: Question about UDP & Clustering
wdfink Apr 19, 2012 8:32 AM (in response to netpez)can be same or different.
See wiki
"The port to which the transport binds. Default of 0 binds to any (ephemeral) port"