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 268724 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Libor Fischmeistr
: 268349 (view as bug list)
Depends on:
Reported: 2016-10-28 06:10 UTC by space_center
Modified: 2016-11-04 20:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description space_center 2016-10-28 06:10:14 UTC
1. Opened big size (7 mb) sql script in editor.
2. Chose connection to db (postgresql 9.5.3)
3. Pressed "Run SQL" button.
4. NetBeans have stucked for several minutes.
5. After that the Error Message appeared in Notifications box with text
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(
	at java.util.ArrayList.toArray(
	at java.util.ArrayList.<init>(
	at org.netbeans.modules.db.sql.execute.StatementInfo.<init>(
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper$SQLSplitter.addStatement(
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper$SQLSplitter.parse(
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper$SQLSplitter.<init>(
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.split(
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.getStatements(
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(
	at org.netbeans.modules.db.sql.loader.SQLEditorSupport$
	at org.openide.util.RequestProcessor$
	at org.netbeans.modules.openide.util.GlobalLookup.execute(
	at org.openide.util.lookup.Lookups.executeWith(
	at org.openide.util.RequestProcessor$

This operation worked fine in version 8.1

java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
Comment 1 space_center 2016-10-28 08:40:02 UTC
I forgot to write about memory settings which are -J-Xss2m -J-Xms2048m -J-Xmx4096m
Comment 2 matthias42 2016-11-04 20:59:37 UTC
*** Bug 268349 has been marked as a duplicate of this bug. ***