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 254116 - Slowness: maven.problems.ProblemReporterImpl adds file listener in EDT
Summary: Slowness: maven.problems.ProblemReporterImpl adds file listener in EDT
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2015-08-04 08:51 UTC by jiai
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218945


Attachments
nps snapshot (201.04 KB, application/nps)
2015-08-04 08:51 UTC, jiai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jiai 2015-08-04 08:51:42 UTC
This bug was originally marked as duplicate of bug 233800, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Windows 7

User Comments:
jiai: Starting Netbeans with a lot of projects open and a deleted cache.



Maximum slowness yet reported was 29989 ms, average is 29989
Comment 1 jiai 2015-08-04 08:51:45 UTC
Created attachment 155159 [details]
nps snapshot
Comment 2 Jaroslav Havlin 2015-08-04 11:35:44 UTC
Method o.n.m.maven.problems.ProblemReporterImpl.addMissingArtifact() tries to add a file change listener in EDT, but the lock (FileChangeImpl.holders) is held by thread "Maven Project reloading".

It seems that the hard drive is busy and unresponsive for some time (quite common for NTFS).

Listener registration in ProblemReporterImpl.addMissingArtifact() could be rescheduled to some background thread, but I'm not sure it is worth the effort, as the slowness is primarily caused by the native filesystem, and the whole OS may be unresponsive.

Reassigning to projects/Maven.

Thank you for reporting.
Comment 3 Martin Balin 2016-07-07 08:38:03 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