Error java.lang.OutOfMemoryError: GC overhead limit exceeded

后端 未结 20 2472
攒了一身酷
攒了一身酷 2020-11-21 05:23

I get this error message as I execute my JUnit tests:

java.lang.OutOfMemoryError: GC overhead limit exceeded

I know what an OutOfMemo

20条回答
  •  猫巷女王i
    2020-11-21 05:38

    Just increase the heap size a little by setting this option in

    Run → Run Configurations → Arguments → VM arguments

    -Xms1024M -Xmx2048M
    

    Xms - for minimum limit

    Xmx - for maximum limit

提交回复
热议问题