Ant with JUnit task - OutOfMemoryError
问题 I have an interesting problem. I am using Ant which executes JUnit tests (test suite composed with 50 tests) via build.xml element. The problem is that I receive OutOfMemoryError. I have enlarged heap space using ANT_OPTS arguments but it did not help. When I execute the same test suite in Eclipse - everything is fine - memory is released thanks to GC. I think that this problem is related to Ant and its JUnit task. Maybe logging of the tests are the reason(but on the other hand I have