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 145281 - Sakila: OutOfMemoryError: Java heap space
Summary: Sakila: OutOfMemoryError: Java heap space
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: John Baker
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 12:24 UTC by Roman Mostyka
Modified: 2008-09-11 10:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 99898


Attachments
stacktrace (2.32 KB, text/plain)
2008-08-27 12:24 UTC, Roman Mostyka
Details
thread dump showing other processes blocked (7.93 KB, text/plain)
2008-08-28 07:58 UTC, John Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-08-27 12:24:21 UTC
Build: NetBeans IDE Dev (Build 080826)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Windows XP, 5.1, x86

User Comments: 
1. Registered remote MySQL.
2. Tried to create "sakila" database.

Result: OutOfMemoryError arises.

Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
        at com.sun.org.apache.xerces.internal.xni.XMLString.toString(XMLString.java:185)
        at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(AbstractDOMParser.java:1188)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:463)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
Comment 1 Roman Mostyka 2008-08-27 12:24:28 UTC
Created attachment 68434 [details]
stacktrace
Comment 2 John Baker 2008-08-28 05:00:34 UTC
I've executed the sakila script a few times and haven't encountered out of memory errors.

If you executed other SQL please attach the script or commands.

Also, please email me the sql_history.xml file.
Comment 3 John Baker 2008-08-28 05:02:45 UTC
From the Exceptions reporter, it appears you executed SQL scripts 3 times.
Comment 4 John Baker 2008-08-28 07:31:26 UTC
reproducible

My sql_history.xml file isn't that long but the parser is taking a long time to open
Comment 5 John Baker 2008-08-28 07:55:18 UTC
I produced a thread dump and there are some other processes that are blocking .

There are some Derby and MySQL executors running which have nothing to do with opening SQLHistory
Comment 6 John Baker 2008-08-28 07:58:06 UTC
Created attachment 68503 [details]
thread dump showing other processes blocked
Comment 7 John Baker 2008-08-28 22:21:55 UTC
I'm pretty sure I found the problem
Comment 8 John Baker 2008-08-28 22:41:08 UTC
e992288b287f
Comment 9 Quality Engineering 2008-08-30 05:41:56 UTC
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/e992288b287f
User: John Baker <jbaker@netbeans.org>
Log: #145281 Sakila: OutOfMemoryError: Java heap space
Comment 10 Roman Mostyka 2008-09-11 10:52:35 UTC
Verified with build 080910.