Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 24512 - [launcher] Default heap size using the native eclipse launcher should be 128MB
Summary: [launcher] Default heap size using the native eclipse launcher should be 128MB
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0.1   Edit
Hardware: PC other
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 66341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-08 11:09 EDT by Martin Möbius CLA
Modified: 2004-06-11 11:27 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Möbius CLA 2002-10-08 11:09:36 EDT
Suns jvm has afaik a default max heap size of 64MB. This is very, very small. 
In the newsgroup its a faq how to solve OutOfMemoryException.
So it would be good to assume a sun jvm is used and to append a -Xmx128M to 
the -vmargs section.
Comment 1 Archimedes Trajano CLA 2002-10-25 14:05:55 EDT
I am still concenern about why the VM and Memory usage goes above the value I 
set on -Xmx

In my case I set it to -Xmx96 but I see the VM Size column reaching 128MB and 
the Memory Used column just slightly lower than that.

It may be because of plug-ins and not eclipse itself.  Perhaps if eclipse had a 
plug-in or something like a memory profiler for plug-in memory usage.
Comment 2 Jeff McAffer CLA 2004-03-25 15:51:10 EST
In general the launcher should just run the VM.  All VMs are differnet and all 
situations are different.  With the advent of Eclipse as an RCP, there are many 
scenarios where larger memory sizes are not warranted.

closing.
Comment 3 Martin Möbius CLA 2004-03-25 16:09:08 EST
Number one scenario for eclipse is still the java ide. For the normal user it
will look like a fault of eclipse if the jvm dies with OOME.
Most users are running eclipse on top of sun jvm on windows.
RCP developers can easily change the soucres to whatever they like. Or setup an
own installation routine.
So sad to see this bug closing.
Hopefully with 1.5 with its "Java Heap Self Tuning" more users will never see
OOMEs during their evaluation.
Comment 4 Ed Burnette CLA 2004-05-26 13:33:50 EDT
Please reconsider this for 3.0. I understand the reasons for wanting to be JVM 
independent but this is one of the top problems new users run into where I 
work so it would be good to address it somehow. Maybe there's another way to 
solve it, perhaps something like that workspace selection dialog (or even a 
field inside that existing dialog)?

BTW I fear even 128M may be too small. In 3.0 I have to use 300M (recently 
increased from 256M) for a workspace containing binary projects for the 
Eclipse IDE itself. JDK1.4.2_04, 3.0M9.
Comment 5 Eric Rizzo CLA 2004-06-09 10:30:09 EDT
In response to Comment #1:
Heap size (which is what is specified by the -Xms and -Xmx options) is only one
component of total memory usage. There are lots of other things that make up the
total memory usage. Plus, the Windoze task manager is not always accurate in
reporting actual memory usage by a process, and Windoze in general is not as
good at process memory management as it could be.
Comment 6 DJ Houghton CLA 2004-06-09 13:57:04 EDT
*** Bug 66341 has been marked as a duplicate of this bug. ***