[jboss-cvs] JBoss Messaging SVN: r5542 - trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Dec 18 14:11:01 EST 2008


Author: clebert.suconic at jboss.com
Date: 2008-12-18 14:11:01 -0500 (Thu, 18 Dec 2008)
New Revision: 5542

Modified:
   trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/MultiThreadRandomFailoverTest.java
   trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/RandomFailoverTest.java
Log:
Setting JMX management to false as discussed here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197442#4197442

Modified: trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/MultiThreadRandomFailoverTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/MultiThreadRandomFailoverTest.java	2008-12-18 15:59:58 UTC (rev 5541)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/MultiThreadRandomFailoverTest.java	2008-12-18 19:11:01 UTC (rev 5542)
@@ -1342,6 +1342,8 @@
                 .add(new TransportConfiguration("org.jboss.messaging.core.remoting.impl.invm.InVMAcceptorFactory",
                                                 backupParams));
       backupConf.setBackup(true);
+      // This will make GC easier since it won't hang references to MessageCounters and other objects. (This will make debug easier in certain situations also)
+      backupConf.setJMXManagementEnabled(false);
       backupService = MessagingServiceImpl.newNullStorageMessagingService(backupConf);
       backupService.start();
 
@@ -1359,6 +1361,8 @@
                                                                    "backup-connector");
       connectors.put(backupTC.getName(), backupTC);
       liveConf.setConnectorConfigurations(connectors);
+      // This will make GC easier since it won't hang references to MessageCounters and other objects. (This will make debug easier in certain situations also)
+      liveConf.setJMXManagementEnabled(false);
       liveConf.setBackupConnectorName(backupTC.getName());
       liveService = MessagingServiceImpl.newNullStorageMessagingService(liveConf);
       liveService.start();

Modified: trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/RandomFailoverTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/RandomFailoverTest.java	2008-12-18 15:59:58 UTC (rev 5541)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/cluster/failover/RandomFailoverTest.java	2008-12-18 19:11:01 UTC (rev 5542)
@@ -1478,6 +1478,8 @@
                 .add(new TransportConfiguration("org.jboss.messaging.core.remoting.impl.invm.InVMAcceptorFactory",
                                                 backupParams));
       backupConf.setBackup(true);
+      // This will make GC easier since it won't hang references to MessageCounters and other objects. (This will make debug easier in certain situations also)
+      backupConf.setJMXManagementEnabled(false);
       backupService = MessagingServiceImpl.newNullStorageMessagingService(backupConf);
       backupService.start();
 
@@ -1487,6 +1489,8 @@
 
       Configuration liveConf = new ConfigurationImpl();
       liveConf.setSecurityEnabled(false);
+      // This will make GC easier since it won't hang references to MessageCounters and other objects. (This will make debug easier in certain situations also)
+      liveConf.setJMXManagementEnabled(false);
       liveConf.getAcceptorConfigurations()
               .add(new TransportConfiguration("org.jboss.messaging.core.remoting.impl.invm.InVMAcceptorFactory"));
       Map<String, TransportConfiguration> connectors = new HashMap<String, TransportConfiguration>();




More information about the jboss-cvs-commits mailing list