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 232269 - Slowness detected
Summary: Slowness detected
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on: 232450
Blocks:
  Show dependency tree
 
Reported: 2013-07-04 13:35 UTC by Tomas Mysik
Modified: 2013-07-12 02:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 198071


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2013-07-04 13:35:40 UTC
Discovered while investigating issue #225419 that these snapshots belongs to this area. The snapshots can be found in Exception Report URL, please evaluate them, thanks.

snapshot-654706:
org.netbeans.modules.java.j2seproject.J2SEProject.createLookup()	45.96735	1 683 ms (46%)	1 664 ms

snapshot-676848:
org.netbeans.api.project.ProjectManager.findProject()	68.050476	16 535 ms (68,1%)	16 376 ms
FoD calls it and J2SE and Glassfish do something, not sure if it is OK or not.

snapshot-660975:
org.netbeans.spi.java.project.support.ui.SharableLibrariesUtils.execute()	99.98184	10 667 ms (100%)	709 ms
It calls org.netbeans.core.windows.services.DialogDisplayerImpl.notify() under write mutex.
Comment 1 Tomas Zezula 2013-07-09 12:34:04 UTC
snapshot-654706 in fact invalid from java project point of view:
OpenProjectList holds the writeLock.

snapshot-676848 invalid as well, the WM is required by J2SELTP writing the libs classpath.


snapshot-660975 fixed jet-main f562e2271096.

Anyway from my point of view the problem is not in holding the WL but reading the data under RL from EDT.
Comment 2 Tomas Mysik 2013-07-09 12:57:14 UTC
Adding Miloš to CC, see Tomáš's last comment. Thanks.
Comment 3 Tomas Zezula 2013-07-09 13:08:15 UTC
In reply to comment #2.
I will create a separate issue and I am working on fix.
Comment 4 Quality Engineering 2013-07-12 02:35:25 UTC
Integrated into 'main-silver', will be available in build *201307112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f562e2271096
User: Tomas Zezula <tzezula@netbeans.org>
Log: #232269:Slowness detected