Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
9.0
-
None
-
None
-
D:\NetBeans\netbeans-donation-review\nbbuild\netbeans\bin\netbeans64.exe --jdkhome "C:\Program Files\Java\jdk-9"
Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn)
Java: 9-ea; Java HotSpot(TM) 64-Bit Server VM 9-ea+173
Runtime: Java(TM) SE Runtime Environment 9-ea+173
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)D:\NetBeans\netbeans-donation-review\nbbuild\netbeans\bin\netbeans.exe --jdkhome "C:\Program Files (x86)\Java\jdk-9"
Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn)
Java: 9-ea; Java HotSpot(TM) Server VM 9-ea+174
Runtime: Java(TM) SE Runtime Environment 9-ea+174
System: Windows 10 version 10.0 running on x86; Cp1252; en_US (nb)E:\Workspace\netbeans-donation-review\nbbuild\netbeans\bin\netbeans64.exe --jdkhome "C:\Program Files\Java\jdk-9"
Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn)
Java: 9-ea; Java HotSpot(TM) 64-Bit Server VM 9-ea+174
Runtime: Java(TM) SE Runtime Environment 9-ea+174
System: Windows Server 2012 R2 version 6.3 running on amd64; Cp1252; en_US (nb)E:\Workspace\netbeans-donation-review\nbbuild\netbeans\bin\netbeans.exe --jdkhome "C:\Program Files (x86)\Java\jdk-9"
Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn)
Java: 9; Java HotSpot(TM) Server VM 9+175
Runtime: Java(TM) SE Runtime Environment 9+175
System: Windows Server 2012 R2 version 6.3 running on x86; Cp1252; en_US (nb)D:\NetBeans\netbeans-donation-review\nbbuild\netbeans\bin\netbeans64.exe --jdkhome "C:\Program Files\Java\jdk-9" Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn) Java: 9-ea; Java HotSpot(TM) 64-Bit Server VM 9-ea+173 Runtime: Java(TM) SE Runtime Environment 9-ea+173 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) D:\NetBeans\netbeans-donation-review\nbbuild\netbeans\bin\netbeans.exe --jdkhome "C:\Program Files (x86)\Java\jdk-9" Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn) Java: 9-ea; Java HotSpot(TM) Server VM 9-ea+174 Runtime: Java(TM) SE Runtime Environment 9-ea+174 System: Windows 10 version 10.0 running on x86; Cp1252; en_US (nb) E:\Workspace\netbeans-donation-review\nbbuild\netbeans\bin\netbeans64.exe --jdkhome "C:\Program Files\Java\jdk-9" Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn) Java: 9-ea; Java HotSpot(TM) 64-Bit Server VM 9-ea+174 Runtime: Java(TM) SE Runtime Environment 9-ea+174 System: Windows Server 2012 R2 version 6.3 running on amd64; Cp1252; en_US (nb) E:\Workspace\netbeans-donation-review\nbbuild\netbeans\bin\netbeans.exe --jdkhome "C:\Program Files (x86)\Java\jdk-9" Product Version: NetBeans IDE Dev (Build 20170614-unknown-revn) Java: 9; Java HotSpot(TM) Server VM 9+175 Runtime: Java(TM) SE Runtime Environment 9+175 System: Windows Server 2012 R2 version 6.3 running on x86; Cp1252; en_US (nb)
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