Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java Heap space(Developing CDT Plug in )
Java Heap space [message #710885] Fri, 05 August 2011 14:32 Go to next message
Thomas Missing name is currently offline Thomas Missing nameFriend
Messages: 5
Registered: July 2011
Junior Member
Hi,

OS; Windows XP
Platform: Pentium 4 2.8GHz, 3 GB RAM

Started working with latest CDT which forced me to install latest Eclipse: indigo.

When testing my plug in, I am getting Java Heap dialog windows. "Background indexer Crash Recovery, Java Heap space:
The next window asks to exit, if I select No, the test workspace seems to keep running OK. But, would like to get rid of this error since I don't know if some other process is failing. I have attempted to fix the .ini file without success.

Note: Have tried various Xmx values, Xmx1024m gives me a dialog when starting eclipse showing the arguments, then dies.

Will my processor being old and slow have an effect? I can see it is consistently pegged immediately before displaying Java Heap message.

Any suggestions?

Tom


--------------------------------------------------
This eclipse.ini setting goes with .log output below:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
-vm
C:\Program Files\Java\jdk1.6.0_12\jre\bin\java.exe
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms900m
-Xmx900m


--------------------------------------------------
From plug in test Workspace .log, do not think menu mismatch is effecting Java Heap:

!SESSION 2011-08-05 09:29:30.812 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data C:\p\PluginEclipse/../runtime-EclipseApplication -dev file:C:/p/PluginEclipse/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2011-08-05 09:29:51.578
!MESSAGE Unable to create menu item "com.corp.eclipse.sp.toolbars.sampleCommand", command "com.corp.eclipse.sp.commands.sampleCommand" not defined

!ENTRY org.eclipse.ui 4 4 2011-08-05 09:29:51.578
!MESSAGE Unable to create menu item "com.corp.eclipse.sp.toolbars.sampleCommand", command "com.corp.eclipse.sp.commands.sampleCommand" not defined

!ENTRY org.eclipse.ui 4 4 2011-08-05 09:29:59.453
!MESSAGE Plugin com..eclipse.ja, extension org.eclipse.ui.perspectiveExtensions, id com.p.eclipse.ja.views.AssessmentResultsView: Unknown extension tag found: view

!ENTRY org.eclipse.ui 4 4 2011-08-05 09:29:59.453
!MESSAGE Plugin com..eclipse.ja, extension org.eclipse.ui.perspectiveExtensions, id com.p.eclipse.ja.views.AssessmentResultsView: Unknown extension tag found: view

!ENTRY org.eclipse.jface 2 0 2011-08-05 09:30:04.609
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2011-08-05 09:30:04.609
!MESSAGE A conflict occurred for CTRL+6:
Binding(CTRL+6,
ParameterizedCommand(Command(com..eclipse.ja.commands.sampleCommand,Execute Assessment,
,
Category(com..eclipse.ja.commands.category,Sample Category,null,true),
com..eclipse.ja.handlers.Handler,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+6,
ParameterizedCommand(Command(com..eclipse.ja.commands.importCommand,Import Results,
,
Category(com..eclipse.ja.commands.category,Sample Category,null,true),
com..eclipse.ja.handlers.ImportHandler,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+6,
ParameterizedCommand(Command(com..eclipse.ja.commands.sampleCommand,Execute Assessment,
,
Category(com..eclipse.ja.commands.category,Sample Category,null,true),
com..eclipse.ja.handlers.Handler,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+6,
ParameterizedCommand(Command(com.corp.eclipse.sp.commands.submitSourceCommand,Submit Source,
,
Category(com.corp.eclipse.sp.commands.category,Unmark Results,null,true),
com.corp.eclipse.sp.handlers.SubmitSourceHandler,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+6,
ParameterizedCommand(Command(com.corp.eclipse.sp.commands.importResultsCommand,Import Results,
,
Category(com.corp.eclipse.sp.commands.category,Unmark Results,null,true),
com.corp.eclipse.sp.handlers.ImportResultsHandler,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+6,
ParameterizedCommand(Command(com.corp.eclipse.sp.commands.unmarkResultsCommand,Unmark Results,
,
Category(com.corp.eclipse.sp.commands.category,Unmark Results,null,true),
com.corp.eclipse.sp.handlers.UnmarkResultsHandler,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.jdt.core 4 4 2011-08-05 09:30:25.578
!MESSAGE Background Indexer Crash Recovery
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.jdt.internal.compiler.util.HashtableOfObject.<init>(HashtableOfObject.java:39)
at org.eclipse.jdt.internal.compiler.util.HashtableOfObject.rehash(HashtableOfObject.java:165)
at org.eclipse.jdt.internal.compiler.util.HashtableOfObject.putUnsafely(HashtableOfObject.java:138)
at org.eclipse.jdt.internal.core.index.DiskIndex.copyQueryResults(DiskIndex.java:359)
at org.eclipse.jdt.internal.core.index.DiskIndex.mergeWith(DiskIndex.java:532)
at org.eclipse.jdt.internal.core.index.Index.save(Index.java:192)
at org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndex(IndexManager.java:774)
at org.eclipse.jdt.internal.core.search.indexing.AddJarFileToIndex.execute(AddJarFileToIndex.java:214)
at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:405)
at java.lang.Thread.run(Unknown Source)
Re: Java Heap space [message #711732 is a reply to message #710885] Sat, 06 August 2011 14:58 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1441
Registered: July 2009
Senior Member
On 08/05/2011 09:32 AM, Thomas wrote:
> Hi,
>
> OS; Windows XP
> Platform: Pentium 4 2.8GHz, 3 GB RAM
>
> Started working with latest CDT which forced me to install latest
> Eclipse: indigo.
>
> When testing my plug in, I am getting Java Heap dialog windows.
> "Background indexer Crash Recovery, Java Heap space:
> The next window asks to exit, if I select No, the test workspace seems
> to keep running OK. But, would like to get rid of this error since I
> don't know if some other process is failing. I have attempted to fix the
> .ini file without success.
>
> Note: Have tried various Xmx values, Xmx1024m gives me a dialog when
> starting eclipse showing the arguments, then dies.
>
> Will my processor being old and slow have an effect? I can see it is
> consistently pegged immediately before displaying Java Heap message.
>
> Any suggestions?
>
> Tom

It isn't completely clear if you are getting the error in your
development version of Eclipse or the testing version. It sounds like
it may be the testing version you are running to test out your plugin.
If this is the case, then changing the eclipse.ini for the development
version won't help you.

You need to set the values for the testing version you are launching
since this starts a separate VM and that VM is the one that needs the
memory settings. You can control the VM arguments for the testing
Eclipse on the Launch Configuration you use to run the test Eclipse version.
Re: Java Heap space [message #755261 is a reply to message #710885] Mon, 07 November 2011 20:19 Go to previous message
Aurelio Ferreiro is currently offline Aurelio FerreiroFriend
Messages: 1
Registered: November 2011
Junior Member
In my case, the problem was caused because of a php parameter. I modified memory_limit from 128M to 512M (I needed for a heavy data processing script), and after that the problems begun. Going back from 512 to 128 solved the problem.
Previous Topic:[Solved] Eclipse Indigo - Mac OS X - No Menu Bar
Next Topic:Eclipse Update Failures
Goto Forum:
  


Current Time: Tue Jun 15 19:05:58 GMT 2021

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

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

Back to the top