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

Bug 191563

Summary: Eclipse Tools for Java Enterprise Development needs more memory
Product: [Technology] EPP Reporter: Wayne Beaton <wayne.beaton>
Component: package contentAssignee: Project Inbox <epp.packager-inbox>
Status: RESOLVED FIXED QA Contact: Markus Knauer <mknauer>
Severity: normal    
Priority: P3 CC: andrey, elias
Version: 0.5.0   
Target Milestone: 0.5.0 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 191814    
Bug Blocks:    

Description Wayne Beaton CLA 2007-06-07 15:33:08 EDT
With all the plug-ins included with this package, more memory is required.

The eclipse.ini file need to be altered to raise the maximum memory (Xmx) to at least 512M (I set mine to 768M). The -XX:MaxPermSize=128M option should also be included.
Comment 1 Markus Knauer CLA 2007-06-08 05:15:55 EDT
Yes, that's fine with me... the Xmx option is something we can easily change in our builds, but I am unsure about the MaxPermSize option. 

AFAIK MaxPermSize is something that is necessary with a Sun JVM, but what happens if someone is using a JVM from IBM, ... (I cannot provide the complete list of JVM's here). Of course, I can add this option to the eclipse.ini file, and this is in fact one of the first steps I always do when I've installed a new version from Eclipse. 

Is there someone out there who can guarantee that Eclipse will run on other JVM's with this option? Or what's your experience with that option, Wayne?
Comment 2 Wayne Beaton CLA 2007-06-10 23:03:15 EDT
(In reply to comment #1)
> Yes, that's fine with me... the Xmx option is something we can easily change in
> our builds, but I am unsure about the MaxPermSize option. 
> 
> AFAIK MaxPermSize is something that is necessary with a Sun JVM, but what
> happens if someone is using a JVM from IBM, ... (I cannot provide the complete
> list of JVM's here). Of course, I can add this option to the eclipse.ini file,
> and this is in fact one of the first steps I always do when I've installed a
> new version from Eclipse. 
> 
> Is there someone out there who can guarantee that Eclipse will run on other
> JVM's with this option? Or what's your experience with that option, Wayne?
> 

I know that Harmony doesn't mind the parameter, but I'm not sure if it honours it. I haven't had any recent experience with any other JVMs.
Comment 3 Markus Knauer CLA 2007-06-25 06:48:34 EDT
Good news...
We've been testing it with different JVMs and we couldn't find any problems with any of the JVMs (IBM, JRockit and Apple), but there is another new option of the launcher that we will use for MaxPermSize:

--launcher.XXMaxPermSize <value> (Executable) NEW
    If specified, and the executable detects that the VM being used is a Sun VM, then the launcher will automatically add the -XX:MaxPermSize=<value> vm argument.  The executable is not capable of detecting Sun VMs on all platforms.

Maximum memory (Xmx) is a standard parameter and should work with all JVMs.
Comment 4 Markus Knauer CLA 2007-06-28 05:13:39 EDT
solved...
see eclipse.ini