Skip to content

Commit

Permalink
fix: limit LS console text buffer to prevent OOM (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghentschke authored Feb 1, 2025
1 parent d3e48ff commit c99624b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(80_000, 800_000); // limit text buffer size to prevent OOM
conMan.addConsoles(new IConsole[] { myConsole });
return myConsole;
}
Expand Down

0 comments on commit c99624b

Please sign in to comment.