huge memory problem

Today I posted this to Intellij support via its web interface. I want to
post it here as well, perhaps some one did have a similar problem.

If you have any tip I would be glad to hear.

Linux, JDK 1.5, idea build 6112

Regards
Thomas


I have a big problem with a huge class (about 8000 lines) which makes
idea eats up memory and results in a out of memory warning.
For copyright reasons I'm not allowed to publish this class at the moment.
The odd thing is that it already worked some days ago until I
restructured the class a bit.
I have to increase the memory for idea to over 1024MB to get it working,
but even this is not working always.

I tried following things without success:
- reset the state of the class to an earlier version
- reset all idea cache
- started idea with a totally fresh installation (IntellijIdea directory
removed)
- tested with version 6107,6112

How can I track down what causes the problem?
I tried to do a memory snapshot as well, but either the snapshot is
corrupt or it does not contain much memory usage.

There is following message in the log file if this error occurs:

2006-12-09 10:03:03,159 ERROR -
enapi.editor.impl.DocumentImpl - Assertion failed
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at
com.intellij.openapi.editor.impl.DocumentImpl.removeDocumentListener(DocumentImpl.java:104)
at
com.intellij.openapi.vcs.ex.LineStatusTracker.release(LineStatusTracker.java:94)
at
com.intellij.openapi.vcs.impl.LineStatusTrackerManager.a(LineStatusTrackerManager.java:126)
at
com.intellij.openapi.vcs.impl.LineStatusTrackerManager.a(LineStatusTrackerManager.java:33)
at
com.intellij.openapi.vcs.impl.LineStatusTrackerManager.projectClosed(LineStatusTrackerManager.java:20
)
at
com.intellij.openapi.project.impl.ProjectImpl.d(ProjectImpl.java:63)
at
com.intellij.openapi.project.impl.ProjectImpl.access$300(ProjectImpl.java:134)
at
com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectClosed(ProjectImpl.java
:O)
at
com.intellij.openapi.project.impl.ProjectManagerImpl$1.projectClosed(ProjectManagerImpl.java:7)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.e(ProjectManagerImpl.java:167)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:234)
at
com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:1)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:27)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:13)
at
com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:270)
at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at
com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at
com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at
com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:70)
at
com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:217)
at
com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:1)
at
com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:22)
at
com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:393)
at
com.intellij.diagnostic.DefaultIdeaErrorLogger$1.run(DefaultIdeaErrorLogger.java:0)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:36)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:184)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2006-12-09 10:03:03,159 ERROR -
enapi.editor.impl.DocumentImpl - IntelliJ IDEA 6.0.2 Build #6107
2006-12-09 10:03:03,159 ERROR -
enapi.editor.impl.DocumentImpl - JDK: 1.5.0_09
2006-12-09 10:03:03,160 ERROR -
enapi.editor.impl.DocumentImpl - VM: Java HotSpot(TM) Server VM
2006-12-09 10:03:03,168 ERROR -
enapi.editor.impl.DocumentImpl - Vendor: Sun Microsystems Inc.
2006-12-09 10:03:03,168 ERROR -
enapi.editor.impl.DocumentImpl - OS: Linux

1 comment
Comment actions Permalink

The problem is gone now. I don't know why, I have worked further on and
received an email from Jetbrain support (TODAY on SATURDAY - great) and
wanted to reproduce it, but it has vanished.


Thomas Hartwig wrote:

Today I posted this to Intellij support via its web interface. I want to
post it here as well, perhaps some one did have a similar problem.

If you have any tip I would be glad to hear.

Linux, JDK 1.5, idea build 6112

Regards
Thomas


I have a big problem with a huge class (about 8000 lines) which makes
idea eats up memory and results in a out of memory warning.
For copyright reasons I'm not allowed to publish this class at the moment.
The odd thing is that it already worked some days ago until I
restructured the class a bit.
I have to increase the memory for idea to over 1024MB to get it working,
but even this is not working always.

I tried following things without success:
- reset the state of the class to an earlier version
- reset all idea cache
- started idea with a totally fresh installation (IntellijIdea directory
removed)
- tested with version 6107,6112

How can I track down what causes the problem?
I tried to do a memory snapshot as well, but either the snapshot is
corrupt or it does not contain much memory usage.

There is following message in the log file if this error occurs:

2006-12-09 10:03:03,159 ERROR -
enapi.editor.impl.DocumentImpl - Assertion failed
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at
com.intellij.openapi.editor.impl.DocumentImpl.removeDocumentListener(DocumentImpl.java:104)

at
com.intellij.openapi.vcs.ex.LineStatusTracker.release(LineStatusTracker.java:94)

at
com.intellij.openapi.vcs.impl.LineStatusTrackerManager.a(LineStatusTrackerManager.java:126)

at
com.intellij.openapi.vcs.impl.LineStatusTrackerManager.a(LineStatusTrackerManager.java:33)

at
com.intellij.openapi.vcs.impl.LineStatusTrackerManager.projectClosed(LineStatusTrackerManager.java:20

)
at
com.intellij.openapi.project.impl.ProjectImpl.d(ProjectImpl.java:63)
at
com.intellij.openapi.project.impl.ProjectImpl.access$300(ProjectImpl.java:134)

at
com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectClosed(ProjectImpl.java

:O)
at
com.intellij.openapi.project.impl.ProjectManagerImpl$1.projectClosed(ProjectManagerImpl.java:7)

at
com.intellij.openapi.project.impl.ProjectManagerImpl.e(ProjectManagerImpl.java:167)

at
com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:234)

at
com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:1)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:27)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:13)

at
com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:270)

at com.intellij.openapi.util.Disposer$1.execute(Disposer.java:21)
at
com.intellij.openapi.util.objectTree.ObjectNode.execute(ObjectNode.java:99)
at
com.intellij.openapi.util.objectTree.ObjectTree.executeAll(ObjectTree.java:91)

at com.intellij.openapi.util.Disposer.dispose(Disposer.java:36)
at
com.intellij.openapi.application.impl.ApplicationImpl.c(ApplicationImpl.java:70)

at
com.intellij.openapi.application.impl.ApplicationImpl.access$000(ApplicationImpl.java:217)

at
com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:1)

at
com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:22)

at
com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:393)

at
com.intellij.diagnostic.DefaultIdeaErrorLogger$1.run(DefaultIdeaErrorLogger.java:0)

at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:36)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:184)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2006-12-09 10:03:03,159 ERROR -
enapi.editor.impl.DocumentImpl - IntelliJ IDEA 6.0.2 Build #6107
2006-12-09 10:03:03,159 ERROR -
enapi.editor.impl.DocumentImpl - JDK: 1.5.0_09
2006-12-09 10:03:03,160 ERROR -
enapi.editor.impl.DocumentImpl - VM: Java HotSpot(TM) Server VM
2006-12-09 10:03:03,168 ERROR -
enapi.editor.impl.DocumentImpl - Vendor: Sun Microsystems Inc.
2006-12-09 10:03:03,168 ERROR -
enapi.editor.impl.DocumentImpl - OS: Linux

0

Please sign in to leave a comment.