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

Summary: OutOfMemoryError: GC overhead limit exceeded
Product: db Reporter: paolosca <paolosca>
Component: CodeAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 200193
Attachments: stacktrace

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.