Our tester at work can't make our app get an OOM error by testing by hand, but when we run our integration tests, after about 50 or so tests we get an OOM error and the rest of the tests don't finish.
I'd like to dump the heap when we get OOM during the integration tests. I'm using Maven, and Spoon to kick off the integration tests. I'd really like to take a look at the heap to see what's killing memory. I tried connecting monitor during the test run, but the port ddms tries to hook into is tied up.