Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 22026

Summary: [Exception Handling] Eclipse could provide hint when OutOfMemory occurs
Product: [Eclipse Project] Platform Reporter: Peter Burka <peter_burka>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P4    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Peter Burka CLA 2002-07-29 19:37:07 EDT
A fairly common FAQ on the newsgroup is: 'Why am I getting OutOfMemoryErrors 
from Eclipse? I have 2GB of RAM on my machine!'

The problem, of course, is that the VM has a fixed memory limit. The fix is to 
specify -vmargs -Xmx400m, or something, on the eclipse.exe command line.

It might help if Eclipse displayed a more descriptive error message when an 
OutOfMemoryError occurs, suggesting that the user add this option to the 
command line.
Comment 1 Carolyn MacLeod CLA 2003-12-02 13:19:56 EST
I believe that this bug could be marked as a duplicate of 33972 (that seems to 
be the common collecting ground for "need to handle OutOfMemory errors better" 
bug reports.
Comment 2 Nick Edgar CLA 2004-04-16 14:20:06 EDT

*** This bug has been marked as a duplicate of 33972 ***