Why does heap space run out only when running JUnit tests?

前端 未结 5 1636
栀梦
栀梦 2021-01-03 19:11

When running JUnit tests, I always seem to run into this error:

eclipse outOfMemoryError: heap space

I have monitored Eclipse wi

5条回答
  •  心在旅途
    2021-01-03 19:43

    I found the solution to my problem - it may help others ;) When I was increasing the heap size I was increasing the heap size of eclipse application, not of my program (which I executed through eclipse) What I had to do is modify the execution commands before running my program.

提交回复
热议问题