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

Background scanning spends significant time in o.n.m.j.mx.project.SuiteFileOwnerQueryImpl#getOwner

    XMLWordPrintableJSON

Details

    Description

      I opened an angular project into an IDE build from recent master. I observed, that a very (> 20 minutes) long background scanning times could be observed. I first used visual VM and then the netbeans internal profiler to try to narrow it down.

      Profile

      I'll attach two self profiles, both show the same picture, so I'll concentrate on sample2.npss:

      There are 9 entries in the self profile, that show CPU times > 190s. From these 8 are waiting in native code and thus false positives:

      • ReferenceHandler
      • FileSystemWatchService
      • process reaper (3x)
      • StreamTerm.Output (2x)
      • pool-5-thread-1 (From the trace LSP integration)

      The one trace, that is connected to the observed scanning and is in java code is RepositoryUpdater.worker. Breaking this down shows, that, although the forward calls split into two branches, both hit:

      org.netbeans.modules.java.mx.project.SuiteFileOwnerQueryImpl#getOwner

      That method is responsible for 178s CPU time. No other FileOwnerQueryImpl shows up in the trace, and thus this leads me to the conclusion, that this is fishy.

       

      Attachments

        1. sample1.npss
          1.66 MB
          Matthias Bläsing
        2. sample2.npss
          3.13 MB
          Matthias Bläsing

        Issue Links

          Activity

            People

              matthiasblaesing Matthias Bläsing
              matthiasblaesing Matthias Bläsing
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m