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 240850 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 23:28 UTC by olehoppe
Modified: 2014-01-24 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206872


Attachments
stacktrace (1.07 KB, text/plain)
2014-01-22 23:28 UTC, olehoppe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description olehoppe 2014-01-22 23:28:08 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
olehoppe: Everything worked fine, just bit slow executing query against SQL database. Reported low memory condition, so restarted. No loss or further error messages.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Arrays.java:2694)
   at java.lang.String.<init>(String.java:203)
   at java.lang.StringBuffer.toString(StringBuffer.java:561)
   at java.io.BufferedReader.readLine(BufferedReader.java:352)
   at java.io.BufferedReader.readLine(BufferedReader.java:382)
   at org.netbeans.modules.diff.builtin.provider.BuiltInDiffProvider.getLines(BuiltInDiffProvider.java:106)
Comment 1 olehoppe 2014-01-22 23:28:09 UTC
Created attachment 144273 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-01-23 10:00:20 UTC
Seems you tried diffing two large files (about 40MB each), they appear to be SQL dumps. Although i think it does not make sense to diff such large files i still made some improvements partially in bug #240168 and with the following fix...

fix: http://hg.netbeans.org/core-main/rev/de841cd10942
Comment 3 Quality Engineering 2014-01-24 02:39:16 UTC
Integrated into 'main-silver', will be available in build *201401240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/de841cd10942
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #240850 - OutOfMemoryError: Java heap space
do not run diff computation twice at the same moment.