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

后端 未结 8 1956
轻奢々
轻奢々 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:50

    Sometimes it may happen that you run multiple applications on the same java VM. In Case you have tried all the other solutions described above and it didnt work. Try Running your process by running it on a newly created java VM by passing vmargs

    -agentlib:jdwp=transport=dt_socket,server=y,address=10049,suspend=n . 
    

    Here address is what the vm takes.

提交回复
热议问题