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

NetBeans is unusably slow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 8.2, 10.0, 11.0
    • 11.2
    • projects - Gradle
    • Ubuntu 18.10
      Linux 4.18.0
      12 core Xeon E-2176M with 64Gb RAM
      -Xmx2536m (2.5Gb for NB, of which it uses about 1.7G)
      NetBeans 10vc2, 10vc5, 8.2
      JDK 11.0.1
      JDK 1.8
      G1GC, CMS GC, Serial GC

    Description

      I used to use NetBeans 8 on JDK8, it was tolerable, but slow.

      Now I have a new laptop, I've tried nb8, nb10 on jdk8, jdk11, with g1gc, cmsgc, other gc. They are all UNUSABLY slow. By which I mean, it takes over a minute just to open a file.

      Mostly this is because things are waiting for things waiting for very inefficiently implemnted file I/O, editor parsing, or things like that. I've watched a 12-core Xeon chip spend over 4 hours just attempting to handle the Active Reference Queue Daemon thread.

      The slowdown is somewhat incremental - I can escape it as long as I'm happy to restart NetBeans every hour or so (which I'm not happy to do).

      Attached a stack dump to get you started, this took over a minute to open a 284-line Java file from idle.

      Please feel free to ask all the obvious questions, although I'm fairly sure all the obvious things have been done. Mostly, I've got GC down to a negligible amount.

      If there's one or more features of NetBeans I can disable to get acceptable behaviour while still being able to realistically edit Java code, please tell me and I will disable them because I am at the end of my rope after using (and developing for) NetBeans for nearly 10 years. If I can get IntelliJ to load a Java/Gradle project neatly before this gets fixed, I'm gone.

      Attachments

        1. git-branch-switch.npss
          6.43 MB
          Shevek
        2. org-netbeans-modules-masterfs-linux.xml
          0.5 kB
          Laszlo Kishalmi
        3. image-2019-06-13-17-35-18-309.png
          33 kB
          Laszlo Kishalmi
        4. restart-netbeans-and-open-file-01.npss
          3.97 MB
          Shevek
        5. image-2019-06-12-15-33-06-715.png
          104 kB
          Laszlo Kishalmi
        6. netbeans-startup-slow.npss
          5.69 MB
          Shevek
        7. netbeans-slow-01.npss
          579 kB
          Shevek
        8. netbeans-slow-00.npss
          1.31 MB
          Shevek
        9. nb-11-slow-hotspots.png
          724 kB
          Shevek
        10. netbeans-10vc5-jdk8-hang-progressutils.txt.tdump
          34 kB
          Shevek
        11. netbeans-10vc5-jdk8-hang-gototype.txt.tdump
          42 kB
          Shevek
        12. netbeans-10vc5-jdk8-hang.txt.tdump
          44 kB
          Shevek
        13. open-file-slow-03.txt.tdump
          34 kB
          Shevek
        14. open-file-slow-02.txt.tdump
          34 kB
          Shevek
        15. open-file-slow-01.txt.tdump
          33 kB
          Shevek
        16. slow-stack-00.txt
          40 kB
          Shevek

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              arren Shevek
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: