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 247741 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 247733 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-06 15:51 UTC by abarquin
Modified: 2015-06-05 02:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206707


Attachments
stacktrace (1.50 KB, text/plain)
2014-10-06 15:51 UTC, abarquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abarquin 2014-10-06 15:51:04 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
GUEST: Trying to build multiple projects.

abarquin: Closing netbeans it was hang

GUEST: No idea???

GUEST: I have had NetBeans open for about 24 hours, when the next morning it was lagging quite heavily whenever I resized a window or scrolled in one of the views - so that I quit NetBeans. When I started NetBeans again, this "Report Problem" dialogue appeared.

GUEST: Nothing




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.openide.filesystems.FileUtil.copy(FileUtil.java:543)
   at org.netbeans.modules.maven.indexer.ClassDependencyIndexCreator.read(ClassDependencyIndexCreator.java:277)
   at org.netbeans.modules.maven.indexer.ClassDependencyIndexCreator.populateArtifactInfo(ClassDependencyIndexCreator.java:126)
   at org.apache.maven.index.ArtifactContext.createDocument(ArtifactContext.java:184)
   at org.apache.maven.index.DefaultIndexerEngine.update(DefaultIndexerEngine.java:73)
   at org.apache.maven.index.DefaultIndexer.addArtifactsToIndex(DefaultIndexer.java:110)
Comment 1 abarquin 2014-10-06 15:51:05 UTC
Created attachment 149748 [details]
stacktrace
Comment 2 Tomas Stupka 2015-05-28 15:52:20 UTC
report 779723 - too many StacktraceOutputListener-s. 
a too long output perhaps ...
Comment 3 Tomas Stupka 2015-05-29 15:13:48 UTC
*** Bug 247733 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Stupka 2015-06-01 09:15:20 UTC
too many outputlisteners held for the maven output. 
unfortunately, all that maven does is adding outputlisteners via
org.openide.windows.OutputWriter.println(..., OutputListener, ...)

please evaluate
Comment 5 Tomas Stupka 2015-06-02 16:34:06 UTC
> too many outputlisteners held for the maven output. 
> unfortunately, all that maven does is adding outputlisteners via
> org.openide.windows.OutputWriter.println(..., OutputListener, ...)
> please evaluate
actually, there is something maven could do about the issue - instead of creating per each stacktrace line a new listener instance initialized with file, line nr, etc it would be enough to create one instance per project and eventually retrieve those date on user click again.
Comment 6 Tomas Stupka 2015-06-02 18:06:14 UTC
fixed in jet-main #8c7c94cff340
Comment 7 Quality Engineering 2015-06-05 02:39:56 UTC
Integrated into 'main-silver', will be available in build *201506050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8c7c94cff340
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #247741 - OutOfMemoryError: Java heap space