Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
Replies: 3 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Out of heap space when exporting plugin

At 10:11 AM on Aug 7, 2008, Pavel Orehov Javalobby Newcomers wrote:

Hi,

I work with Eclipse Standard Edition 3.3.1 version on WinXP. I am trying to export, created by me plug-in with "Export Wizard" from "Overview" plug-in tab. During the build process I get an error message that Eclipse is out of heap space. I tried to increase the Eclipse heap space to 1GB (don't let me more).

My startup.ini
--------------
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms64m
-Xmx940m

However, it not enough, I continue to get the same error.

Yes, I have about 200 classes in my plug-in and dependencies to other plug-ins but still the memory usage is too big.

So my question is what is the alternative ways to export plugins and why Eclipse takes so much memory ? Actually, I will appreciate any help.

Thanks,
Pavel
  Click to reply to this thread Reply
1. At 1:58 PM on Aug 7, 2008, Walter Harley wrote:

Re: Out of heap space when exporting plugin

Pavel Orehov wrote:
> Hi,
>
> I work with Eclipse Standard Edition 3.3.1 version on WinXP. I am trying to export, created by me plug-in with "Export Wizard" from "Overview" plug-in tab. During the build process I get an error message that Eclipse is out of heap space. I tried to increase the Eclipse heap space to 1GB (don't let me more).
>
> My startup.ini
> --------------
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Xms64m
> -Xmx940m
>
> However, it not enough, I continue to get the same error.
>
> Yes, I have about 200 classes in my plug-in and dependencies to other plug-ins but still the memory usage is too big.
>
> So my question is what is the alternative ways to export plugins and why Eclipse takes so much memory ? Actually, I will appreciate any help.


You certainly should not need that much memory to build a plug-in of the
size you describe. By comparison, I regularly build
org.eclipse.jdt.core with much less memory than that.

Are there any errors in your error log? Are there any details of the
heap error (e.g., a stack trace)?

I notice that your eclipse.ini does not specify any particular JRE.
What JRE are you using? Are you sure? Have you tried explicitly
specifying a particular JRE to run Eclipse in, and if so, which one?

Are there any unusually large JAR files on the build path (e.g., bigger
than 20MB)?
  Click to reply to this thread Reply
1. At 3:15 PM on Aug 7, 2008, Pavel Orehov Javalobby Newcomers wrote:

Re: Out of heap space when exporting plugin

I am using JRE 1.5 and the plug-in project size is 16MB.
  Click to reply to this thread Reply
2. At 7:52 AM on Aug 11, 2008, Mariot Chauvin wrote:

Re: Out of heap space when exporting plugin

Hi Pavel,

Just to mention that there is a great tool to find the reason of an Out of memory error : http://www.eclipse.org/mat/
Hope this help.

Regards,

Mariot

Pavel Orehov a écrit :
> Hi,
>
> I work with Eclipse Standard Edition 3.3.1 version on WinXP. I am trying to export, created by me plug-in with "Export Wizard" from "Overview" plug-in tab. During the build process I get an error message that Eclipse is out of heap space. I tried to increase the Eclipse heap space to 1GB (don't let me more).
>
> My startup.ini
> --------------
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Xms64m
> -Xmx940m
>
> However, it not enough, I continue to get the same error.
>
> Yes, I have about 200 classes in my plug-in and dependencies to other plug-ins but still the memory usage is too big.
>
> So my question is what is the alternative ways to export plugins and why Eclipse takes so much memory ? Actually, I will appreciate any help.
>
> Thanks,
> Pavel

thread.rss_message