# Java Heap Space Error on KNIME Server

**URL:** <https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486>\
**Category:** KNIME Server\
**Created:** [April 4, 2025, 11:20am UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486 "2025-04-04T11:20:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heldyyyyy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@Heldyyyyy](https://forum.knime.com/u/Heldyyyyy)\
**Post date:** [April 4, 2025, 11:20am UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/1 "2025-04-04T11:20:51Z")

</div>

Hi KNIME Community,

I’m encountering a Java heap space error or Connection Lost when running a workflow on KNIME Server. Here’s the setup:

 ![1](https://forum-cdn.knime.com/uploads/default/original/3X/7/f/7faff853e41a8db1504f1bb8e5c90d060756afa2.png)

**Workflow Design:**

- The workflow only handles Table Reader, no heavy data processing.
- All input tables are pre-processed and saved from another workflow (WF1), then read via `Table Reader` nodes here (WF2) wherein it only reads the final Tables from the WF1. Basically this WF2 is the final stage and only processed the tables from WF1 and write it into a excel template file that is available.
- Each `Write to Excel Template` node:
  - Writes to the same Excel file stored in SharePoint folder. (Monthly and YTD have different Excel Templates)
  - Is preceded by a `Run Heavy Garbage Collector` node
  - Is executed sequentially using `Wait...` nodes and flow variable connections

**The Issue:**

- The workflow executes fine **locally**.
- On **KNIME Server** , the job fails **consistently on the 3rd `Write to Excel Template` node**
  - The node reaches 89%, then crashes after a delay (around 3 minutes) sometimes its already 100% but will crash after 3 minutes.
  - Error: `Execute failed: Java heap space` or `Connection lost`

 ![2](https://forum-cdn.knime.com/uploads/default/original/3X/d/8/d80fd2e3e5d09ec83a566e19716f76cfd04eb83b.png)  
 ![3](https://forum-cdn.knime.com/uploads/default/original/3X/2/7/27db23c998e7215e5ba5620f04ebc3bb312da075.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/9/29db63abf92f416589e77dc59a1fb7d9548a9851.png)

**Question:**

- Is there a better way to avoid memory issues when writing multiple sheets to the **same Excel file on SharePoint** using `Write to Excel Template`?
- Any recommended KNIME Server config or memory settings that could help?

Appreciate any help or ideas — thanks!

---

<div class="post-metadata">

**Author:** ![ztrubow](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/z/ba9def/32.png) [@ztrubow](https://forum.knime.com/u/ztrubow)\
**Post date:** [April 7, 2025, 7:59pm UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/2 "2025-04-07T19:59:02Z")

</div>

Hi @Heldyyyyy ,

Thank you for your detailed inquiry! If you have KNIME Server, you can use the [support@knime.com](mailto:support@knime.com) for assistance for brake/fix issues. Would you please submit this request there via email and I can help you with this issue? Ideally if you could also provide your KNIME Server and Executor version that would be helpful to get started.

Thanks,  
Zack

---

<div class="post-metadata">

**Author:** ![Heldyyyyy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@Heldyyyyy](https://forum.knime.com/u/Heldyyyyy)\
**Post date:** [April 8, 2025, 2:54am UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/3 "2025-04-08T02:54:57Z")

</div>

Hi @ztrubow will email the support team. Thank You!  
Edit: I already emailed them and will wait for the response

---

<div class="post-metadata">

**Author:** ![Heldyyyyy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@Heldyyyyy](https://forum.knime.com/u/Heldyyyyy)\
**Post date:** [April 9, 2025, 7:52am UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/4 "2025-04-09T07:52:35Z")

</div>

> [@ztrubow](#):
>
> [support@knime.com](mailto:support@knime.com)

Hi @ztrubow can you add some other knime support email… I tried to get back to your email to reply and attached the downloaded support bundle from KOTSbut it shows something like this:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/c/2/c246685613edc80ae793b0f9afa682d9d81e2264.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/4/e478aeb02f12da3e1d8d3a592df2582e3a7b529b.png)

---

<div class="post-metadata">

**Author:** ![ztrubow](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/z/ba9def/32.png) [@ztrubow](https://forum.knime.com/u/ztrubow)\
**Post date:** [April 9, 2025, 1:18pm UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/5 "2025-04-09T13:18:23Z")

</div>

Hi @Heldyyyyy ,

Thanks for that info, I’ve followed up on our ticket.

---

<div class="post-metadata">

**Author:** ![Heldyyyyy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@Heldyyyyy](https://forum.knime.com/u/Heldyyyyy)\
**Post date:** [April 10, 2025, 8:22am UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/6 "2025-04-10T08:22:06Z")

</div>

already uploaded the file in the App Box.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 17, 2025, 8:22am UTC](https://forum.knime.com/t/java-heap-space-error-on-knime-server/87486/7 "2025-04-17T08:22:25Z")

</div>

Closed on April 17, 2025, 8:22am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
