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.
Created attachment 154812 [details] messages.log OutOfMemoryError: GC overhead limit exceeded Netbeans looses focus and throws OutOfMemoryError when retrieving data from database - simple query expected to return about 29,000 records. Stacktrace below and messages.log attached. java.lang.OutOfMemoryError: GC overhead limit exceeded at sun.reflect.ByteVectorImpl.resize(ByteVectorImpl.java:84) at sun.reflect.ByteVectorImpl.add(ByteVectorImpl.java:63) at sun.reflect.ClassFileAssembler.emitByte(ClassFileAssembler.java:74) at sun.reflect.ClassFileAssembler.emitConstantPoolUTF8(ClassFileAssembler.java:107) at sun.reflect.AccessorGenerator.emitCommonConstantPoolEntries(AccessorGenerator.java:144) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:349) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:112) at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:340) at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1376) at java.io.ObjectStreamClass.access$1500(ObjectStreamClass.java:72) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:493) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1134) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:441) at java.util.logging.LogRecord.writeObject(LogRecord.java:473) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
Thank you for your report. Could you please check your database connection properties: - Right click on connection node in "Databases" - Select "Properties" - Check the option "Use scrollable cursors" Please also state with jdbc driver you are/were using and which version it was.
Hello bolsover, is this a duplicate of bug 253900?
Sorry - I missed the comment from 2015-07-25... I think this could be a duplicate of 253900. TBH I've been doing so much database work in the last couple of months I've lost track of the DB vendor.. I've been working with MS SQLserver, Oracle and PervasiveSQL each has it's own flavour of SQL!
I'll mark this as duplicate then - I thing in any case both cases are connected (to many rows are fetched/buffered). *** This bug has been marked as a duplicate of bug 253900 ***