Back to LanguageTool Homepage - Privacy - Imprint

How is the memory usage cleaned

Hi there,
using languagetool server is consuming a lot of memory all the time, although no one is requesting language tool.
Is there a way to trigger some how a garbage collection, so that not needed dictionaries / data etc. is removed from memory?
Background: Using languagetool as a separate node in a dynamic PaaS environment will be reasonable cost factor without such a memory control.
Are there any recommended up-to-date maximum memory usage settings? Currently languagetool is consuming up to 9GB RAM.

Best regards
Thomas Lauria

I suggest you try starting Java with -Xmx2000M or similar, to see if that’s enough for your use case. It depends on the number of languages, text length, number of parallel requests etc. Unfortunately, I can’t provide a formula that calculates the required memory.