Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine

后端 未结 8 1868
轻奢々
轻奢々 2020-12-25 09:04

I am facing this problem since more than a month, here is what I see when I run java on command line:

$ java -Xmx1300m 
Error occurred during initialization          


        
相关标签:
8条回答
  • 2020-12-25 09:53

    Thanks.I changed heap space from 2000MB to 1024MB and it worked...

    0 讨论(0)
  • 2020-12-25 09:54

    Eureka ! Finally I found a solution on this.

    This is caused by Windows update that stops any 32-bit processes from consuming more than 1200 MB on a 64-bit machine. The only way you can repair this is by using the System Restore option on Win 7.

    Start >> All Programs >> Accessories >> System Tools >> System Restore.

    And then restore to a date on which your Java worked fine. This worked for me. What is surprising here is Windows still pushes system updates under the name of "Critical Updates" even when you disable all windows updates. ^&%)#* Windows :-)

    0 讨论(0)
提交回复
热议问题