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.
Summary: | OutOfMemoryError: Java heap space | ||
---|---|---|---|
Product: | projects | Reporter: | bjones598 |
Component: | Ant | Assignee: | Tomas Stupka <tstupka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacom007, brucekhaddon, erdemah, heldertl, itmaster, jhonny_rave, Judivaldo, lina_castano, Pulsar, rptmaestro |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 207589 |
Attachments: | stacktrace |
Description
bjones598
2014-02-13 22:16:43 UTC
Created attachment 145170 [details]
stacktrace
The OOME is thrown from the flowing place: Out Thread for {0} (run)" daemon prio=3 tid=150 RUNNABLE at java.lang.OutOfMemoryError.<init>(OutOfMemoryError.java:48) at java.util.Arrays.copyOf(Arrays.java:2271) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:122) at org.apache.tools.ant.module.bridge.impl.ForkedJavaOverride$Copier.run(ForkedJavaOverride.java:332) at java.lang.Thread.run(Thread.java:744) The problem is that ByteArrayOutputStream is too large, probably because the ant process outputs excessive amount of data. Reassigning to project/ant for further evaluation. This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=207589 looks like too many hundred megabytes are printed into one line by user code. when ForkedJavaOverride tries to print (copy) the relevant bytearray, the error appears can flush the byte array stream more often, not only on line end, but sooner or later the ide might get into its knees anyway. fixed in jet-main #3d67567b6b92 Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3d67567b6b92 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #241847 - OutOfMemoryError: Java heap space |