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
Slow startup when using language_tool_python in the test python setup #862
Comments
That is weird... On my system it only starts two Java processes with the LanguageTool server. I just thought one of it is a backup in case of a crash or to reduce latency but starting 34 processes shouldn't happen. The problem is that this behavior is part of the Python API for LanguageTool. So this issue should probably be forwarded to the API: https://github.com/jxmorris12/language_tool_python Otherwise it could be a problem in Python itself. Calling the helper function |
If I start it from the system install (System python 3.8.8) I only have 2 servers too, but if I use the test environment (Python 3.6.7) setup like in the Also, with a breakpoint all the |
Thanks for the hint about @TheJackiMonster are you fixing it now? Because I can do it now that I know what's causing it. |
It should be fixed now. It only starts one Java process and changes language of one instance. Edit: Please check if it's still causing issues before closing the issue. ^^' |
I still have a lot of logs for:
But now it's fast and I can see that the server is started only once, thanks for the fix. |
Yes, I also have a lot of logged messages from OpenJDK. I'm still not sure if that's an issue of the Python API (maybe starting a lot of processes in short delays for example) or if that's an issue of OpenJDK (logging these lines for each thread in the process or similar). ^^' Maybe this will change in the future with newer releases. |
I'm using Manuskript in my development python setup and I have a strange bug with the LanguageTool library. It's taking a really long time to start and I have a strange log.
The environment is setup like described in
package/prepare_linux.sh
with the extrapip install language_tool_python
to have a spellchecker.For the moment I have no idea how to fix this, so any help is welcome.
Here's my startup log:
Running it in debug with VSCode I see that I have a lot of processes:
Also when checking netstat that I have a lot of languageTool servers running:
The text was updated successfully, but these errors were encountered: