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

Application extremely slow under debugger, then freezes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • debugger - Java
    • None
    • Windows 10 x64 (1709), JDK 10.0.2, Core i7 6700K, 16 GB RAM

    Description

      I have a rather large Java project with over 600 source files. It is a console application, no GUI code. At startup it loads a lot of data (among other things it memory-maps some files that are around ~500 MB). When left unconstrained, it uses around 1.1 GB of memory once it is done, but it also works fine with -Xmx768M. When not running under a debugger, it takes around 1 minute to complete loading.

      When launching it using NetBeans' debugger, however, it never completes. It will load for around 5 minutes (at which point it still isn't even half done..), then CPU usage for the process goes to 0% and netbeans64 sits at 12.5% (seems like a single thread running a spin loop or so). I use the current release version of NetBeans 9 running under JDK 10.0.2.

      Unfortunately I cannot disclose much more about the application's nature. The parts that seem to be especially slowed down under the debugger involve a lot of Nashorn activity. No breakpoints or watches are being used. The same thing happens when using JDK 8 as platform for the application. I also found that if I disable the parts that use Nashorn it does not freeze anymore in the subsequent loading steps.

      When I was still using NetBeans 8.2 with JDK 8, it was fine. Debugging was only marginally slower than launching it without a debugger.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Hendi48 Hendi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: