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 - LowPerformance took 185973 ms. (in getLineage)
Summary: LowPerformance took 185973 ms. (in getLineage)
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-06-16 19:50 UTC by Exceptions Reporter
Modified: 2011-06-24 14:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177301


Attachments
nps snapshot (182.11 KB, application/nps)
2011-06-16 19:51 UTC, Exceptions Reporter
Details
Test case to reproduce (423 bytes, text/xml)
2011-06-22 21:15 UTC, Jesse Glick
Details
Unsuccessful patch attempt (854 bytes, patch)
2011-06-22 21:16 UTC, Jesse Glick
Details | Diff
Better test case (uses a site which gives proper 404s) (424 bytes, text/xml)
2011-06-22 21:37 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
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)