Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Eclipse java heap allocation(Unable to configure heap space)
Eclipse java heap allocation [message #548173] Tue, 20 July 2010 22:58 Go to next message
bobfin is currently offline bobfin
Messages: 1
Registered: July 2010
Location: Australia
Junior Member
Hi,
I have a problem with creating a large int array.
int[] solutions = new int[50000000];
In Eclipse 3.4.1 with JRE6 compiler reports:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

I have modified eclipse.ini but this has not been effective. Currently eclipse.ini contents are:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-Xms1024m
-Xmx1024m

Hoping someone can help.

Re: Eclipse java heap allocation [message #548210 is a reply to message #548173] Wed, 21 July 2010 06:19 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Hi Bobfin,

How is this related to Buckminster?

- thomas


On 07/21/2010 12:58 AM, bobfin wrote:
> Hi,
> I have a problem with creating a large int array.
> int[] solutions = new int[50000000];
> In Eclipse 3.4.1 with JRE6 compiler reports:
>
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
>
> I have modified eclipse.ini but this has not been effective. Currently
> eclipse.ini contents are:
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256M
> -framework
> plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> C:\Program Files (x86)\Java\jre6\bin\javaw.exe
> -Xms1024m
> -Xmx1024m
>
> Hoping someone can help.
>
>
Re: Eclipse java heap allocation [message #548276 is a reply to message #548173] Wed, 21 July 2010 10:12 Go to previous message
Eclipse User
Originally posted by: r.zozmann.exxcellent.de

Hi Bobfin,

it seems to be that in the newest JRE 1.6 update release the declaration
--launcher.XXMaxPermSize... isn't enough. I don't know whether the
launcher has problems to propagate that setting to the VM or the syntax
on calling the VM is changed by Oracle...
Anyway, i have one additional setting in my eclipse.ini:
-XX:MaxPermSize=256M

(after -Xmx1024m).

Regards
Ralf

Am 21.07.2010 00:58, schrieb bobfin:
> Hi,
> I have a problem with creating a large int array.
> int[] solutions = new int[50000000];
> In Eclipse 3.4.1 with JRE6 compiler reports:
>
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
>
> I have modified eclipse.ini but this has not been effective. Currently
> eclipse.ini contents are:
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256M
> -framework
> plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> C:\Program Files (x86)\Java\jre6\bin\javaw.exe
> -Xms1024m
> -Xmx1024m
>
> Hoping someone can help.
>
>
Previous Topic:JUnit 3.8.2
Next Topic:Using http protocol in provider's uri
Goto Forum:
  


Current Time: Sat Oct 25 16:54:42 GMT 2014

Powered by FUDForum. Page generated in 0.02557 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software