valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
764 stars 33 forks source link

High memory usage #302

Open YodaEmbedding opened 5 months ago

YodaEmbedding commented 5 months ago

Describe the bug Memory usage nominally between 0.6 GB -- 1.4 GB.

Steps to reproduce

  1. Open a markdown document in nvim. This starts ltex-ls with 0.6 GB -- 0.9 GB RAM usage.
  2. To increase it further to 1.4 GB, open a few more documents.

EDIT: Even more minimal is to just start ltex-ls on the CLI:

ltex-ls

Expected behavior Significantly less memory usage. Something like 0.1 GB JVM + 0.2 GB app + 0.01 GB / document.

LTeX configuration Please paste all configuration settings starting with ltex. from your settings.json. You can help us by temporarily removing some irrelevant settings from your settings.json and see if the bug still occurs.

```lua Defaults. ```

LTeX LS log Paste the log (output) of LTeX LS here:

``` REPLACE_THIS_WITH_LTEX_LS_LOG ```

Version information

latexalpha commented 2 months ago

I encountered the same problem, memory consumed by OpenJDK Platform binary increases dramatically between 0.8 - 1.4 GB. While I killed the OpenJDK Platform binary in Windows Task Manager, the Client ltex quit with code 1, then the memory usage drops.