increasing maximum heap size to 1024m in eclipse.ini is being ignored ...

583 views
Skip to first unread message

Wayne Johnson

unread,
Jun 30, 2011, 1:42:55 AM6/30/11
to scala-...@googlegroups.com
OS: W7
Scala plugin version: 2.0.0.beta07-29-201106291626-94328fa
Eclipse version: 3.7.0.v201106131736 (JEE download x86-64)

The scala update diagnostics recommends a maximum heap size of at least 1024. I made changes to the eclipse.ini in the installation directory but the settings are not reflected in the configuration report (Help>About Eclipse>Installation Details>Configuration). This is not a Scala-IDE issue, but I've spent much of the day in Eclipse and Equinox trying to track down why the VM args are overridden and have found nothing. Help would be appreciated.
(Also tried running eclipse.exe -clean from a cygwin window.)

Modified eclipse.ini:
----
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512m
-noLazyRegistryCacheLoading
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jre6\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m

Partial Configuration Report:
---
--launcher.library
C:\Program Files\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502\eclipse_1406.dll
-startup
C:\Program Files\eclipse\\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata
9c4_5c
-product
org.eclipse.epp.package.jee.product
-vm
C:\Windows\system32\javaw.exe
eclipse.home.location=file:/C:/Program Files/eclipse/
eclipse.launcher=C:\Program Files\eclipse\eclipse.exe
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=@config.dir/../p2/
eclipse.p2.profile=epp.package.jee
eclipse.product=org.eclipse.epp.package.jee.product
eclipse.startTime=1309411473658
eclipse.vm=C:\Windows\system32\javaw.exe
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m

- Wayne

w.johnson

unread,
Jun 30, 2011, 2:28:22 PM6/30/11
to Scala IDE Dev
Some followup questions:

> With those settings Scala telling me that i gave her heap of ~900 MB and
> still ask for GB
> Before change Scala reported i gave heap ~ 300MB

From the Eclipse IDE, how did you determine this?

When I add the arguments on the command line (eclipse.exe -vm ...),
the configuration report matches the values used on the command line
(as expected) but does not use the values in eclipse.ini if command
line arguments are not present. What is injecting the values I see in
the report and what is the source for these values?

Eclipse.ini
-vm
C:\Program Files\Java\jre6\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m

Config report
eclipse.vm=C:\Windows\system32\javaw.exe
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

On Jun 30, 1:05 pm, Arioch <the_Ari...@nm.ru> wrote:
> В письме от Thu, 30 Jun 2011 09:42:55 +0400, Wayne Johnson
> <wjohnso...@gmail.com> сообщал:
>
> > OS: W7
> > Scala plugin version: 2.0.0.beta07-29-201106291626-94328fa
> > Eclipse version: 3.7.0.v201106131736 (JEE download x86-64)
> > -Xmx1024m
>
> Win 7, Java1.6u26, Eclipse 3.7 - all x64
> Scala beta9
>
> With those settings Scala telling me that i gave her heap of ~900 MB and
> still ask for GB
> Before change Scala reported i gave heap ~ 300MB
>
> So it really sees the change, yet estimates it is not enough
>
> --
> Написано в почтовом клиенте браузера Opera:http://www.opera.com/mail/

Arioch

unread,
Jun 30, 2011, 1:05:16 PM6/30/11
to scala-...@googlegroups.com
В письме от Thu, 30 Jun 2011 09:42:55 +0400, Wayne Johnson
<wjohn...@gmail.com> сообщал:

> OS: W7
> Scala plugin version: 2.0.0.beta07-29-201106291626-94328fa
> Eclipse version: 3.7.0.v201106131736 (JEE download x86-64)

> -Xmx1024m

Reply all
Reply to author
Forward
0 new messages