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 246604 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED DUPLICATE of bug 239611
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 10:26 UTC by Exceptions Reporter
Modified: 2015-02-06 20:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 211355


Attachments
stacktrace (479 bytes, text/plain)
2014-08-21 10:26 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-08-21 10:26:07 UTC
This bug was originally marked as duplicate of bug 239570, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.60-b09, Java(TM) SE Runtime Environment, 1.7.0_60-b19
OS: Windows 7

User Comments:
jfinkel: Opening a file.

GUEST: In the Databases panel clicked on a large Oracle table and selected View Data expecting it would page the results but it appeared to hang while trying to fetch the entire (milti million row) table and finally after more than an hour I had to kill Netbeans.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2367)
   at java.lang.String.<init>(String.java:168)
   at java.lang.String.valueOf(String.java:2861)
   at java.lang.Thread.getName(Thread.java:1171)
   at org.openide.util.RequestProcessor$Processor.put(RequestProcessor.java:1933)
   at org.openide.util.RequestProcessor.askForWork(RequestProcessor.java:635)
Comment 1 Exceptions Reporter 2014-08-21 10:26:09 UTC
Created attachment 148811 [details]
stacktrace
Comment 2 Tomas Hurka 2014-08-29 12:51:41 UTC
Retained size of 3088 instances org.netbeans.modules.db.explorer.node.ColumnNode is 250,646,872. This represents 35.6% of entire heap. Reassigning to db module for further investigation.
Comment 3 matthias42 2015-02-06 20:22:39 UTC
I'll close this as a duplicate of 239611. Oracle does not properly support scrollable cursors and when requesting them leads to client side caching, that in this case most probably flooded the heap.

The fix is easy: Disable scrollable cursors and the old behavior is reinstated (check the connection properties of the connection).

For bug 239611 a patch was committed, that fixes this for new connections.

*** This bug has been marked as a duplicate of bug 239611 ***