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

limit LS console text buffer to prevent OOM #1205

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

ghentschke
Copy link
Contributor

No description provided.

@@ -286,6 +286,7 @@ private MessageConsole findConsole() {
}
// no console found, so create a new one
final var myConsole = new MessageConsole(Messages.LSConsoleName, null);
myConsole.setWaterMarks(80000, 800000); // limit text buffer size to prevent OOM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use thousand separators for better readability?

@ghentschke ghentschke requested a review from sebthom February 1, 2025 20:01
@sebthom sebthom merged commit c99624b into eclipse-lsp4e:main Feb 1, 2025
6 checks passed
@ghentschke ghentschke deleted the limit-text-buffer-ls-console branch February 3, 2025 06:35
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

Successfully merging this pull request may close these issues.

2 participants