LanguageTool memory limit reached

Since version 5.3 (at least I think so) the LanguageTool plugin for LibreOffice started showing the following error message: “LanguageTool memory limit reached. Switching to one paragraph mode. Some text-level rules will not work properly.”

I’m now on v5.5 and that behavior is still happening. My only observation is that it happens more often with documents containing over 100000 characters and/or heavy formatting.

I tired different options within the tool, tried also increasing memory cap in Java (AdoptOpenJDK) but I don’t have much experience with this. Anything else I can check or try? Thanks!

Anyone? That problem is pretty annoying as after that error message I have no clue which rules are working and which are not. :confused:

@Fred.Kruse Any idea?

!BUMP

I upgraded LibreOffice and LT extension, and now I have this annoying message too. How to fix this?

Could you please give some additional information: What versions of LT and LO did you use? What operating system? How many characters contains the document?
Could you please post the log file of the last crash?

Win 10 64bit, LO 7.4.3.2(x86), LanguageTool 5.9.1

Documents I work with are usually 300-400 pages: 300-400 thousands characters long.

Looks like I have found fix: LibreOffice Options/advanced/java starting parameters - adding “-XMX3072m” seems to solve the issue (yeah, 3072 is probably overkill).

Nope, even with -XMX3073 the warning is still there.

Any idea how to get rid of it, other then downgrading LT extension?

Did you mean “-Xmx3072m”? The number must be a multiple of 1024. m stands for MB.
-XMX3073 is definitely too small.
Please use LT 6.0 there was some work on memory handling.

I have the same problem for a couple of years. I’m using the extension LanguageTool 6.0 under Libre Office 7.5.3.2 (Windows 10 64bit). I cannot see any correlation between occurrence and size of document. It even happens with one-page documents.
I haven’t messed with Java parameters yet, since I don’t know what to use. What else can be done?

Could you please post the Log-File, after the message occurs?
The name of the Log-File is: LanguageTool.log
The path to the Log-File is:
\\user\<YourUserName>\AppData\Roaming\languagetool.org\LanguageTool\LibreOffice