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.
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)
Created attachment 133745 [details] stacktrace
Maybe I'm reading the attached thread dump wrong but it seems that self sampler holds too many byte arrays. Please evaluate, thanks.
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.
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.