Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Constant out of memory exceptions
Constant out of memory exceptions [message #415165] Mon, 03 December 2007 15:21 Go to next message
Tomas Zijdemans is currently offline Tomas ZijdemansFriend
Messages: 90
Registered: July 2009
Member
I keep getting these exceptions. I execute some custom operations that
takes a bit of time (2 sec.) But why do I run out of memory?

Best Regards,

Tomas Zijdemans


Exception in thread "Thread-4" org.eclipse.swt.SWTException: Failed to
execute runnable (java.lang.OutOfMemoryError: Java heap space)
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
at
org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
at
org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
Caused by: java.lang.OutOfMemoryError: Java heap space
at
com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
at
com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
at
com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
at
com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
at
com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
at
com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
at com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
at
com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
at com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
at
com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
at
com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
at
com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
at
org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
at
org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
at
org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
Re: Constant out of memory exceptions [message #415168 is a reply to message #415165] Mon, 03 December 2007 16:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030106010109080200050906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Tomas,

I can't say what would make you run out of heap space, but there's
always the proverbial straw that broke the camel's back, or in Dutch
it's the drop that overflowed the bucket, which seems a better analogy
in this case. I.e., if you are already near the limit, any small thing
can exceed it. It sounds like you'll want to increase the -Xmx256m
value in your eclipse.ini file

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
*-Xmx256m*


Tomas Zijdemans wrote:
> I keep getting these exceptions. I execute some custom operations that
> takes a bit of time (2 sec.) But why do I run out of memory?
>
> Best Regards,
>
> Tomas Zijdemans
>
>
> Exception in thread "Thread-4" org.eclipse.swt.SWTException: Failed to
> execute runnable (java.lang.OutOfMemoryError: Java heap space)
> at org.eclipse.swt.SWT.error(SWT.java:3563)
> at org.eclipse.swt.SWT.error(SWT.java:3481)
> at
> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
> at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
> at
> org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
>
> at
> org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
>
> Caused by: java.lang.OutOfMemoryError: Java heap space
> at
> com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
>
> at
> com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
>
> at
> com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
>
> at
> com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
>
> at
> com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
>
> at
> com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
>
> at
> com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
> at
> com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
>
> at
> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
>
> at
> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
>
> at
> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
>
> at
> com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
> at
> com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
>
> at
> com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
>
> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
> at
> com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
>
> at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
> at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
> at
> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
>
> at
> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
>
> at
> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
>
> at
> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
>
> at
> org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
>
> at
> org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
>
> at
> org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>


--------------030106010109080200050906
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Tomas,<br>
<br>
I can't say what would make you run out of heap space, but there's
always the proverbial straw that broke the camel's back, or in Dutch
it's the drop that overflowed the bucket, which seems a better analogy
in this case.&nbsp; I.e., if you are already near the limit, any small thing
can exceed it.&nbsp; It sounds like you'll want to increase the -Xmx256m
value in your eclipse.ini file<br>
<blockquote>-showsplash<br>
org.eclipse.platform<br>
--launcher.XXMaxPermSize<br>
256m<br>
-vmargs<br>
-Xms40m<br>
<b>-Xmx256m</b><br>
</blockquote>
<br>
Tomas Zijdemans wrote:
<blockquote cite="mid:fj16u6$u1u$1@build.eclipse.org" type="cite">I
keep getting these exceptions. I execute some custom operations that
takes a bit of time (2 sec.) But why do I run out of memory?
<br>
<br>
Best Regards,
<br>
<br>
Tomas Zijdemans
<br>
<br>
<br>
Exception in thread "Thread-4" org.eclipse.swt.SWTException: Failed to
execute runnable (java.lang.OutOfMemoryError: Java heap space)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.SWT.error(SWT.java:3563)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.SWT.error(SWT.java:3481)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
<br>
Caused by: java.lang.OutOfMemoryError: Java heap space
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICUResourceBundleReader.&lt;init&gt ;(ICUResourceBundleReader.java:178)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.text.RuleBasedCollator.&lt;init&gt;(Rule BasedCollator.java:1818)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1.&lt;init&gt;(PropertySheetEntry.java:187 )
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
<br>
&nbsp;&nbsp;&nbsp;&nbsp;at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
<br>
</blockquote>
<br>
</body>
</html>

--------------030106010109080200050906--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Constant out of memory exceptions [message #415169 is a reply to message #415168] Mon, 03 December 2007 17:33 Go to previous messageGo to next message
Tomas Zijdemans is currently offline Tomas ZijdemansFriend
Messages: 90
Registered: July 2009
Member
There's something wrong with the bucket alright :)

I tried upping it to 900 without any change. It randomly pops up after
5-6 elements are created. This didn't happen before.. hmmm.. Is there
some special argument that must be made for the vm to get more juice?

Thanks,

Tomas


Ed Merks wrote:
> Tomas,
>
> I can't say what would make you run out of heap space, but there's
> always the proverbial straw that broke the camel's back, or in Dutch
> it's the drop that overflowed the bucket, which seems a better analogy
> in this case. I.e., if you are already near the limit, any small thing
> can exceed it. It sounds like you'll want to increase the -Xmx256m
> value in your eclipse.ini file
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Xms40m
> *-Xmx256m*
>
>
> Tomas Zijdemans wrote:
>> I keep getting these exceptions. I execute some custom operations that
>> takes a bit of time (2 sec.) But why do I run out of memory?
>>
>> Best Regards,
>>
>> Tomas Zijdemans
>>
>>
>> Exception in thread "Thread-4" org.eclipse.swt.SWTException: Failed to
>> execute runnable (java.lang.OutOfMemoryError: Java heap space)
>> at org.eclipse.swt.SWT.error(SWT.java:3563)
>> at org.eclipse.swt.SWT.error(SWT.java:3481)
>> at
>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
>> at
>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
>> at
>> org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
>>
>> Caused by: java.lang.OutOfMemoryError: Java heap space
>> at
>> com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
>>
>> at
>> com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
>>
>> at
>> com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
>>
>> at
>> com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
>>
>> at
>> com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
>>
>> at
>> com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
>>
>> at
>> com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
>> at
>> com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
>>
>> at
>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
>>
>> at
>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
>>
>> at
>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
>>
>> at
>> com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
>> at
>> com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
>>
>> at
>> com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
>>
>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
>> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
>> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
>> at
>> com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
>>
>> at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
>> at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
>> at
>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
>>
>> at
>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
>>
>> at
>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
>>
>> at
>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
>>
>> at
>> org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
>>
>> at
>> org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
>>
>> at
>> org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
>>
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>
>
Re: Constant out of memory exceptions [message #415170 is a reply to message #415169] Mon, 03 December 2007 18:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Tomas,

I wonder if you have to run with -clean for this option to take effect.
I'm not sure the option affects the runtime workspace, only the main
one. It's the JVM argument -xMxNm that should grow the size of the heap
to the specified N megabytes.


Tomas Zijdemans wrote:
> There's something wrong with the bucket alright :)
>
> I tried upping it to 900 without any change. It randomly pops up after
> 5-6 elements are created. This didn't happen before.. hmmm.. Is there
> some special argument that must be made for the vm to get more juice?
>
> Thanks,
>
> Tomas
>
>
> Ed Merks wrote:
>> Tomas,
>>
>> I can't say what would make you run out of heap space, but there's
>> always the proverbial straw that broke the camel's back, or in Dutch
>> it's the drop that overflowed the bucket, which seems a better
>> analogy in this case. I.e., if you are already near the limit, any
>> small thing can exceed it. It sounds like you'll want to increase
>> the -Xmx256m value in your eclipse.ini file
>>
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 256m
>> -vmargs
>> -Xms40m
>> *-Xmx256m*
>>
>>
>> Tomas Zijdemans wrote:
>>> I keep getting these exceptions. I execute some custom operations
>>> that takes a bit of time (2 sec.) But why do I run out of memory?
>>>
>>> Best Regards,
>>>
>>> Tomas Zijdemans
>>>
>>>
>>> Exception in thread "Thread-4" org.eclipse.swt.SWTException: Failed
>>> to execute runnable (java.lang.OutOfMemoryError: Java heap space)
>>> at org.eclipse.swt.SWT.error(SWT.java:3563)
>>> at org.eclipse.swt.SWT.error(SWT.java:3481)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
>>> at
>>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
>>>
>>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
>>>
>>> at
>>> org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
>>>
>>> Caused by: java.lang.OutOfMemoryError: Java heap space
>>> at
>>> com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
>>>
>>> at
>>> com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
>>>
>>> at
>>> com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
>>>
>>> at
>>> com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
>>>
>>> at
>>> com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
>>>
>>> at
>>> com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
>>>
>>> at
>>> com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
>>> at
>>> com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
>>>
>>> at
>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
>>>
>>> at
>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
>>>
>>> at
>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
>>>
>>> at
>>> com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
>>> at
>>> com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
>>>
>>> at
>>> com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
>>>
>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
>>> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
>>> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
>>> at
>>> com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
>>>
>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
>>> at
>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
>>>
>>> at
>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
>>>
>>> at
>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
>>>
>>> at
>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
>>>
>>> at
>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
>>>
>>> at
>>> org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
>>>
>>> at
>>> org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
>>>
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>>
>>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Constant out of memory exceptions [message #415171 is a reply to message #415170] Mon, 03 December 2007 19:20 Go to previous messageGo to next message
Tomas Zijdemans is currently offline Tomas ZijdemansFriend
Messages: 90
Registered: July 2009
Member
I tried -clean and -xMxNm500m, without luck. The irritating thing is
that after I export my application (which takes 10 min), the app run
smoothly and about 20x faster.. argh! well well...

Thanks for helping,

Tomas Zijdemans


Ed Merks wrote:
> Tomas,
>
> I wonder if you have to run with -clean for this option to take effect.
> I'm not sure the option affects the runtime workspace, only the main
> one. It's the JVM argument -xMxNm that should grow the size of the heap
> to the specified N megabytes.
>
>
> Tomas Zijdemans wrote:
>> There's something wrong with the bucket alright :)
>>
>> I tried upping it to 900 without any change. It randomly pops up after
>> 5-6 elements are created. This didn't happen before.. hmmm.. Is there
>> some special argument that must be made for the vm to get more juice?
>>
>> Thanks,
>>
>> Tomas
>>
>>
>> Ed Merks wrote:
>>> Tomas,
>>>
>>> I can't say what would make you run out of heap space, but there's
>>> always the proverbial straw that broke the camel's back, or in Dutch
>>> it's the drop that overflowed the bucket, which seems a better
>>> analogy in this case. I.e., if you are already near the limit, any
>>> small thing can exceed it. It sounds like you'll want to increase
>>> the -Xmx256m value in your eclipse.ini file
>>>
>>> -showsplash
>>> org.eclipse.platform
>>> --launcher.XXMaxPermSize
>>> 256m
>>> -vmargs
>>> -Xms40m
>>> *-Xmx256m*
>>>
>>>
>>> Tomas Zijdemans wrote:
>>>> I keep getting these exceptions. I execute some custom operations
>>>> that takes a bit of time (2 sec.) But why do I run out of memory?
>>>>
>>>> Best Regards,
>>>>
>>>> Tomas Zijdemans
>>>>
>>>>
>>>> Exception in thread "Thread-4" org.eclipse.swt.SWTException: Failed
>>>> to execute runnable (java.lang.OutOfMemoryError: Java heap space)
>>>> at org.eclipse.swt.SWT.error(SWT.java:3563)
>>>> at org.eclipse.swt.SWT.error(SWT.java:3481)
>>>> at
>>>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
>>>> at
>>>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
>>>>
>>>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
>>>>
>>>> Caused by: java.lang.OutOfMemoryError: Java heap space
>>>> at
>>>> com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
>>>>
>>>> at
>>>> com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
>>>>
>>>> at
>>>> com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
>>>>
>>>> at
>>>> com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
>>>>
>>>> at
>>>> com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
>>>>
>>>> at
>>>> com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
>>>>
>>>> at
>>>> com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
>>>> at
>>>> com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
>>>>
>>>> at
>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
>>>>
>>>> at
>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
>>>>
>>>> at
>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
>>>>
>>>> at
>>>> com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
>>>> at
>>>> com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
>>>>
>>>> at
>>>> com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
>>>>
>>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
>>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
>>>> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
>>>> at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
>>>> at
>>>> com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
>>>>
>>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
>>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
>>>> at
>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
>>>>
>>>> at
>>>> org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
>>>>
>>>> at
>>>> org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
>>>>
>>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>>> at
>>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>>>
>>>
Re: Constant out of memory exceptions [message #415172 is a reply to message #415171] Mon, 03 December 2007 19:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Tomas,

Try -Xmx512m.


Tomas Zijdemans wrote:
> I tried -clean and -xMxNm500m, without luck. The irritating thing is
> that after I export my application (which takes 10 min), the app run
> smoothly and about 20x faster.. argh! well well...
>
> Thanks for helping,
>
> Tomas Zijdemans
>
>
> Ed Merks wrote:
>> Tomas,
>>
>> I wonder if you have to run with -clean for this option to take
>> effect. I'm not sure the option affects the runtime workspace, only
>> the main one. It's the JVM argument -xMxNm that should grow the size
>> of the heap to the specified N megabytes.
>>
>>
>> Tomas Zijdemans wrote:
>>> There's something wrong with the bucket alright :)
>>>
>>> I tried upping it to 900 without any change. It randomly pops up
>>> after 5-6 elements are created. This didn't happen before.. hmmm..
>>> Is there some special argument that must be made for the vm to get
>>> more juice?
>>>
>>> Thanks,
>>>
>>> Tomas
>>>
>>>
>>> Ed Merks wrote:
>>>> Tomas,
>>>>
>>>> I can't say what would make you run out of heap space, but there's
>>>> always the proverbial straw that broke the camel's back, or in
>>>> Dutch it's the drop that overflowed the bucket, which seems a
>>>> better analogy in this case. I.e., if you are already near the
>>>> limit, any small thing can exceed it. It sounds like you'll want
>>>> to increase the -Xmx256m value in your eclipse.ini file
>>>>
>>>> -showsplash
>>>> org.eclipse.platform
>>>> --launcher.XXMaxPermSize
>>>> 256m
>>>> -vmargs
>>>> -Xms40m
>>>> *-Xmx256m*
>>>>
>>>>
>>>> Tomas Zijdemans wrote:
>>>>> I keep getting these exceptions. I execute some custom operations
>>>>> that takes a bit of time (2 sec.) But why do I run out of memory?
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Tomas Zijdemans
>>>>>
>>>>>
>>>>> Exception in thread "Thread-4" org.eclipse.swt.SWTException:
>>>>> Failed to execute runnable (java.lang.OutOfMemoryError: Java heap
>>>>> space)
>>>>> at org.eclipse.swt.SWT.error(SWT.java:3563)
>>>>> at org.eclipse.swt.SWT.error(SWT.java:3481)
>>>>> at
>>>>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
>>>>> at
>>>>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
>>>>>
>>>>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
>>>>>
>>>>> Caused by: java.lang.OutOfMemoryError: Java heap space
>>>>> at
>>>>> com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
>>>>>
>>>>> at
>>>>> com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
>>>>>
>>>>> at
>>>>> com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
>>>>>
>>>>> at
>>>>> com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
>>>>>
>>>>> at
>>>>> com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
>>>>>
>>>>> at
>>>>> com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
>>>>>
>>>>> at
>>>>> com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
>>>>>
>>>>> at
>>>>> com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
>>>>>
>>>>> at
>>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
>>>>>
>>>>> at
>>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
>>>>>
>>>>> at
>>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
>>>>>
>>>>> at
>>>>> com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
>>>>>
>>>>> at
>>>>> com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
>>>>>
>>>>> at
>>>>> com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
>>>>>
>>>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
>>>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
>>>>> at
>>>>> com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
>>>>> at
>>>>> com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
>>>>> at
>>>>> com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
>>>>>
>>>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
>>>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
>>>>> at
>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
>>>>>
>>>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>>>> at
>>>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>>>>
>>>>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Constant out of memory exceptions [message #415173 is a reply to message #415172] Tue, 04 December 2007 02:21 Go to previous messageGo to next message
Ron Bermejo is currently offline Ron BermejoFriend
Messages: 30
Registered: July 2009
Member
Hi guys,

Could it be related to his?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250

Hth,
Ron
Re: Constant out of memory exceptions [message #415174 is a reply to message #415172] Tue, 04 December 2007 09:10 Go to previous messageGo to next message
Tomas Zijdemans is currently offline Tomas ZijdemansFriend
Messages: 90
Registered: July 2009
Member
I tried that, and also -XX:MaxPermGenSize=512m (from the bugzilla
discussion). It seems to be related to that bug.

I have 2gb of memory available, and plenty of free drive space. Strange...


Cheers,

Tomas


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-XX:MaxPermGenSize=512m
-Xms512m
-Xmx512m



Ed Merks wrote:
> Tomas,
>
> Try -Xmx512m.
>
>
> Tomas Zijdemans wrote:
>> I tried -clean and -xMxNm500m, without luck. The irritating thing is
>> that after I export my application (which takes 10 min), the app run
>> smoothly and about 20x faster.. argh! well well...
>>
>> Thanks for helping,
>>
>> Tomas Zijdemans
>>
>>
>> Ed Merks wrote:
>>> Tomas,
>>>
>>> I wonder if you have to run with -clean for this option to take
>>> effect. I'm not sure the option affects the runtime workspace, only
>>> the main one. It's the JVM argument -xMxNm that should grow the size
>>> of the heap to the specified N megabytes.
>>>
>>>
>>> Tomas Zijdemans wrote:
>>>> There's something wrong with the bucket alright :)
>>>>
>>>> I tried upping it to 900 without any change. It randomly pops up
>>>> after 5-6 elements are created. This didn't happen before.. hmmm..
>>>> Is there some special argument that must be made for the vm to get
>>>> more juice?
>>>>
>>>> Thanks,
>>>>
>>>> Tomas
>>>>
>>>>
>>>> Ed Merks wrote:
>>>>> Tomas,
>>>>>
>>>>> I can't say what would make you run out of heap space, but there's
>>>>> always the proverbial straw that broke the camel's back, or in
>>>>> Dutch it's the drop that overflowed the bucket, which seems a
>>>>> better analogy in this case. I.e., if you are already near the
>>>>> limit, any small thing can exceed it. It sounds like you'll want
>>>>> to increase the -Xmx256m value in your eclipse.ini file
>>>>>
>>>>> -showsplash
>>>>> org.eclipse.platform
>>>>> --launcher.XXMaxPermSize
>>>>> 256m
>>>>> -vmargs
>>>>> -Xms40m
>>>>> *-Xmx256m*
>>>>>
>>>>>
>>>>> Tomas Zijdemans wrote:
>>>>>> I keep getting these exceptions. I execute some custom operations
>>>>>> that takes a bit of time (2 sec.) But why do I run out of memory?
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> Tomas Zijdemans
>>>>>>
>>>>>>
>>>>>> Exception in thread "Thread-4" org.eclipse.swt.SWTException:
>>>>>> Failed to execute runnable (java.lang.OutOfMemoryError: Java heap
>>>>>> space)
>>>>>> at org.eclipse.swt.SWT.error(SWT.java:3563)
>>>>>> at org.eclipse.swt.SWT.error(SWT.java:3481)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
>>>>>> at
>>>>>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
>>>>>>
>>>>>> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.common.core.util.RequestCollapser$Po stedThread.run(RequestCollapser.java:67)
>>>>>>
>>>>>> Caused by: java.lang.OutOfMemoryError: Java heap space
>>>>>> at
>>>>>> com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.impl.ICUResourceBundleReader.<init>(ICUResourceBundleReader.java:178)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.text.RuleBasedCollator.<init>(RuleBasedCollator.java:1818)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
>>>>>>
>>>>>> at
>>>>>> com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
>>>>>>
>>>>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
>>>>>> at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
>>>>>> at
>>>>>> com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
>>>>>> at
>>>>>> com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
>>>>>> at
>>>>>> com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
>>>>>>
>>>>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
>>>>>> at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1. <init>(PropertySheetEntry.java:187)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
>>>>>>
>>>>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>>>>>
>>>>>
Re: Constant out of memory exceptions [message #415176 is a reply to message #415173] Tue, 04 December 2007 10:44 Go to previous messageGo to next message
Ron Bermejo is currently offline Ron BermejoFriend
Messages: 30
Registered: July 2009
Member
Ron Bermejo wrote:

> Hi guys,

> Could it be related to his?
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250

Sorry, what I actually was meaning to refer was:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203325

Hth,
Ron
Re: Constant out of memory exceptions [message #415184 is a reply to message #415176] Tue, 04 December 2007 13:28 Go to previous messageGo to next message
Tomas Zijdemans is currently offline Tomas ZijdemansFriend
Messages: 90
Registered: July 2009
Member
That could very well be it, but that bug is marked as resolved - so I'm
guessing it's already implemented (i run latest eclipse)

Cheers,

Tomas Zijdemans


Ron Bermejo wrote:
> Ron Bermejo wrote:
>
>> Hi guys,
>
>> Could it be related to his?
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250
>
> Sorry, what I actually was meaning to refer was:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203325
>
> Hth,
> Ron
>
Re: Constant out of memory exceptions [message #415186 is a reply to message #415176] Tue, 04 December 2007 14:34 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Ron Bermejo wrote:
> Ron Bermejo wrote:
>
>> Hi guys,
>
>> Could it be related to his?
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250
>
> Sorry, what I actually was meaning to refer was:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203325

Those bugs are related to running out of PermGen space, but the stack
trace posted in this thread had no mention of PermGen. In fact, it
specifically pointed to heap space:
"java.lang.OutOfMemoryError: Java heap space"

I think you're chasing a red herring with the PermGen problems - if that
were your issue you'd see PermGen in the error messages.

Eric
[Solved] Re: Constant out of memory exceptions [message #415238 is a reply to message #415186] Thu, 06 December 2007 15:55 Go to previous message
Tomas Zijdemans is currently offline Tomas ZijdemansFriend
Messages: 90
Registered: July 2009
Member
If anyone runs into this:

Some guy at the RCP news list pointed me to:

http://suif.stanford.edu/pub/keepresident/

It solved my problems :)


Cheers,

Tomas Zijdemans

Eric Rizzo wrote:
> Ron Bermejo wrote:
>> Ron Bermejo wrote:
>>
>>> Hi guys,
>>
>>> Could it be related to his?
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250
>>
>> Sorry, what I actually was meaning to refer was:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203325
>
> Those bugs are related to running out of PermGen space, but the stack
> trace posted in this thread had no mention of PermGen. In fact, it
> specifically pointed to heap space:
> "java.lang.OutOfMemoryError: Java heap space"
>
> I think you're chasing a red herring with the PermGen problems - if that
> were your issue you'd see PermGen in the error messages.
>
> Eric
Previous Topic:Possible noob issue with xsi:type
Next Topic:how to make WorkbenchAction release reference to ModelElement after the emf editor has been closed?
Goto Forum:
  


Current Time: Tue Apr 23 17:34:49 GMT 2024

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

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

Back to the top