# 'Exception: Java heap space' record in the Logs files

### Problem <a href="#draft-exception-javaheapspacerecordinthelogsfiles-problem" id="draft-exception-javaheapspacerecordinthelogsfiles-problem"></a>

You configured WebSpellChecker Server products, but their work was interrupted and you noticed the 'Exception: Java heap space' error in the Logs files. The files are located in the **/\<WSC\_Installation\_Path>/WSC/AppServer/Logs** directory. Below is an example of the mentioned error:

```javascript
Error    PerformRequest. command: check, exception: callObjectObjMethod env.CallObjectMethodV exception: Java heap space, code: 11082951379382589058
Information    Could not create grammar object language = fr, provider = langtool. callConstructor LangToolJNIProvider::callConstructor exception: Java heap space
```

### Solution <a href="#draft-exception-javaheapspacerecordinthelogsfiles-solution" id="draft-exception-javaheapspacerecordinthelogsfiles-solution"></a>

There is insufficient space to allocate an object to the Java heap. Please try to increase the maximum heap size in megabytes for LanguageTool in Java Virtual Machine (JVM) using the [**JVMMaxMemorySizeMb**](/v6.12.0/deployment/configuration/application-server/appserver-parameters.md#draft-appserverparameters-jvmmaxmemorysizemb) parameter. All the available parameters for the WebSpellChecker Server management are listed in a special .xml file called AppServerX.xml file, which is located at: \<Installation\_Path>/WSC/AppServer/AppServerX.xml.

```javascript
<JVMMaxMemorySizeMb>1024</JVMMaxMemorySizeMb>
```

To apply for the changes, [restart WebSpellChecker AppServer](https://docs.wproofreader.com/v6.12.0/troubleshooting/server-side-backend/pages/IA2KNQLXDh85TwDivL4y#mainappservercommands-startappserverwindowslinux1.startappserver).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/v6.12.0/troubleshooting/server-side-backend/exception-java-heap-space-record-in-the-logs-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
