Could not create the Java virtual machine

后端 未结 5 1728
野性不改
野性不改 2021-02-06 22:09

facing some problem with java virtual machine initialization. when i am using root account i can properly work with java. but when i am a user account it returns following error

5条回答
  •  一整个雨季
    2021-02-06 23:04

    I had this issue today, and for me the problem was that I had allocated too much memory:

    -Xmx1024M -XX:MaxPermSize=1024m

    Once I reduced the PermGen space, everything worked fine:

    -Xmx1024M -XX:MaxPermSize=512m

    I know that doesn't look like much of a difference, but my machine only has 4GB of RAM, and apparently that was the straw that broke the camel's back. The Java VM was failing immediately upon every action because it was failing to allocate the memory.

提交回复
热议问题