Solution: MyEclipse: java.lang.OutOfMemoryError: Java heap space




The simplest solution to overcome the OutOfMemory error in myEclipse or Eclipse:
1. Choose the project first at runtime.
2. Right Click of the project in the left pan of MyEclipse / Eclipse.
3. Go to 'Run As' ---> 'Open Run Dialog...'
4. Go to 'Argument' tab in the center.
5. Put '-Xmx1024m' (without single quotes (')) as argument in VM.
6. Click 'Apply' button and then 'Run'.

It will run fine now.

Comments

Popular posts from this blog

attach file gives false disk address path as 'C:/fakepath/filename'

How to fix World-writable config file /etc/my.cnf is ignored?

Ajmer tour on 18th June '11