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

XML Language Server keeps restarting when running out of memory #527

Closed
fbricon opened this issue Jun 25, 2021 · 4 comments · Fixed by #548
Closed

XML Language Server keeps restarting when running out of memory #527

fbricon opened this issue Jun 25, 2021 · 4 comments · Fixed by #548
Assignees
Labels
bug Something isn't working
Milestone

Comments

@fbricon
Copy link
Collaborator

fbricon commented Jun 25, 2021

Telemetry data tells us a few users (< 0.1%) have their XML Language Server restarting every minute. Since this is a slower rate than 5 times in less than 3 minutes, it doesn't bubble up to the user.
Still, this indicates a problem and I have no idea what can cause it. Until we find a solution, we need to get better information (from telemetry) to figure out what's causing this.

@fbricon fbricon added the bug Something isn't working label Jun 25, 2021
@fbricon
Copy link
Collaborator Author

fbricon commented Jun 25, 2021

So I managed to reproduce the issue by setting "xml.server.vmargs": "-Xmx8M" (down from the default -Xmx64M):

[Info  - 11:00:37 AM] Jun 25, 2021 11:00:37 org.eclipse.lemminx.XMLLanguageServer initialize()
Message: Initializing XML Language server
LemMinX Server info:
 - Version : 0.17.1-SNAPSHOT
 - Java : /Users/fbricon/.sdkman/candidates/java/16.0.1.hs-adpt
 - VM Version : 16.0.1
 - Git 36bab63 - [maven-release-plugin] prepare for next development iteration

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ForkJoinPool.commonPool-worker-19"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-4-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-3-thread-1"
[Info  - 11:00:47 AM] Connection to server got closed. Server will restart.
[Error - 11:00:47 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 11:00:47 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Info  - 11:00:47 AM] Jun 25, 2021 11:00:47 org.eclipse.lemminx.XMLLanguageServer initialize()
Message: Initializing XML Language server
LemMinX Server info:
 - Version : 0.17.1-SNAPSHOT
 - Java : /Users/fbricon/.sdkman/candidates/java/16.0.1.hs-adpt
 - VM Version : 16.0.1
 - Git 36bab63 - [maven-release-plugin] prepare for next development iteration

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ForkJoinPool.commonPool-worker-19"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-4-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-3-thread-1"
[Info  - 11:01:07 AM] Connection to server got closed. Server will restart.
[Error - 11:01:07 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Info  - 11:01:08 AM] Jun 25, 2021 11:01:08 org.eclipse.lemminx.XMLLanguageServer initialize()
Message: Initializing XML Language server
LemMinX Server info:
 - Version : 0.17.1-SNAPSHOT
 - Java : /Users/fbricon/.sdkman/candidates/java/16.0.1.hs-adpt
 - VM Version : 16.0.1
 - Git 36bab63 - [maven-release-plugin] prepare for next development iteration

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ForkJoinPool.commonPool-worker-19"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-4-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-3-thread-1"
[Info  - 11:01:18 AM] Connection to server got closed. Server will restart.
[Error - 11:01:18 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 11:01:18 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 11:01:18 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Info  - 11:01:18 AM] Jun 25, 2021 11:01:18 org.eclipse.lemminx.XMLLanguageServer initialize()
Message: Initializing XML Language server
LemMinX Server info:
 - Version : 0.17.1-SNAPSHOT
 - Java : /Users/fbricon/.sdkman/candidates/java/16.0.1.hs-adpt
 - VM Version : 16.0.1
 - Git 36bab63 - [maven-release-plugin] prepare for next development iteration
[Error - 11:02:23 AM] Jun 25, 2021 11:02:23 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:75)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:23 AM] Request textDocument/hover failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:75)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:24 AM] Jun 25, 2021 11:02:24 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:75)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:24 AM] Request textDocument/hover failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:75)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:56 AM] Jun 25, 2021 11:02:56 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:82)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:56 AM] Request textDocument/hover failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:82)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:57 AM] Jun 25, 2021 11:02:57 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:82)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:02:57 AM] Request textDocument/hover failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jsoup.nodes.Entities$EscapeMode
	at org.jsoup.nodes.Document$OutputSettings.<init>(Document.java:371)
	at org.jsoup.nodes.Document.<init>(Document.java:18)
	at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:29)
	at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42)
	at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:52)
	at org.jsoup.parser.Parser.parse(Parser.java:89)
	at org.jsoup.Jsoup.parse(Jsoup.java:31)
	at com.overzealous.remark.Remark.convert(Remark.java:304)
	at com.overzealous.remark.Remark.convert(Remark.java:291)
	at org.eclipse.lemminx.utils.MarkdownConverter.convert(MarkdownConverter.java:75)
	at org.eclipse.lemminx.utils.MarkupContentFactory.createMarkupContent(MarkupContentFactory.java:48)
	at org.eclipse.lemminx.extensions.contentmodel.utils.XMLGenerator.createMarkupContent(XMLGenerator.java:285)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelHoverParticipant.onTag(ContentModelHoverParticipant.java:61)
	at org.eclipse.lemminx.services.XMLHover.getTagHover(XMLHover.java:119)
	at org.eclipse.lemminx.services.XMLHover.doHover(XMLHover.java:82)
	at org.eclipse.lemminx.services.XMLLanguageService.doHover(XMLLanguageService.java:163)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$hover$2(XMLTextDocumentService.java:216)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1307)
	... 7 more

[Error - 11:03:02 AM] Jun 25, 2021 11:03:02 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.OutOfMemoryError: Java heap space
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Java heap space
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.OutOfMemoryError: Java heap space

[Error - 11:03:02 AM] Request textDocument/completion failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Java heap space
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1309)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1276)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.OutOfMemoryError: Java heap space


Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ForkJoinPool.commonPool-worker-23"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-4-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "process reaper"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-3-thread-1"
[Info  - 11:03:19 AM] Connection to server got closed. Server will restart.
[Error - 11:03:19 AM] Request textDocument/completion failed.
Error: Connection got disposed.
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:450784)
	at Object.dispose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338092)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:338305)
	at _.handleConnectionClosed (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:398711)
	at t (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:336394)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at Y (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:440042)
	at invoke (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:452398)
	at o.fire (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:453159)
	at g.fireClose (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:464615)
	at Socket.<anonymous> (/Users/fbricon/.vscode/extensions/redhat.vscode-xml-0.17.0/dist/extension.js:2:465400)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Info  - 11:03:19 AM] Jun 25, 2021 11:03:19 org.eclipse.lemminx.XMLLanguageServer initialize()
Message: Initializing XML Language server
LemMinX Server info:
 - Version : 0.17.1-SNAPSHOT
 - Java : /Users/fbricon/.sdkman/candidates/java/16.0.1.hs-adpt
 - VM Version : 16.0.1
 - Git 36bab63 - [maven-release-plugin] prepare for next development iteration

java.lang.OutOfMemoryError should be detected by vscode-xml and let users know about it, propose a fix (eg. increase heap by setting "xml.server.vmargs": "-Xmx128M")

@fbricon fbricon changed the title XML Language Server keeps restarting every minute XML Language Server keeps restarting when running out of memory Jun 25, 2021
@fbricon
Copy link
Collaborator Author

fbricon commented Jun 25, 2021

Some users send over 1400 restart events a day, every day.

@GitMensch
Copy link
Contributor

Thanks for opening this issue so I can just add to it. I do experience this as soon as I have one big XML file opened (with the default args I can reproduce this with a 30MB file). As the server is used for all opened XML files I can't use the plugin for any XML file until I find the one that's big and close it.

I suggest to:

  • show chrashes of the server to the XML Support output, possibly look for chrash logs on startup, copy those to the output then save somewhere "I've investigated all server logs until $timestamp"
  • possibly provide a command to inspect server logs - or have $timestamp as part of the user settings so it could be manually deleted to get the log shown in the XML Support pane again

Question: is the log-view and the actual OutOfMemoryBounds something that should be visible?

I've needed to increase the setting from the default to 256MB to show the following:

[Error - 12:53:53] Jun 29, 2021 12:53:52 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.OutOfMemoryError: GC overhead limit exceeded
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Request textDocument/codeAction failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Jun 29, 2021 12:53:53 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.OutOfMemoryError: GC overhead limit exceeded
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Request textDocument/codeLens failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Jun 29, 2021 12:53:53 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.OutOfMemoryError: GC overhead limit exceeded
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Request textDocument/foldingRange failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Jun 29, 2021 12:53:53 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.OutOfMemoryError: GC overhead limit exceeded
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Request textDocument/documentSymbol failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Jun 29, 2021 12:53:53 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError()
Message: Internal error: java.lang.OutOfMemoryError: GC overhead limit exceeded
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

[Error - 12:53:53] Request textDocument/documentLink failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.lemminx.dom.DOMNode.addChild(DOMNode.java:468)
	at org.eclipse.lemminx.dom.DOMParser.parse(DOMParser.java:389)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$new$0(XMLTextDocumentService.java:162)
	at org.eclipse.lemminx.XMLTextDocumentService$$Lambda$1/1854731462.apply(Unknown Source)
	at org.eclipse.lemminx.commons.ModelTextDocument.lambda$getModel$0(ModelTextDocument.java:66)
	at org.eclipse.lemminx.commons.ModelTextDocument$$Lambda$21/918174814.apply(Unknown Source)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

More suggestions:

  • check if it is possible to use a separate language server process for files that are bigger than N (single file<->server relation, server should be closed when the file is closed, of course)
  • suggested changes in VM args as noted above would be nice
  • a plain setting for the memory size would be good (defaulting to 64M) to allow it be adjusted without the need to manually enter the VM args

@rgrunber
Copy link
Member

If the client can detect the OOM, maybe we can have a prompt asking the user whether to restart with -Xmx increased by some amount. We discussed this in #489 (comment) . Maybe we can also report the stacktrace.

@datho7561 datho7561 self-assigned this Jul 7, 2021
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 13, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 15, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 19, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 19, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 19, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 19, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 19, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 19, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 26, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 28, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 28, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 28, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 28, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 29, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Jul 29, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes redhat-developer#527

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit that referenced this issue Aug 4, 2021
Add parameters to the java server to make lemminx crash
when it runs out of memory.
Detect when the java server shuts down due to running out of memory,
display a message to the user that this happened,
and don't attempt to restart the server.

Closes #527

Signed-off-by: David Thompson <[email protected]>
@datho7561 datho7561 added this to the 0.18.0 milestone Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants