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 253495 - org.netbeans.api.project.ProjectManager.findProject: LowPerformance took 34099 ms.
Summary: org.netbeans.api.project.ProjectManager.findProject: LowPerformance took 3409...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2015-07-15 11:02 UTC by Exceptions Reporter
Modified: 2015-07-21 01:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 218554


Attachments
nps snapshot (62.05 KB, application/nps)
2015-07-15 11:02 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-07-15 11:02:43 UTC
This issue was reported manually by tstupka.
It already has 2 duplicates 


Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Mac OS X

User Comments:
GUEST: just open a big project copy/pasted... after several unrecoverable hangs (but not freeze according to OSx) netbeans managed to start with warning "project is read only". Which is not the case (I checked, and chmod ugo+w to be sure)

GUEST: Program startup is slow.  It takes a long time from the time when the IDE window opens and when it can actually be used.  Other than opening 2 web application projects there isn't any other obvious IDE activity.



Maximum slowness yet reported was 34099 ms, average is 27118
Comment 1 Exceptions Reporter 2015-07-15 11:02:45 UTC
Created attachment 154646 [details]
nps snapshot
Comment 2 Tomas Stupka 2015-07-15 11:04:08 UTC
in awt
RefactoringContextAction$InlineMenu.getMenuPresenters() -> ... -> FOQ
where FOQ is being blocked by a concurrently running project open

unfortunately, there isn't much we can do about it in projects.
please evaluate if there is a way around it in refactoring - e.g. check if projects are being opened then provide for the submenu just a placeholder menu item (Please wait ...) or simply keep the action enabled and test for enabled in .performAction()

otherwise feel free to close
thanks
Comment 3 Ralph Ruijs 2015-07-17 09:24:45 UTC
(In reply to Tomas Stupka from comment #2)
> unfortunately, there isn't much we can do about it in projects.
> please evaluate if there is a way around it in refactoring - e.g. check if
> projects are being opened then provide for the submenu just a placeholder

Which API is there to query for running opening projects?
Comment 4 Tomas Stupka 2015-07-17 09:38:39 UTC
(In reply to Ralph Ruijs from comment #3)
> (In reply to Tomas Stupka from comment #2)
> > unfortunately, there isn't much we can do about it in projects.
> > please evaluate if there is a way around it in refactoring - e.g. check if
> > projects are being opened then provide for the submenu just a placeholder
> 
> Which API is there to query for running opening projects?
Future<Project[]> o.n.api.project.ui.OpenProjects.openProjects()

tomas z. on cc, maybe he knows better
Comment 5 Tomas Zezula 2015-07-17 11:03:14 UTC
Yes,the Future from Future<Project[]> o.n.api.project.ui.OpenProjects.openProjects() is blocked unless the project are opened.
Comment 6 Ralph Ruijs 2015-07-20 07:06:09 UTC
changeset:   1a5220a5fd72
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Mon Jul 20 08:56:30 2015 +0200
summary:     #253495 - org.netbeans.api.project.ProjectManager.findProject: LowPerformance took 34099 ms.
Comment 7 Quality Engineering 2015-07-21 01:19:36 UTC
Integrated into 'main-silver', will be available in build *201507210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1a5220a5fd72
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #253495 - org.netbeans.api.project.ProjectManager.findProject: LowPerformance took 34099 ms.