Home » Modeling » EMF » Constant out of memory exceptions
|
Re: Constant out of memory exceptions [message #415168 is a reply to message #415165] |
Mon, 03 December 2007 16:31 |
Ed Merks 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. 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<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>
at org.eclipse.swt.SWT.error(SWT.java:3563)
<br>
at org.eclipse.swt.SWT.error(SWT.java:3481)
<br>
at
org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
<br>
at
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:118)
<br>
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4097)
<br>
at
org.eclipse.gmf.runtime.diagram.ui.properties.util.SectionUp dateRequestCollapser.executeRequest(SectionUpdateRequestColl apser.java:38)
<br>
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>
at
com.ibm.icu.impl.ICUResourceBundleReader.readData(ICUResourc eBundleReader.java:247)
<br>
at
com.ibm.icu.impl.ICUResourceBundleReader.<init> ;(ICUResourceBundleReader.java:178)
<br>
at
com.ibm.icu.impl.ICUResourceBundleReader.getReader(ICUResour ceBundleReader.java:195)
<br>
at
com.ibm.icu.impl.ICUResourceBundleImpl.createBundle(ICUResou rceBundleImpl.java:49)
<br>
at
com.ibm.icu.impl.ICUResourceBundle.instantiateBundle(ICUReso urceBundle.java:1195)
<br>
at
com.ibm.icu.impl.ICUResourceBundle.getBundleInstance(ICUReso urceBundle.java:1163)
<br>
at
com.ibm.icu.util.UResourceBundle.getRootType(UResourceBundle .java:418)
<br>
at
com.ibm.icu.util.UResourceBundle.instantiateBundle(UResource Bundle.java:466)
<br>
at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:123)
<br>
at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:105)
<br>
at
com.ibm.icu.util.UResourceBundle.getBundleInstance(UResource Bundle.java:186)
<br>
at
com.ibm.icu.text.RuleBasedCollator.<init>(Rule BasedCollator.java:1818)
<br>
at
com.ibm.icu.text.CollatorServiceShim$1$CollatorFactory.handl eCreate(CollatorServiceShim.java:114)
<br>
at
com.ibm.icu.impl.ICULocaleService$LocaleKeyFactory.create(IC ULocaleService.java:378)
<br>
at com.ibm.icu.impl.ICUService.getKey(ICUService.java:463)
<br>
at com.ibm.icu.impl.ICUService.getKey(ICUService.java:383)
<br>
at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 72)
<br>
at com.ibm.icu.impl.ICULocaleService.get(ICULocaleService.java: 56)
<br>
at
com.ibm.icu.text.CollatorServiceShim.getInstance(CollatorSer viceShim.java:34)
<br>
at com.ibm.icu.text.Collator.getInstance(Collator.java:483)
<br>
at com.ibm.icu.text.Collator.getInstance(Collator.java:500)
<br>
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry$1.<init>(PropertySheetEntry.java:187 )
<br>
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.computeMergedPropertyDescriptors(PropertySheetEntr y.java:186)
<br>
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.refreshChildEntries(PropertySheetEntry.java:523)
<br>
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertyS heetEntry.setValues(PropertySheetEntry.java:727)
<br>
at
org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableM odelPropertySheetEntry.setValues(UndoableModelPropertySheetE ntry.java:263)
<br>
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
<br>
at
org.eclipse.ui.views.properties.PropertySheetPage.refresh(Pr opertySheetPage.java:454)
<br>
at
org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection.refresh(AdvancedPropertySection.java:188)
<br>
at
org.eclipse.gmf.runtime.diagram.ui.properties.sections.Advan cedPropertySection$1.run(AdvancedPropertySection.java:215)
<br>
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
<br>
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 #415170 is a reply to message #415169] |
Mon, 03 December 2007 18:59 |
Ed Merks 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 |
Tomas Zijdemans 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 |
Ed Merks 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 #415174 is a reply to message #415172] |
Tue, 04 December 2007 09:10 |
Tomas Zijdemans 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)
>>>>>>
>>>>>
|
|
| | | | |
Goto Forum:
Current Time: Tue Apr 23 17:34:49 GMT 2024
Powered by FUDForum. Page generated in 0.03823 seconds
|