Closed wlnirvana closed 3 years ago
This is not an issue of JUnit but your application under test. I recommend running tests with -XX:+HeapDumpOnOutOfMemoryError
to see if you might have a memory leak or just need to give your test JVM more memory.
This issue only happens in our production server but can be quite stably reproduced. Even though timeout is set, the tests run extremely slow, with the following error printed out occasionally.
Project to reproduce the issue: slow.tar.gz
Steps to reproduce the issue: just uncompress the tarball and run
bash run.sh
Environment info: