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 253665 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED DUPLICATE of bug 253900
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 08:14 UTC by bolsover
Modified: 2015-08-11 18:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (178.44 KB, application/octet-stream)
2015-07-23 08:14 UTC, bolsover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bolsover 2015-07-23 08:14:29 UTC
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)
Comment 1 matthias42 2015-07-25 11:16:12 UTC
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.
Comment 2 matthias42 2015-08-10 19:17:49 UTC
Hello bolsover, is this a duplicate of bug 253900?
Comment 3 bolsover 2015-08-10 19:22:03 UTC
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!
Comment 4 matthias42 2015-08-11 18:55:30 UTC
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 ***