Error java.lang.OutOfMemoryError: GC overhead limit exceeded

后端 未结 20 2471
攒了一身酷
攒了一身酷 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条回答
  •  我寻月下人不归
    2020-11-21 05:31

    To increase heap size in IntelliJ IDEA follow the following instructions. It worked for me.

    For Windows Users,

    Go to the location where IDE is installed and search for following.

    idea64.exe.vmoptions
    

    Edit the file and add the following.

    -Xms512m
    -Xmx2024m
    -XX:MaxPermSize=700m
    -XX:ReservedCodeCacheSize=480m
    

    That is it !!

提交回复
热议问题