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
URL:
Keywords:
: 268349 (view as bug list)
Depends on:
Blocks:
 
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:


Attachments

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(Arrays.java:3181)
	at java.util.ArrayList.toArray(ArrayList.java:376)
	at java.util.ArrayList.<init>(ArrayList.java:177)
	at org.netbeans.modules.db.sql.execute.StatementInfo.<init>(StatementInfo.java:75)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper$SQLSplitter.addStatement(SQLExecuteHelper.java:631)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper$SQLSplitter.parse(SQLExecuteHelper.java:307)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper$SQLSplitter.<init>(SQLExecuteHelper.java:253)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.split(SQLExecuteHelper.java:220)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.getStatements(SQLExecuteHelper.java:174)
	at org.netbeans.modules.db.sql.execute.SQLExecuteHelper.execute(SQLExecuteHelper.java:94)
	at org.netbeans.modules.db.sql.loader.SQLEditorSupport$SQLExecutor.run(SQLEditorSupport.java:641)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)


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. ***