mirror of https://github.com/apache/activemq.git
Increase AMQ6815Test timeout (failing on slow machine like Jenkins)
This commit is contained in:
parent
bfc4eab3ca
commit
5c7e23ac90
|
@ -71,7 +71,7 @@ public class AMQ6815Test {
|
||||||
brokerService.stop();
|
brokerService.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 240000)
|
@Test(timeout = 480000)
|
||||||
public void testHeapUsage() throws Exception {
|
public void testHeapUsage() throws Exception {
|
||||||
Runtime.getRuntime().gc();
|
Runtime.getRuntime().gc();
|
||||||
final long initUsedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
|
final long initUsedMemory = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
|
||||||
|
@ -79,7 +79,7 @@ public class AMQ6815Test {
|
||||||
Runtime.getRuntime().gc();
|
Runtime.getRuntime().gc();
|
||||||
long usedMem = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - initUsedMemory;
|
long usedMem = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - initUsedMemory;
|
||||||
LOG.info("Mem in use: " + usedMem/1024 + "K");
|
LOG.info("Mem in use: " + usedMem/1024 + "K");
|
||||||
assertTrue("Used Mem reasonable " + usedMem, usedMem < 5*MEM_LIMIT);
|
assertTrue("Used Mem reasonable " + usedMem, usedMem < 5 * MEM_LIMIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void sendMessages(int count) throws JMSException {
|
protected void sendMessages(int count) throws JMSException {
|
||||||
|
|
Loading…
Reference in New Issue