There is an issue in the Linux kernel that causes ipv6 to not work correctly with JDK 1.5 and lower. As a result, jbossas does not start by default on Linux unless ipv4 is forced. To that end, run.sh needs updating.
Something like:
if [ "`uname`" = "Linux" ]; then
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack
fi
fi
So that Linux systems use ipv4
See http://jira.jboss.com/jira
Main Topics
Browse All Topics





by: fshtankPosted on 2007-07-05 at 11:00:23ID: 19425946
CLUSTER-SERVICE.XML
========== ========== ========== ========== === --> ========== ========== ========== ========== === -->
========== ========== ========== ========== == --> ========== ========== ========== ========== == -->
rk.server. ClusterPar tition" s.partitio n.name:Def aultPartit ion}">
ss.partiti on.name:De faultParti tion}</att ribute>
.bind.addr ess}</attr ibute>
alse</attr ibute>
">30000</a ttribute>
ion.udpGro up:228.1.2 .3}" mcast_port="45566" _ttl:8}" ip_mcast="true" ion.udpGro up:10.46.5 .32}" mcast_port="45566" _ttl:8}" ip_mcast="true" 00" mcast_send_buf_size="64000 0" 00" ucast_send_buf_size="64000 0" 0,1200,240 0,4800" ,4800" window_size="100" min_threshold="10" max_bytes="400000"
00],otherh ost[7800]" port_range="3" timeout="3500" 0,1200,240 0,4800"/> max_bytes="400000" ing</depen ds>
========== ========== ========== ========== == --> ========== ========== ========== ========== == -->
onstate.se rver.HASes sionStateS ervice" ionState"> ing</depen ds> lusterPart ition" ss:service =${jboss.p artition.n ame:Defaul tPartition }</depends > State/Defa ult</attri bute> </attribut e>
========== ========== ========== ========== == --> ========== ========== ========== ========== == -->
NamingServ ice" "> lusterPart ition" ss:service =${jboss.p artition.n ame:Defaul tPartition }</depends > .bind.addr ess}</attr ibute> e> bute> te> ookupPool" ss.system: service=Th readPool</ depends>
alse</attr ibute> ress">${jb oss.bind.a ddress}</a ttribute> ">${jboss. partition. udpGroup:1 0.46.5.31} </attribut e --> ">${jboss. partition. udpGroup:2 30.0.0.4}< /attribute --> ">${jboss. partition. udpGroup:2 30.0.0.4}< /attribute > 1102</attr ibute> </attribut e> rg.jboss.h a.framewor k.interfac es.RoundRo bin</attri bute>
>custom</a ttribute> >custom</a ttribute>
.jrmp.serv er.JRMPInv okerHA" r,type=jrm pha"> ss.bind.ad dress}</at tribute> /attribute > ry">custom </attribut e> ry">custom </attribut e> ing</depen ds>
.pooled.se rver.Poole dInvokerHA " r,type=poo ledha"> /attribute > tribute> 00</attrib ute> </attribut e> {jboss.bin d.address} </attribut e> </attribut e> ">${jboss. bind.addre ss}</attri bute> </attribut e> lse</attri bute> ransaction ManagerSer vice">jbos s:service= Transactio nManager</ depends> ing</depen ds>
========== ========== ========== ========== == -->
========== ========== ========== ========== == --> ========== ========== ========== ========== == -->
lidation.b ridges.JGC acheInvali dationBrid ge" Invalidati onBridge,t ype=JavaGr oups"> lusterPart ition" ss:service =${jboss.p artition.n ame:Defaul tPartition }</depends > ce=Invalid ationManag er</depend s> >jboss.cac he:service =Invalidat ionManager </attribut e> GBridge</a ttribute>
.tree.Pass ivationTre eCache" EJB3SFSBCl usteredCac he">
_UNCOMMITT ED</attrib ute> </attribut e> che</attri bute>
00</attrib ute>
ut">15000< /attribute >
> StatefulEv ictionPoli cy
"> s">1</attr ibute> ame> ttribute> 00</attrib ute>
istentStat e">false</ attribute> sientState ">true</at tribute> >true</att ribute> StatefulCa cheLoader
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<?xml version="1.0" encoding="UTF-8"?>
<!-- ==========================
<!-- -->
<!-- Sample Clustering Service Configuration -->
<!-- -->
<!-- ==========================
<server>
<!-- ==========================
<!-- Cluster Partition: defines cluster -->
<!-- ==========================
<mbean code="org.jboss.ha.framewo
name="jboss:service=${jbos
<!-- Name of the partition being built -->
<attribute name="PartitionName">${jbo
<!-- The address used to determine the node name -->
<attribute name="NodeAddress">${jboss
<!-- Determine if deadlock detection is enabled -->
<attribute name="DeadlockDetection">F
<!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
<attribute name="StateTransferTimeout
<!-- The JGroups protocol configuration -->
<attribute name="PartitionConfig">
<!--
The default UDP stack:
- If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
appropriate NIC IP address, e.g bind_addr="192.168.0.2".
- On Windows machines, because of the media sense feature being broken with multicast
(even after disabling media sense) set the UDP protocol's loopback attribute to true
-->
<Config>
<!--
<UDP mcast_addr="${jboss.partit
ip_ttl="${jgroups.mcast.ip
-->
<UDP mcast_addr="${jboss.partit
ip_ttl="${jgroups.mcast.ip
mcast_recv_buf_size="20000
ucast_recv_buf_size="20000
loopback="false"/>
<PING timeout="2000" num_initial_members="3"
up_thread="true" down_thread="true"/>
<MERGE2 min_interval="10000" max_interval="20000"/>
<FD_SOCK down_thread="false" up_thread="false"/>
<FD shun="true" up_thread="true" down_thread="true"
timeout="10000" max_tries="5"/>
<VERIFY_SUSPECT timeout="3000" num_msgs="3"
up_thread="true" down_thread="true"/>
<pbcast.NAKACK gc_lag="50" retransmit_timeout="300,60
max_xmit_size="8192"
up_thread="true" down_thread="true"/>
<UNICAST timeout="300,600,1200,2400
down_thread="true"/>
<pbcast.STABLE desired_avg_gossip="20000"
up_thread="true" down_thread="true"/>
<FRAG frag_size="8192"
down_thread="true" up_thread="true"/>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
shun="true" print_local_addr="true"/>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
</Config>
<!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
<!--
<Config>
<TCP bind_addr="thishost" start_port="7800" loopback="true"
recv_buf_size="2000000" send_buf_size="640000"
tcp_nodelay="true" up_thread="false" down_thread="false"/>
<TCPPING initial_hosts="thishost[78
num_initial_members="3" up_thread="false" down_thread="false"/>
<MERGE2 min_interval="5000" max_interval="10000"
up_thread="false" down_thread="false"/>
<FD_SOCK down_thread="false" up_thread="false"/>
<FD shun="true" up_thread="false" down_thread="false"
timeout="10000" max_tries="5"/>
<VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
<pbcast.NAKACK up_thread="false" down_thread="false" gc_lag="100"
retransmit_timeout="300,60
<pbcast.STABLE desired_avg_gossip="20000"
down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true"
print_local_addr="true" up_thread="false" down_thread="false"/>
<FC max_credits="2000000" down_thread="false" up_thread="false"
min_threshold="0.10"/>
<FRAG2 frag_size="60000" down_thread="false" up_thread="true"/>
<pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
</Config>
-->
</attribute>
<depends>jboss:service=Nam
</mbean>
<!-- ==========================
<!-- HA Session State Service for SFSB -->
<!-- ==========================
<mbean code="org.jboss.ha.hasessi
name="jboss:service=HASess
<depends>jboss:service=Nam
<!-- We now inject the partition into the HAJNDI service instead
of requiring that the partition name be passed -->
<depends optional-attribute-name="C
proxy-type="attribute">jbo
<!-- JNDI name under which the service is bound -->
<attribute name="JndiName">/HASession
<!-- Max delay before cleaning unreclaimed state.
Defaults to 30*60*1000 => 30 minutes -->
<attribute name="BeanCleaningDelay">0
</mbean>
<!-- ==========================
<!-- HA JNDI -->
<!-- ==========================
<mbean code="org.jboss.ha.jndi.HA
name="jboss:service=HAJNDI
<!-- We now inject the partition into the HAJNDI service instead
of requiring that the partition name be passed -->
<depends optional-attribute-name="C
proxy-type="attribute">jbo
<!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
<attribute name="BindAddress">${jboss
<!-- Port on which the HA-JNDI stub is made available -->
<attribute name="Port">1100</attribut
<!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. -->
<attribute name="RmiPort">1101</attri
<!-- Accept backlog of the bootstrap socket -->
<attribute name="Backlog">50</attribu
<!-- The thread pool service used to control the bootstrap and
auto discovery lookups -->
<depends optional-attribute-name="L
proxy-type="attribute">jbo
<!-- A flag to disable the auto discovery via multicast -->
<attribute name="DiscoveryDisabled">f
<!-- Set the auto-discovery bootstrap multicast bind address. If not
specified and a BindAddress is specified, the BindAddress will be used. -->
<attribute name="AutoDiscoveryBindAdd
<!-- Multicast Address and group port used for auto-discovery -->
<!--attribute name="AutoDiscoveryAddress
<!--attribute name="AutoDiscoveryAddress
<attribute name="AutoDiscoveryAddress
<attribute name="AutoDiscoveryGroup">
<!-- The TTL (time-to-live) for autodiscovery IP multicast packets -->
<attribute name="AutoDiscoveryTTL">16
<!-- The load balancing policy for HA-JNDI -->
<attribute name="LoadBalancePolicy">o
<!-- Client socket factory to be used for client-server
RMI invocations during JNDI queries
<attribute name="ClientSocketFactory"
-->
<!-- Server socket factory to be used for client-server
RMI invocations during JNDI queries
<attribute name="ServerSocketFactory"
-->
</mbean>
<mbean code="org.jboss.invocation
name="jboss:service=invoke
<attribute name="ServerAddress">${jbo
<attribute name="RMIObjectPort">4447<
<!--
<attribute name="RMIClientSocketFacto
<attribute name="RMIServerSocketFacto
-->
<depends>jboss:service=Nam
</mbean>
<!-- the JRMPInvokerHA creates a thread per request. This implementation uses a pool of threads -->
<mbean code="org.jboss.invocation
name="jboss:service=invoke
<attribute name="NumAcceptThreads">1<
<attribute name="MaxPoolSize">300</at
<attribute name="ClientMaxPoolSize">3
<attribute name="SocketTimeout">60000
<attribute name="ServerBindAddress">$
<attribute name="ServerBindPort">4446
<attribute name="ClientConnectAddress
<attribute name="ClientConnectPort">0
<attribute name="EnableTcpNoDelay">fa
<depends optional-attribute-name="T
<depends>jboss:service=Nam
</mbean>
<!-- ==========================
<!-- ==========================
<!-- Distributed cache invalidation -->
<!-- ==========================
<mbean code="org.jboss.cache.inva
name="jboss.cache:service=
<!-- We now inject the partition into the HAJNDI service instead
of requiring that the partition name be passed -->
<depends optional-attribute-name="C
proxy-type="attribute">jbo
<depends>jboss.cache:servi
<attribute name="InvalidationManager"
<attribute name="BridgeName">DefaultJ
</mbean>
<mbean code="org.jboss.ejb3.cache
name="jboss.cache:service=
<attribute name="IsolationLevel">READ
<attribute name="CacheMode">REPL_SYNC
<attribute name="ClusterName">SFSB-Ca
<attribute name="ClusterConfig">
... ...
</attribute>
<!-- Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
<attribute name="SyncReplTimeout">100
<!-- Max number of milliseconds to wait for a lock acquisition -->
<attribute name="LockAcquisitionTimeo
<!-- Name of the eviction policy class. -->
<attribute name="EvictionPolicyClass"
org.jboss.ejb3.cache.tree.
</attribute>
<!-- Specific eviction policy configurations. This is LRU -->
<attribute name="EvictionPolicyConfig
<config>
<attribute name="wakeUpIntervalSecond
<name>statefulClustered</n
<region name="/_default_">
<attribute name="maxNodes">1000000</a
<attribute name="timeToIdleSeconds">3
</region>
</config>
</attribute>
<attribute name="CacheLoaderFetchPers
<attribute name="CacheLoaderFetchTran
<attribute name="FetchStateOnStartup"
<attribute name="CacheLoaderClass">
org.jboss.ejb3.cache.tree.
</attribute>
<attribute name="CacheLoaderConfig">
location=statefulClustered
</attribute>
</mbean>
</server>