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 230883 - NBModelBuilder.build: LowPerformance took 76660 ms. - softreferenced MavenProjects dropping
Summary: NBModelBuilder.build: LowPerformance took 76660 ms. - softreferenced MavenPro...
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
Depends on: 207155
Blocks:
  Show dependency tree
 
Reported: 2013-06-06 21:49 UTC by Exceptions Reporter
Modified: 2015-06-10 08:44 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201014


Attachments
nps snapshot (629.14 KB, application/nps)
2013-06-06 21:49 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-06-06 21:49:43 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Windows 7

User Comments:
rptmaestro: Renaming files

GUEST: NetBeans was downloading and unpacking maven indexes from a corporate Nexus repository. Desktop freezes each time it does so.



Maximum slowness yet reported was 76660 ms, average is 42767
Comment 1 Exceptions Reporter 2013-06-06 21:49:51 UTC
Created attachment 135469 [details]
nps snapshot
Comment 2 Milos Kleint 2013-06-07 12:21:34 UTC
most likely un-opened maven projects are affecting these slowdown. 
For opened projects, we are hardreferencing MavenProject instance, so once loaded it never gets released. given that it's almost always necessary that's correct.
For unopened projects, we only softReference the instance, so at times of reaching the memory limit, the MavenProject instances are cleared. The stacktraces in the snapshots demonstrate it, at least in one case the code above the slow stacktrace did use MavenProject as well but was fast.

There is no real solution to the problem, use primarily only opened projects, limit the number of opened projects and/or increase heap size to prevent dropping MavenProject instances.
Comment 3 Milos Kleint 2014-01-27 13:47:25 UTC
the usecases with maven porject popup being slow due to open required projects action popup creation are now (8.0) a bit faster. The module project iteration is no longer recursive and only direct child projects are shown. Additionally ww now only show explicit "subprojects" as defined in pom.xml <modules> section. Previously we also used FileOwnerQeury to link to dependency projects.
Comment 4 Milos Kleint 2014-01-27 13:48:18 UTC
some reports are duplicate of reports for issue 207155
Comment 5 Tomas Stupka 2015-06-10 08:44:57 UTC
> the usecases with maven porject popup being slow due to open required projects action popup creation are now (8.0) a bit faster...
hm, no reports since 8.0 and over a year ago. Closing ...