[Solved] Connection will be closed due to unrecoverable error java.lang.OutOfMemoryError

(Last Updated On: August 11, 2016)

[Solved] Connection will be closed due to unrecoverable error java.lang.OutOfMemoryError

 

Try to find the eclipse.ini file, which will be generally available in the eclipse folder.

[where you have eclipse.exe file].

file name: eclipse.ini [file type: configuration settings]

Find the below lines in the eclipse.ini file,

-Xms40m
-Xmx1024m

 

[or]

 

-Xms256m
-Xmx1024m

and change it to,

-Xms512m
-Xmx1350m

Note: Take the backup of the eclipse.ini file before modifying it.

sometimes this value change may cause a below error.

could not create the java virtual machine

then you can change -Xmx value alone to 1024m from 1350m and keep the -xms512m [or] -xms256m only.

-Xmx1024m

 

[change to this value only if you get the could not create the java virtual machine error.]

 

Feel free to post the comments in the below comments section.

 

341 total views, 0 views today

Leave a Reply

Your email address will not be published. Required fields are marked *