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 199476

Summary: LowPerformance took 185973 ms. (in getLineage)
Product: projects Reporter: Exceptions Reporter <exceptions_reporter>
Component: MavenAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal CC: fleka, jglick
Priority: P3 Keywords: PERFORMANCE
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 177301
Attachments: nps snapshot
Test case to reproduce
Unsuccessful patch attempt
Better test case (uses a site which gives proper 404s)

Description Exceptions Reporter 2011-06-16 19:50:52 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
jglick: Refocusing editor with POM from bug #198208.



Maximum slowness yet reported was 185973 ms, average is 71690
Comment 1 Exceptions Reporter 2011-06-16 19:51:00 UTC
Created attachment 108934 [details]
nps snapshot
Comment 2 Jesse Glick 2011-06-22 20:50:03 UTC
M2ConfigProvider.getActiveConfiguration was blocked because ProjectProfileHandlerImpl.getLineage, despite supposedly using the offline embedder, was nonetheless making an HTTP connection.
Comment 3 Jesse Glick 2011-06-22 21:15:18 UTC
Created attachment 109063 [details]
Test case to reproduce

Open attached file in editor and select "POM model" in Navigator. When switching between that and "POM inheritance", there is a noticeable pause, and a network connection is made. This is not true when there is no <repositories> section (at least assuming a mirror is configured for central).
Comment 4 Jesse Glick 2011-06-22 21:16:07 UTC
Created attachment 109064 [details]
Unsuccessful patch attempt
Comment 5 Jesse Glick 2011-06-22 21:37:18 UTC
Created attachment 109067 [details]
Better test case (uses a site which gives proper 404s)
Comment 6 Jesse Glick 2011-06-22 21:53:55 UTC
core-main #36217b4293fc
Comment 7 Quality Engineering 2011-06-24 14:28:32 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/36217b4293fc
User: Jesse Glick <jglick@netbeans.org>
Log: #199476: LowPerformance took 185973 ms. (in getLineage)