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!
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?
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).
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