Severe IDE slowdowns due to console contents #419
Replies: 8 comments 12 replies
-
Do you have an idea what the content of the console would be? Is it LSP protocol-level messages being logged by LSP4E as initially intended for debug or is it the Language Server being actually verbose and sending tons of It it's protocol-level messages, I personally have stopped using them long ago because they got to big to be processed in the console. So if it's the cause and no other committer uses it; we may just remove the option. |
Beta Was this translation helpful? Give feedback.
-
Later this morning, I will re-enable the lsp4e console and see what I see. Hopefully it won't cause Eclipse to hang again. The one thing I DO remember from viewing the lsp4e log entries is an occasional "Invalid location" exception. |
Beta Was this translation helpful? Give feedback.
-
I enabled the lsp4e logging in 2022-12, and I'm attaching the content for about an hour's worth. I've gzipped it because the file is pretty big. If it matters, I didn't see any "Invalid location" exceptions in this log. |
Beta Was this translation helpful? Give feedback.
-
I did not notice any obvious issues with rendering the text in that log, at least in Emacs. I found it curious that there are often a few blank lines between log entries, and I do see that honkin' big one, but Emacs has no trouble rendering it. I also find it curious that I now have set a limit on the length of the console buffer at 200k, but that doesn't appear to apply to this. Clearly, this log is more than 200k. I also note that I haven't seen the total hang for a while now. |
Beta Was this translation helpful? Give feedback.
-
It is presently off. I tried turning it on, and was briefly freaked when it took a few seconds for the hourglass to go away. I turned it back off. I'm just guessing, but it feels like the hang isn't due to a single factor, but a combination of factors. So does the "Console buffer size" field in the "Console" page of preferences not apply to the lsp4e console? I don't think I've seen the hang since I set the limit of 200k, but my lsp4e console is much more than 200k. However, I wonder about the Maven console. If I didn't have a limit set there, the content in the Maven console would continue to grow, and I have quite a few Maven projects open. This is obviously offtopic for this repo, but I'm just trying to get the overall problem solved. |
Beta Was this translation helpful? Give feedback.
-
We use it for testing purposes, we don plan to use it on production. Removing the log to console feature would be fine for, as one can open the file in an external editor, but I actually find it handy, that one can have it on the console, always for debugging purposes. We could maybe remove the UI dialog to activate it, but keep the option so that it can be set with plugin properties. |
Beta Was this translation helpful? Give feedback.
-
Ok, well, I had enabled lsp4e logging because I was concerned about the perf problems I was seeing with lsp4e, to see if I could see any information that might be useful to you. Just now, I disabled lsp4e logging, restarted, and now my laptop's cpu has been running flat out for several minutes, with the LSP process the top of the list, and Eclipse doing nothing. So, I killed the LSP process, and then it started back up again, using max cpu again. |
Beta Was this translation helpful? Give feedback.
-
I then reenabled lsp4e logging and restarted, and now the lsp process is barely using cpu. Talk about side effects. |
Beta Was this translation helpful? Give feedback.
-
We had a report on Eclipse Platform (see eclipse-platform/eclipse.platform.swt#539) that the IDE was hanging at startup. The cause appeared to be something about the content of the console, probably the LSP4E one.
In diagnosing the problem the OP reported that the console had 90k lines of output. As a possible workaround OP has now disabled LSP4E console and limited console output and reports no more hangs for the last day or two.
Does anyone know if this is expected behaviour, do we already have knowledge about the performance in this area?
Has anyone else seen hanging related to the LSP4E console, in particular on Windows with captured stack traces that look like this?
(full stack available in eclipse-platform/eclipse.platform.swt#539)
Beta Was this translation helpful? Give feedback.
All reactions