“insufficient memory for the Java Runtime Environment ” message in eclipse

后端 未结 10 1626
天命终不由人
天命终不由人 2020-12-08 03:51

When I run my Java code in Eclipse, I get the following message:

There is insufficient memory for the Java Runtime Environment to continue.
Native memory all         


        
10条回答
  •  不思量自难忘°
    2020-12-08 04:33

    In your Eclipse installation directory you should be able to find the file eclipse.ini. Open it and find the -vmargs section. Adjust the value of:

    -Xmx1024m
    

    In this example it is set to 1GB.

提交回复
热议问题