When checking documents upwards of 1 MB, users may occasionally encounter "fatal exception" or "out of memory" errors from the server. These errors occur when the Java Virtual Machine is unable to request more memory from the operating system, thus causing the server to run out of processing capacity.
When this happens, you can allocate more memory to the language server. However, if you are using all available memory, you might have to look at upgrading your hardware.
A number of factors in a document determine the processing workload of the server:
|The amount of checked text|
The checked text is the raw text sent to the server after XML tags have been stripped out. A document with a large file size can have a high proportion of XML code, meaning that the size of the raw text sent to the server is actually quite small in comparison to the overall file size.
Conversely, if a document contains large blocks of text and minimal XML code, it could take longer to process despite a smaller file size.
|The number of issues highlighted in the document|
A significant part of the workload for the server involves rendering highlighted information into XML which can then be used by the clients to highlight the text and generate reports. The server can process a large document if the document contains a minimal number of highlights, but may report an error processing another document of the same size if that document contains a higher proportion of highlighted issues.
Allocating more memory to the Acrolinx Server can prevent problems caused by large documents. You can configure two types of memory allocation limits.
The initial memory limit is the initial amount of memory allocated to the server when it starts. By default, this amount is lower than the maximum memory limit to prevent the server from reserving more memory than it initially needs. If the server later needs more memory than it initially reserved, it can request up to the amount defined in the maximum memory limit.
This is the maximum amount of memory consumption that the server is allowed to reach at any given time. This should not be greater than the actual capacity of your hardware.
Remember: A 32-bit operating system with a 32-bit Java Virtual Machine has a fixed maximum memory limit of 1,596 MB (regardless of hardware capacity).
Adjusting the Java Virtual Machine Memory Allocation
You can increase your Java Virtual Machine memory allocation to reduce "fatal exception" or "out of memory" errors from the Acrolinx server. These errors can occur when a checked document or term import file is too large for a language server to process. These errors can also occur on the core server when users attempt to export large volumes of terminology data.
To configure the memory allocation for your server, follow these steps:
- Open your overlay of the following file:
If you have not yet created an overlay of this file, create a new version of the file at the following location:
Do not edit the installed version of the file. Instead, always edit your overlay copy in the configuration directory.
Add the following properties:
Adjust these numbers in accordance with your hardware capacity. When adjusting the numbers, you can assume that "more is better". As a guideline, a server using a
maxmemoryof 1024 MB can process documents of up to 1 MB of checked text.
For example, to raise the initial memory allocation to 512 MB and the maximum memory allocation to 2048, add the properties as follows:
- Save your changes and restart all servers.