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 238731 - 28s - j2ee.persistence.wizard.library.PersistenceLibrarySupport.extractProvider() calls into ClassPath in EDT
Summary: 28s - j2ee.persistence.wizard.library.PersistenceLibrarySupport.extractProvid...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: PERFORMANCE
: 240900 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-23 13:16 UTC by Exceptions Reporter
Modified: 2014-01-24 12:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204295


Attachments
nps snapshot (57.26 KB, application/nps)
2013-11-23 13:16 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-11-23 13:16:15 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
GUEST: My netbeans IDE 7.4 isr running quite slow. It paused for around 28 sec in between.

GUEST: When I'm changing the window, mostly when clean and build of project is done.



Maximum slowness yet reported was 29133 ms, average is 28700
Comment 1 Exceptions Reporter 2013-11-23 13:16:17 UTC
Created attachment 142506 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2013-11-24 06:55:59 UTC
Single call to j2ee.persistence.wizard.library.PersistenceLibrarySupport.extractProvider() 
leads to at least 77 disk touches. That can't be fast.

Move that out of EDT.
Comment 3 Sergey Petrov 2013-11-26 10:19:54 UTC
comments are not clear to me as both reports are persistence wizards related( not usual work with ide ). wizard may show smth like "initializing" when providers are initializing off edt.
Comment 4 Sergey Petrov 2013-12-05 13:43:10 UTC
on other side I see "
java.io.WinNTFileSystem.getBooleanAttributes[native](): 12074 / 12074"
in some other cases these kind of issues are considered as general system slowness we have no control on
see for example https://netbeans.org/bugzilla/show_bug.cgi?id=238862 with justification "NFS problem, do not fix"
Comment 5 Sergey Petrov 2013-12-05 14:00:53 UTC
Also I see it's as a reasons for reports as usual ide actions are slow for uses, it's just an occasion it's reported against persistence wizard. In this case persistence issue may not be P2 even it's better to move possible problematic code out of edt. Will fix in 8.0 only if it will not take much time.
Comment 6 Sergey Petrov 2013-12-06 12:39:04 UTC
7.2.1 may not be valid any more
7.4 snapshot is a bit different, http://hg.netbeans.org/web-main/rev/939b8584f981
Comment 7 Quality Engineering 2013-12-07 04:25:04 UTC
Integrated into 'main-silver', will be available in build *201312070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/939b8584f981
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #238731 fix latest snapshot, combobox is initialized out of edt now
Comment 8 Sergey Petrov 2014-01-24 12:21:13 UTC
*** Bug 240900 has been marked as a duplicate of this bug. ***