jBoss max_bundle_size AIX cluster

This is a technical note about configuring a JBoss cluster on AIX 5.3.
I've set up a JBoss cluster on AIX. With default settings, JBoss startup throws an exception
(1). After a quick google, I've found the JGRP-798 on jBoss JIRA with a Workaround about configuring NIC or decrease max_bundle_size value to 8000 in cluster-service.xml.
I've tried to find aroud the web how to get rid of the 8000 limitation in the value of max_bundle_size, which meant finding correct AIX NIC settings.

I've finally found the following commands for AIX 5.3 as superuser :

no -o udp_recvspace=65000
no -o udp_sendspace=65000

This allowed me to use a max_bundle_size value up to 64000 in cluster-service.xml file, and increased performances of the JBoss cluster.

Hope this will be helpful.

(1)StackTrace in server.log :
2008-07-11 03:11:32,870 ERROR [org.jgroups.protocols.UDP] max_bundle_size (64000) is greater than largest TP fragmentation size (8000)
2008-07-11 03:11:32,870 ERROR [org.jgroups.protocols.UDP] the following properties are not recognized: {enable_bundling=true, max_bundle_size=64000, max_bundle_timeout=30}
2008-07-11 03:11:32,872 DEBUG [org.jboss.cache.aop.TreeCacheAop] Initialization failed jboss.cache:service=TomcatClusteringCache
org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.init(JChannel.java:1272)
at org.jgroups.JChannel.(JChannel.java:265)
at org.jgroups.JChannel.(JChannel.java:248)
at org.jboss.cache.TreeCache._createService(TreeCache.java:1474)
at org.jboss.cache.TreeCache.createService(TreeCache.java:1388)

2 commentaires:

Jean-Baptiste a dit…

Ils partent où les 10k qui te font passer de 65k assignés et 64k rééls ?

Nicolas Karageuzian a dit…

Ils sont la juste pour safe zone histoire pas avoir à se poser de questions.