You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
STS freezes during code autocomplete when running under OpenJDK 11 and Windows #140
(Preconditions - Windows 7 with latest patches installed and running; Oracle's Open JDK 11 downloaded and on local file system; Oracle's JDK 1.8.0_191 downloaded and on local file system)
In SpringToolSuite4.ini, enter line -vm <path-to-Oracle-OpenJDK11.0.1> or set as Windows' default JDK via PATH and JAVA_HOME environment variables.
Execute SpringToolSuite4.exe
Add another JRE to STS
a. Click Window->Preferences
b. Click Java->Installed JREs
c. Click Add...
d. Click Standard VM
e. Click Next>
f. Click Directory and navigate to bin directory of Oracle's JDK 1.8.0_191
g. Click Finish
h. Click Apply and Close
Create a Java project
a. Click File->New->JavaProject
b. Click "Use a project specific JRE"
c. Select the jdk1.8.0_191 added in step 3.
c. Click Finish
Create a Class
a. Right click on project
b. Click New->Class
c. Enter a class name
d. Click Finish
In the editor, type in the full package name of a class.
Use backspace and change to a different.
Repeat step 7 several times.
At step 7, system starts to lag and eventually freezes. Note: Issue occurs more rapidly if Java 11 Support for Eclipse 2018-09 is installed. Consistently reproduced on Windows 7. Unable to reproduce on a Mac High Sierra.
changed the title [-]STS freezes during code autocomplete when running under OpenJDK 11 and Windows 7[/-][+]STS freezes during code autocomplete when running under OpenJDK 11 and Windows[/+]on Nov 15, 2018
Step 6: In the editor, type in the full package name of a class.
Type it where exactly? If this bug has something to do with content assist processing, which seems likely, I'd expect it really matter where exactly in the file we are typing because this sort of functionality is very context sensitive.
Can't reproduce this on Windows 10 either. I followed instructions to the letter.
For the part where we type package name repeatedly I tried both in the place where we declare package, as well as in the class body. I didn't experience any ui freezes.
If you can please add some details / clariication around exactly what I'm supposed to do for steps 7 and 8, that would be nice. For example:
where exactly are we typing
are we typing existing package names, or new package names, or just whatever.
are we keeping content assist active while typing.
are we keeping content assist active while backspacing.
are we typing every letter or using content assist to complete (parts of) the package names
I did try a bit with different variations like that but no freezes / slowdowns where observed.
Still, knowing exactly what it is you do might help and I could give it another.
Another question. Have you tried reproducing this on a Vanilla Eclipse 4.9? It seems likely this not specifically an STS bug. By trying it with a plain Eclipse this could be confirmed. If I could reproduce it myself, I would try Vanilla Eclipse myself, but since I am not yet able to reproduce it at all...
This occurs in the editor view. For example, suppose I have this already in
a file, Person.java.:
public class Person {
}
If I open in the editor and start to type inside the class such as "com.su"
as follows:
public class Person {
com.su
}
Note: You must change the text a few times say from com.su to
org.something.somethingelse and then you should see the lag and eventually
cause the application to freeze.
Thanks for looking into this. To answer your questions:
- where exactly are we typing. Inside a class. See previous response.
- are we typing existing package names, or new package names, or just
whatever. Seems to be whatever.
- are we keeping content assist active while typing. Yes.
- are we keeping content assist active while backspacing. Yes
- are we typing every letter or using content assist to complete (parts
of) the package names I was able to reproduce with both. I will take some
video and post.
On Fri, Nov 23, 2018 at 3:55 PM Kris De Volder ***@***.***> wrote:
Can't reproduce this on Windows 10 either. I followed instructions to the
letter.
For the part where we type package name repeatedly I tried both in the
place where we declare package, as well as in the class body. I didn't
experience any ui freezes.
If you can please add some details / clariication around exactly what I'm
supposed to do for steps 7 and 8, that would be nice. For example:
- where exactly are we typing
- are we typing existing package names, or new package names, or just
whatever.
- are we keeping content assist active while typing.
- are we keeping content assist active while backspacing.
- are we typing every letter or using content assist to complete
(parts of) the package names
I did try a bit with different variations like that but no freezes /
slowdowns where observed.
Still, knowing exactly what it is you do might help and I could give it
another.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUselN1j_ElK0iCRm8n4NvmJ6F9R6Idks5uyG67gaJpZM4YiHCZ>
.
I worked on the performance issues that your thread dumps seemed to reveal and was able to make some progress, I think. I removed a lot of duplicate internal calculations from the mechanism that updates the live hovers every 5 sec, so using these fixes should show up in lower CPU consumption on your end.
@mohyeid I would be quite interested to learn more about the slowness that you observe when running the Spring Tools 4 in your Eclipse IDE together with your workspace. Would you be interested in a bit of collaboration to investigate this issue? That would be awesome.
First thing to try would be a nightly distribution of STS 4.2.2 (based on Eclipse 2019-03, 4.11) to see if that behaves differently when working with your workspace. We worked quite a bit on performance and memory footprint over the last couple of releases and CI builds, so depending on the version that you used there might be a noticeable difference.
So the first question would be: does using the latest CI build still slows down your workflow with the IDE? If so, in which situations? If you have a reproducible setting where the slowness occurs, would it be possible for your to take a thread dump of the JVM? Or look at the processes (the IDE and the language server) with jconsole to get a rough impression about what is going on?
You could also enable the log output for the Spring Boot language server (in the preferences) to see if there is anything strange going on on the language server side. Once enabled, it will open a console area that shows all the internal logs of the language server process.
Correctly, I had god same terrible on my Ubuntu19.4 vm, currently I am working on Spring Boot project with beginner, so I don't know what exactly happend around my setting.
My ubuntu spec like this:
Cpu: 2.4G(4)
Ram: 6GB
HardDisk: 160GB
I really want to know what exactly wrong on my steps
@panamacheng Please provide more details about what you are trying to do and what doesn't work. This issue in general might be specifically related to running on Windows, but you are running on top of Ubuntu. So please provide detailed steps how to reproduce the issue, maybe attach a sample project, and we will for sure find out what is going wrong here.
Activity
[-]STS freezes during code autocomplete when running under OpenJDK 11 and Windows 7[/-][+]STS freezes during code autocomplete when running under OpenJDK 11 and Windows[/+]logicg8 commentedon Nov 15, 2018
Also reproduced on Windows 10
kdvolder commentedon Nov 23, 2018
Type it where exactly? If this bug has something to do with content assist processing, which seems likely, I'd expect it really matter where exactly in the file we are typing because this sort of functionality is very context sensitive.
kdvolder commentedon Nov 23, 2018
Couldn't reproduce in Linux. Now switching to Windows 10 VM.
kdvolder commentedon Nov 23, 2018
Can't reproduce this on Windows 10 either. I followed instructions to the letter.
For the part where we type package name repeatedly I tried both in the place where we declare package, as well as in the class body. I didn't experience any ui freezes.
If you can please add some details / clariication around exactly what I'm supposed to do for steps 7 and 8, that would be nice. For example:
I did try a bit with different variations like that but no freezes / slowdowns where observed.
Still, knowing exactly what it is you do might help and I could give it another.
kdvolder commentedon Nov 23, 2018
Another question. Have you tried reproducing this on a Vanilla Eclipse 4.9? It seems likely this not specifically an STS bug. By trying it with a plain Eclipse this could be confirmed. If I could reproduce it myself, I would try Vanilla Eclipse myself, but since I am not yet able to reproduce it at all...
logicg8 commentedon Nov 26, 2018
logicg8 commentedon Nov 26, 2018
logicg8 commentedon Nov 26, 2018
22 remaining items
martinlippert commentedon Feb 6, 2019
I worked on the performance issues that your thread dumps seemed to reveal and was able to make some progress, I think. I removed a lot of duplicate internal calculations from the mechanism that updates the live hovers every 5 sec, so using these fixes should show up in lower CPU consumption on your end.
It would be great if you could give it a shot to see if that lowers the CPU utilization on your end (and in your case) too. So if you have a moment, please download the latest CI builds for SZS 4.1.2 and Eclipse 4.10 from the nightly download page: http://dist.springsource.com/snapshot/STS4/nightly-distributions.html
There are builds for Eclipse 4.11 already, but I would recommend to use the one for Eclipse 4.10.
mohyeid commentedon May 6, 2019
This issue for me was because of STS plugin (Spring Tools 4) and once removed, all is good now.
BoykoAlex commentedon May 6, 2019
@mohyeid If you have a lot of projects in the workspace it might have been due to #282
mohyeid commentedon May 6, 2019
Yes, that might be the case. I have 11 projects and 4 of them were open, but they are kinda big in the size. Thanks for pointing the other issue out
martinlippert commentedon May 7, 2019
@mohyeid I would be quite interested to learn more about the slowness that you observe when running the Spring Tools 4 in your Eclipse IDE together with your workspace. Would you be interested in a bit of collaboration to investigate this issue? That would be awesome.
First thing to try would be a nightly distribution of STS 4.2.2 (based on Eclipse 2019-03, 4.11) to see if that behaves differently when working with your workspace. We worked quite a bit on performance and memory footprint over the last couple of releases and CI builds, so depending on the version that you used there might be a noticeable difference.
So the first question would be: does using the latest CI build still slows down your workflow with the IDE? If so, in which situations? If you have a reproducible setting where the slowness occurs, would it be possible for your to take a thread dump of the JVM? Or look at the processes (the IDE and the language server) with jconsole to get a rough impression about what is going on?
You could also enable the log output for the Spring Boot language server (in the preferences) to see if there is anything strange going on on the language server side. Once enabled, it will open a console area that shows all the internal logs of the language server process.
Would love to hear more details from you.
iSeanWeiDev commentedon Oct 8, 2019
Correctly, I had god same terrible on my Ubuntu19.4 vm, currently I am working on Spring Boot project with beginner, so I don't know what exactly happend around my setting.
My ubuntu spec like this:
Cpu: 2.4G(4)
Ram: 6GB
HardDisk: 160GB
I really want to know what exactly wrong on my steps
martinlippert commentedon Oct 29, 2019
@panamacheng Please provide more details about what you are trying to do and what doesn't work. This issue in general might be specifically related to running on Windows, but you are running on top of Ubuntu. So please provide detailed steps how to reproduce the issue, maybe attach a sample project, and we will for sure find out what is going wrong here.