This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218116 - Selecting a Small MySQL table causes HeapSpace issue
Summary: Selecting a Small MySQL table causes HeapSpace issue
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 7.1.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 10:19 UTC by rjdkolb
Modified: 2012-09-14 07:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rjdkolb 2012-09-11 10:19:23 UTC
Hello

I am selecting a small MySQL table (3 cols, about 10 records) I get a heap space issue.
The table has no clobs or blobs and the structure was generated by EclipseLink. (nothing funny in the table)

This also seemed to happen in 7.2

This was done on a freshly started NetBeans and is easy to recreate.

Here is my heap dump
http://196.36.57.140/heapdump-1347357164996_clean.hprof.zip
Thanks

Stacktrace
INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: class org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper ignored cancel for 64 ms.
WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/text/x-ant+xml/Factories/ marked with the position attribute: [org-apache-tools-ant-module-loader-AntProjectDataLoader.instance], but some are: [org.apache.tools.ant.module.resources.xml-ergonomics.instance]
WARNING [org.netbeans.swing.tabcontrol.plaf.GtkEditorTabCellRenderer]: painter.paintTabbedPaneTabBackground1 takes too long x=0 y=0 w=161 h=32 index:0 Time=653
SEVERE [org.openide.util.RequestProcessor]
java.lang.OutOfMemoryError: GC overhead limit exceeded
	at com.sun.org.apache.xerces.internal.xni.XMLString.toString(XMLString.java:188)
	at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(AbstractDOMParser.java:1228)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:442)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:237)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
	at org.netbeans.modules.db.sql.history.SQLHistoryPersistenceManager$AtomicFileAction.run(SQLHistoryPersistenceManager.java:257)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:566)
	at org.netbeans.modules.db.sql.history.SQLHistoryPersistenceManager.create(SQLHistoryPersistenceManager.java:131)
	at org.netbeans.modules.db.sql.history.SQLHistoryManager.save(SQLHistoryManager.java:117)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(SQLExecuteHelper.java:156)
	at org.netbeans.modules.db.sql.loader.SQLEditorSupport$SQLExecutor.run(SQLEditorSupport.java:578)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
WARNING [org.netbeans.core.TimableEventQueue]: too much time in AWT thread org.netbeans.core.ui.sampler.SelfSamplerAction$InternalSampler@4040158b
WARNING [org.netbeans.core.TimableEventQueue]: no snapshot taken
SEVERE [org.openide.util.RequestProcessor]
java.lang.OutOfMemoryError: Java heap space
Comment 1 Tomas Hurka 2012-09-11 15:10:54 UTC
The heap dump is from NB 7.2.1. The affected code was re-factored for NB 7.2 (see issue #204550). Please use daily build or NetBeans 7.2.
Comment 2 rjdkolb 2012-09-14 07:15:19 UTC
I have tested this now and 7.2 and you are correct.
It does not happen in 7.2 and it does happen in 7.1.2

I am marking this resolved fixed, since it is fixed.