Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6007

NetBeans autoupdate really slow when installing a custom NBM with 12000+ files!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.2, 12.4
    • None
    • platform - Autoupdate

    Description

      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 history, 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.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ED-Apache Eric D.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: