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

IDE Freezes when reopening the Java Platform Shell more than 2 times.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 9.0
    • None
    • java - JShell
    • None

    Description

      Hi,

      There seems to be a memory leak when reopening the JShell using the Menu: Tools > Open Java Platform Shell 2 or more times.

      Steps to reproduce:

      • Windows 10 Pro x64
      • Windows Server 2012 R2 x64

      1. Open NetBeans x64 or x86.
      E:\Workspace\netbeans-donation-review\nbbuild\netbeans\bin\netbeans64.exe --jdkhome "C:\Program Files\Java\jdk-9"
      E:\Workspace\netbeans-donation-review\nbbuild\netbeans\bin\netbeans.exe --jdkhome "C:\Program Files (x86)\Java\jdk-9"
      D:\NetBeans\netbeans-donation-review\nbbuild\netbeans\bin\netbeans64.exe --jdkhome "C:\Program Files\Java\jdk-9"
      D:\NetBeans\netbeans-donation-review\nbbuild\netbeans\bin\netbeans.exe --jdkhome "C:\Program Files (x86)\Java\jdk-9"

      2. Click on Tools > Open Java Platform Shell
      3. Immediately after, a new document sheet/tab is opened and a progress animation is displayed.
      Text: "Loading and initializing Java Shell. Please wait..."
      During this time everything in the IDE is responsive and after few seconds Java Shell loads.

      System Information:
      Java version: 9-ea+174
      Virtual Machine: Java HotSpot(TM) 64-Bit Server VM 9-ea+174
      Classpath:
      E
      \Workspace\netbeans-donation-review\nbbuild\netbeans\java\modules\ext\nb-mod-jshell-probe.jar

      [1]->
      4. Close the Java Shell document sheet/tab.
      5. Click again on Tools > Open Java Platform Shell.
      6. Close the Java Shell document sheet/tab.
      7. Click again on Tools > Open Java Platform Shell.
      8. ERROR:
      The IDE becomes unresponsive for ~7 seconds, then a new document sheet/tab is opened with the progress animation displayed.
      Text: "Loading and initializing Java Shell. Please wait..."
      9. A new IDE notification is added to the notification list:
      Text: "Slowness detected. Was it a problem?"
      Priority: SILENT Category: Warning
      Not responsive for 7s. Do you want to report it?
      10. Closing and re-opening Java Shell subsequent times will freeze the IDE for more and more seconds.

      Notification: Warnings received:
      8. Slowness detected. Was it a problem? 54s
      7. Slowness detected. Was it a problem? 45s
      6. Slowness detected. Was it a problem? 38s
      5. Slowness detected. Was it a problem? 11s
      4. Slowness detected. Was it a problem? 9s
      3. Slowness detected. Was it a problem? 4s
      2. No issue.
      1. No issue.

      11. Restart the IDE and open Java Shell Platform again.
      The Java Shell sheet/tab will load smoothly (the first 2 times), then it will happen again.

      Best Regards,
      Carlos QT

      Attachments

        Activity

          People

            Unassigned Unassigned
            carlos_qt Carlos Quintanilla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: