From c24574c801accb0b3a87a47ea89c369a61221b60 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Tue, 5 Feb 2008 12:01:19 +0000 Subject: [PATCH] don't set memory limit git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@618615 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/activemq/usecases/AMQStackOverFlowTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java b/activemq-core/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java index dc6da132b5..59241d7d4b 100644 --- a/activemq-core/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/usecases/AMQStackOverFlowTest.java @@ -91,7 +91,7 @@ public class AMQStackOverFlowTest extends TestCase { }); final Message m2 = template1.receive("test2.q"); - + assertNotNull(m2); assertTrue(m2 instanceof TextMessage); final TextMessage tm2 = (TextMessage)m2; @@ -118,14 +118,14 @@ public class AMQStackOverFlowTest extends TestCase { brokerService.setUseJmx(true); final SystemUsage memoryManager = new SystemUsage(); - memoryManager.getMemoryUsage().setLimit(10); + //memoryManager.getMemoryUsage().setLimit(10); brokerService.setSystemUsage(memoryManager); final List policyEntries = new ArrayList(); final PolicyEntry entry = new PolicyEntry(); entry.setQueue(">"); - entry.setMemoryLimit(1); + //entry.setMemoryLimit(1); policyEntries.add(entry); final PolicyMap policyMap = new PolicyMap(); @@ -142,7 +142,7 @@ public class AMQStackOverFlowTest extends TestCase { final NetworkConnector nc = new DiscoveryNetworkConnector(new URI("static:" + uri2)); nc.setBridgeTempDestinations(true); nc.setBrokerName(brokerName); - nc.setPrefetchSize(1); + //nc.setPrefetchSize(1); brokerService.addNetworkConnector(nc); }