| Summary: | Target platform should import launcher arguments same as vm arguments | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Oleg Besedin <ob1.eclipse> |
| Component: | UI | Assignee: | PDE-UI-Inbox <pde-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | curtis.windatt.public, john.arthorne, markus.kell.r, ob1.eclipse, pwebster, remy.suen |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Oleg Besedin
This is not a platform debug issue as each type of launch configuration has different memory requirements. In this case PDE's Eclipse Application launch configuration does have large memory requirements. However PDE has already implemented what you are asking for :) Using a new workspace, if you create a new Eclipse application launch configuration, the arguments tab will be prepopulated with the same arguments used to launch your host Eclipse instance. This is configurable on the Target Platform preference page. Open up your current target platform and check the arguments tab. In new workspaces the default target will include all arguments from the host, but on existing workspaces you can hit the import button to grab the arguments you care about. The arguments set in the target platform will be added to *new* Eclipse Application and JUnit Plug-in Test configurations. This is not done for OSGi framework configurations. Closing as WORKSFORME. (In reply to comment #1) > However PDE has already implemented what you are asking for :) Using a new > workspace, if you create a new Eclipse application launch configuration, the > arguments tab will be prepopulated with the same arguments used to launch your > host Eclipse instance. It does not work for me using Eclipse 4.2M5. Using default settings on a clean workspace I get the following VM arguments for the Eclipse Application launch config: -Xms40m -Xmx384m Note that those settings do not increase VM default PermGen size (that would be "-XX:MaxPermSize"). The "outer" launcher has in its config.ini: --launcher.XXMaxPermSize 256m But the "inner" Eclipse Application instance gets default PermGen size (64M). The argument you describe is a launcher argument, not a vm argument. My Eclipse 4.2 install has the equivalent vm argument set (-xx:MaxPermSize=120m) so it gets included. Two workarounds: 1) Add the vm argument to eclipse.ini (could cause an error if run on some vms, which is why the launcher argument was introduced). You will have to reload your target platform for the changes to take effect. 2) Edit your target platform to set the appropriate launcher argument or vm argument to new launch configurations. PDE could do the following to improve this: 1) Allow the arguments tab to recognize and import launcher arguments like it does for vm's 2) The default target platform could include the launcher arguments, but we don't want to add arguments to configurations where they won't work. Dup of bug 339763? *** This bug has been marked as a duplicate of bug 339763 *** |