[ 
https://issues.apache.org/jira/browse/NETBEANS-6007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric D. updated NETBEANS-6007:
------------------------------
    Summary: NetBeans autoupdate really slow when installing a custom NBM with 
12000+ files!  (was: NetBeans autoupdate realy slow when installing a custom 
NBM with 12000+ files!)

> NetBeans autoupdate really slow when installing a custom NBM with 12000+ 
> files!
> -------------------------------------------------------------------------------
>
>                 Key: NETBEANS-6007
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6007
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Autoupdate
>    Affects Versions: 8.2, 12.4
>            Reporter: Eric D.
>            Priority: Minor
>              Labels: performance
>         Attachments: autoupdate-thread-dump.txt
>
>
> I created an NBM file which packages a custom library with a lot of .h 
> include files and other ones for my RCP app and, when I want to install it 
> through Tools / Plugins, it takes a lot of time to finish the install!
> I inspected thread dumps of the app with visualvm (see attachement) and saw 
> it long time passed into InstalledSupportImpl.touch() method.
> Looking at source code and Git hisory, I found a commit from Jaroslav Tulach 
> in 2010 titled "More defensive touch" with a call to 
> InstallSupportImpl.class.wait(30). In effect, it will wait 30ms per file in 
> NBM! In the case of my NBM which will install 12000 files, it is spending 
> 360s (6 min!) doing almost nothing. Is it really necessary? I don't 
> understand the logic behind the wait and found no bug related to the commit 
> in NetBeans BZ archive.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to