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

Why are you saying that vscode-xml from Red Hat uses more system resources? #5

Open
angelozerr opened this issue Feb 12, 2021 · 2 comments

Comments

@angelozerr
Copy link

In your README, you say:

The second option, XML Language Support by Red Hat, supports XML schema and catalogs, which you can use to associate the TEI namespace with a schema once and for all. On the downside, it uses more system resources as it starts a background Java process.

Have you some benchmark or some XML files samples which cause this problem?

Please note that vscode-xml 0.15.0 doesn't require Java. Could you give us feedback if you have the same problem with use of more system resources with binary support? Thanks for your feedback!

@wolfgangmm
Copy link
Member

Thanks for your feedback! I now see there's a binary version mentioned, but having 0.15.0 installed, I can still see a java process running on my machine:

501 57464 57364   0 Do12pm  ??         0:55.15 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -noverify -Xmx64M -cp /Users/wolfgang/.vscode/extensions/redhat.vscode-xml-0.15.0/server/org.eclipse.lemminx-0.15.0-uber.jar org.eclipse.lemminx.XMLServerLauncher

Do I need to change anything to get the binary version? I'm on macOS 11.2 and had earlier versions of vscode-xml installed before, so maybe there's a configuration setting to be changed?

As I often have multiple workspaces opened at the same time, I saw a number of those java processes started in the background and I experienced a recognizable slow down in editing experience over time (several days). But I'm happy to correct the readme if this is not or no longer the case. The communities I work with are certainly very happy about the XML validation provided by vscode-xml.

One additional remark: it appears to me that once I configure a catalog.xml, this will overrule a binding via <?xml-model?> in the document. Is this true? If yes, it would be preferable if the local <?xml-model?> would take precedence. We quite often work with documents in the same namespace, which nevertheless sometimes require a different schema.

@angelozerr
Copy link
Author

angelozerr commented Feb 12, 2021

Do I need to change anything to get the binary version?

Please read https://github.com/redhat-developer/vscode-xml/blob/master/docs/Preferences.md#server-binary-mode

As I often have multiple workspaces opened at the same time, I saw a number of those java processes started in the background and I experienced a recognizable slow down in editing experience over time (several days).

could you create an issue in vscode-xml issues please by explaining in detail your usecase.

One additional remark: it appears to me that once I configure a catalog.xml, this will overrule a binding via in the document. Is this true? If yes, it would be preferable if the local would take precedence. We quite often work with documents in the same namespace, which nevertheless sometimes require a different schema.

please create an another issue for that

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

No branches or pull requests

2 participants