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 268634 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED INCOMPLETE
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-21 18:02 UTC by lanietoc
Modified: 2017-02-13 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 211155


Attachments
stacktrace (1.81 KB, text/plain)
2016-10-21 18:02 UTC, lanietoc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lanietoc 2016-10-21 18:02:51 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows XP

User Comments:
GUEST: after waking up from hybernation CPU jumped to 90%

GUEST: runaway cpu after sleep mode

GUEST: running some queries

GUEST: Open a connection to one database in the Services tab, and then a connection to another database in an "Execute command ..." page. Often leads to out of heap space errors.

GUEST: cpu jumps while in sleep mode?

GUEST: prosess leaks memory when in hybernate or sleep mode, I come back and CPU is at 90% or more

lanietoc: It presents when netbeans stats up.

GUEST: Tried to quit Netbeans and it crashed.

GUEST: idle

GUEST: application locked up after sitting in idle for a limited amount of time

GUEST: all 4 cpu maxed

GUEST: idle

GUEST: I were working with SQL from an AS400 Data Base




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.openide.util.lookup.LookupListenerList.add(LookupListenerList.java:64)
   at org.openide.util.lookup.ProxyLookup$R.addLookupListener(ProxyLookup.java:488)
   at org.netbeans.modules.db.explorer.node.NodeRegistry.init(NodeRegistry.java:122)
   at org.netbeans.modules.db.explorer.node.NodeRegistry.create(NodeRegistry.java:102)
   at org.netbeans.api.db.explorer.node.BaseNode.<init>(BaseNode.java:173)
   at org.netbeans.api.db.explorer.node.BaseNode.<init>(BaseNode.java:147)
Comment 1 lanietoc 2016-10-21 18:02:54 UTC
Created attachment 162589 [details]
stacktrace
Comment 2 matthias42 2016-11-04 20:54:38 UTC
This can't be tracked down, as not enought information is present. If user asks DB server to supply a few thousand rows, it needs a very good JDBC driver and an even better GC to handle this.
Comment 3 pdepradoVAI 2017-02-13 15:50:29 UTC
That is very interesting.  My NetBeans IDE does max out of CPU and sometimes memory at least once daily.  
My daily tasks include waking the machine from sleep in the morning.  Though I typically reboot once every 2-3 days anyway.
My PC is a Lenovo Thinkpad running the Windows 7 Pro operating system (Version 6.1 Build 7601 Service Pack 1).
I connect to multiple IBM iSeries (a lightweight AS400) every day over various VPN connections.

As far as I know, JDBC should scale to return thousands of records.  I am using the IBM implementation:

"IBM Data Server Driver for JDBC and SQLJ V3.61"
db2jcc.jar

Thanks for your assistance.
What other information would be helpful?