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

ltex-ls spawning too many forks/using too many threads #312

Open
acampove opened this issue Oct 7, 2024 · 0 comments
Open

ltex-ls spawning too many forks/using too many threads #312

acampove opened this issue Oct 7, 2024 · 0 comments
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label)

Comments

@acampove
Copy link

acampove commented Oct 7, 2024

Describe the bug
When I check in htop I see that ltex-ls is spawning many threads, about 100. It seems that this plugin is not told to limit itself to 4.

Steps to reproduce
Open a Markdown file and let this plugin start spawning threads in a machine with many cores. Then go to htop and filter using F4 and type ltex-ls. Then type H (capital H) to show the threads.

Expected behavior
the plugin should take 2 or at most 4 threads

Sample document
If the bug occurs for a specific document (e.g. LaTeX), please paste it here. If your document is very long or confidential, please create and attach a smaller example for which the bug still occurs so that we can reproduce it.

REPLACE_THIS_WITH_SAMPLE_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.

REPLACE_THIS_WITH_LTEX_CONFIGURATION

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

REPLACE_THIS_WITH_LTEX_LS_LOG

Version information
List here the version information of the relevant software.

  • Operating system: Linux (which distribution/version), macOS xx.xx, or Windows xx
  • ltex-ls: x.xx
  • Java: x.xx (usually obtained with java -version)

Additional context/information
You can add any other context or information about the problem here.

@acampove acampove added 1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label) labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-bug 🐛 Issue type: Bug report (something isn't working as expected) 2-unconfirmed Issue status: Bug that needs to be reproduced (all new bugs have this label)
Projects
None yet
Development

No branches or pull requests

1 participant