Could not reserve enough space for object heap

后端 未结 26 1799
余生分开走
余生分开走 2020-11-22 05:59

I am getting the following exception repeatedly each time I try to run the program.

Error occurred during initialization of VM

Could not reserve e

26条回答
  •  野的像风
    2020-11-22 06:37

    32-bit Java requires contiguous free space in memory to run. If you specify a large heap size, there may not be so much contiguous free space in memory even if you have much more free space available than necessary.

    Installing a 64-bit version of Java helps in these cases, the contiguous memory requirements only applies to 32-bit Java.

提交回复
热议问题