> For the complete documentation index, see [llms.txt](https://docs.wproofreader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wproofreader.com/troubleshooting/server-side-backend/exception-java-heap-space-record-in-the-logs-files.md).

# '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**](/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/troubleshooting/server-side-backend/pages/IA2KNQLXDh85TwDivL4y#mainappservercommands-startappserverwindowslinux1.startappserver).
