We have a Hudson/Ant build setup. I have just added a series of Apache Cactus (version 1.8.1) unit tests to the project and am trying to run them after the project builds. I get the following error when it tries to execute the cactus task: "java.lang.OutOfMemoryError: Java heap space."
We have already bumped up the Java heap space as much as we can. Is there a way to make the Cactus task use less memory? Or something else I can do within the test cases themselves to reduce the memory footprint?
Are you absolutely certain the tests do not reveal a memory leak?