One quick way to resolve the Java OutOfMemory error in Eclipse...
1) Open 'Debug Configurations' in Eclipse. (Run --> Debug Configurations)
2) In the left pane, click on 'Java Application'.
3) The list of java application ( with the main() method) are listed here.
4) Select the required Java Application.
5) In the right pane, click on the '(x)=Arguments'. Under VM Arguments, type
-Xmx1g - This will increase the heap size to 1 GB
-Xmx256m - This will increase the heap size to 256 MB.
6) Click Apply and Ok.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment