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 245391 - OutOfMemoryError: Lucene & Maven?
Summary: OutOfMemoryError: Lucene & Maven?
Status: RESOLVED WONTFIX
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:
Depends on:
Blocks:
 
Reported: 2014-07-04 08:37 UTC by diamine75
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210534


Attachments
stacktrace (1.36 KB, text/plain)
2014-07-04 08:37 UTC, diamine75
Details

Note You need to log in before you can comment on or make changes to this bug.
Description diamine75 2014-07-04 08:37:25 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: Windows 7

User Comments:
diamine75: didnt recognized




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.String.substring(String.java:1877)
   at org.netbeans.Stamps.testWritePath(Stamps.java:987)
   at org.netbeans.Stamps.produceRelativePath(Stamps.java:975)
   at org.netbeans.Stamps.findRelativePath(Stamps.java:1008)
Comment 1 diamine75 2014-07-04 08:37:28 UTC
Created attachment 147876 [details]
stacktrace
Comment 2 Jaroslav Tulach 2014-07-14 12:37:21 UTC
50m in lucene ScoreDoc probably held because of some Maven (a lot of sonatype instances) computation.
Comment 3 Martin Kozeny 2014-07-31 08:10:08 UTC
Probably in org.netbeans.modules.maven.indexer.ClassDependencyIndexCreator.search() method in module maven.indexer. Should be there some lazy fetch or whatever on collector.topDocs().scoreDocs.
Comment 4 Tomas Zezula 2014-07-31 08:42:33 UTC
TopDocs is already lazy.
It does not load documents.
It also load just at most given number of ScoreDocs{int,float,int}.
Comment 5 Martin Balin 2016-07-07 08:38:58 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss