Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% CPU load #387

Closed
antirius opened this issue Dec 23, 2020 · 9 comments
Closed

100% CPU load #387

antirius opened this issue Dec 23, 2020 · 9 comments

Comments

@antirius
Copy link

100% CPU utilization in large projects .. In which there is no XML!

@antirius
Copy link
Author

MacOS

@angelozerr
Copy link
Contributor

angelozerr commented Dec 23, 2020

That's very strange because the XML Language server is started only when a XML file is opened. Could you share your project or provide a similar project which causes your issue. Thanks.

@antirius
Copy link
Author

antirius commented Dec 23, 2020

Apparently the problem is that an xml file was opened in one of the windows. At the same time, several copies of VS Code were launched (4 copies, each containing 3-15 project directories).
Does he start scanning everything not only in the current project?
img-2020-12-23-18-13-14

It seems to start scanning all these directories

@angelozerr
Copy link
Contributor

Could you share your project please?

@antirius
Copy link
Author

Unfortunately not. The only thing I can say is that there are a lot of files. Plus these are nodejs projects, and there are even more dependencies in node_modules.

@angelozerr
Copy link
Contributor

angelozerr commented Dec 23, 2020

It's very hard to help you without a project which causes your issue.

Could you add in your settings.json add "xml.trace.server": "verbose" and share the XML Support Output:

image

when your issue will come back.

@antirius
Copy link
Author

To understand what is slowing down, I had to kill java (delete from disk), and then the XML extension error got out)
Next time I install it, I will definitely try the tracing and drop the log, thanks!)

@rgrunber
Copy link
Member

rgrunber commented Jul 20, 2022

Is this still reproducible in the latest vscode-xml ?

The 100% cpu load seems similar to eclipse-lemminx/lemminx#1175 . It happened when xml.validation.enabled was set to false. In addition, we have made a lot of performance improvements in the 0.21.0 release

@rgrunber
Copy link
Member

Closing this issue as I suspect it was fixed some time ago. Feel free to re-open if it persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants