[v10] How to update the Java Heap Size on AhsayOBM / AhsayACB
November 18, 2025
Product Version
AhsayACB / AhsayOBM: v10 and above
Operating System
All platforms
Description
This Know-How article outlines the steps required to modify the Java heap size of AhsayOBM / AhsayACB in version 10.
Solution
To modify the Java heap size of AhsayOBM / AhsayACB on Windows / macOS / Linux, you need to amend the following files:
- For Windows: ${AhsayOBM-Install-Home}\bin\cb.ini
- For macOS: ${AhsayOBM-Install-Home}/bin/cb.ini
- For Linux: ${AhsayOBM-Install-Home}/bin/cb.ini
- For Synology NAS: ${AhsayOBM-Install-Home}/get-suitable-xmx.sh
- For QNAP NAS: ${AhsayOBM-Install-Home}/get-suitable-xmx.sh
The default location for the get-suitable-xmx.sh:
- Synology: /volume1/@appstore/AhsayOBM/obm/util/bin/get-suitable-xmx.sh
- QNAP: /share/CACHEDEV1_DATA/.qpkg/AhsayOBM/obm/util/bin/get-suitable-xmx.sh
Follow the steps below:
For Windows / macOS / Linux, open the 'cb.ini' file with a text editor.
-Xms128m -Xmx2048m -XX:MaxDirectMemorySize=1024mFor NAS, open the 'get-suitable-xmx.sh' file with a text editor.
JAVA_HEAP_MAX_IN_MB=2048 JAVA_HEAP_MIN_IN_MB=64The value 2048, in the above examples are the current Java heap size (in MB).Amend the following line by changing the value to '4096' (value in MB) (depending on the amount of free system memory available):
- In 'cb.ini' amend -Xmx4096m
- In 'get-suitable-xmx.sh' amend JAVA_HEAP_MAX_IN_MB=4096
- Save the changes, then restart the scheduler service.