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 228935 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 08:49 UTC by paolosca
Modified: 2013-04-24 13:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 200193


Attachments
stacktrace (2.21 KB, text/plain)
2013-04-24 08:49 UTC, paolosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2013-04-24 08:49:31 UTC
Build: NetBeans IDE Dev (Build 201304112301)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
paolosca: I ran a "select * from table" query.
Note that the out of memory is probably not due to the size of the data retrieved since the db configuration is wrong. In fact, if I run "select count(*) from table" I get an "Unable to connect to database" error.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at sun.java2d.SunGraphics2D.clone(SunGraphics2D.java:266)
   at sun.java2d.SunGraphics2D.create(SunGraphics2D.java:300)
   at javax.swing.JComponent.paint(JComponent.java:1000)
   at javax.swing.JComponent.paintChildren(JComponent.java:887)
   at javax.swing.JComponent.paint(JComponent.java:1063)
   at javax.swing.JComponent.paintChildren(JComponent.java:887)
Comment 1 paolosca 2013-04-24 08:49:32 UTC
Created attachment 133745 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2013-04-24 09:40:27 UTC
Maybe I'm reading the attached thread dump wrong but it seems that self sampler holds too many byte arrays. Please evaluate, thanks.
Comment 3 Tomas Hurka 2013-04-24 13:12:24 UTC
OOME is due too retrieving too many database records. java.util.ArrayList#40503 contains 193000 records and occupy around 650M. It is results from the following SQL command:
select * from cnordini

Closing as invalid, if you really want to select so many records from database, you need to increase NetBeans heap size via Xmx parameter.
Comment 4 Jaroslav Havlin 2013-04-24 13:19:07 UTC
Does the same query work for you if you run it from NetBeans 7.3 (with the same JDBC driver)?
If so, please reopen the issue. Thanks.