Eclipse: The memory could not be “read”

Firstly, if you are not using SSL for all your sites, you should step it up! NameCheap's SSL certificates start at only $9. There's no excuse!
Firstly, if you have not tried Digital Ocean's SSD Virtual Servers for only $5/mo, I highly recommend them!

Eclipse started giving me this error when I tried to open it. Who knows why – no new plugins, projects, etc.

The instruction at "0x7c93426d" referenced memory
at "0x00000000". The memory could not be "read".

Click on OK to terminate the program
Click on CANCEL to debug the program

Then I vaguely remembered editing a .ini file for Eclipse once and it had something to do with memory allocation. I opened eclipse.ini in my Eclipse folder and just added another line, which doubled the previous number. The last line said -Xmx512m, so I added -Xmx1024m…… and this actually worked. I ended up with this eclipse.ini:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128M
-vmargs
-Xms40m
-Xmx256m
-Xmx512m
-Xmx1024m

I have almost no idea WTF. I’m sure the answer is in here somewhere.


About this entry


Good Reads