Parameter:
JavaMaxHeapSizeShort description: Sets the maximum JVM heap size for all Domino server processes outside the HTTP task (Agent Manager, periodic Java agents, runjava). Default: 256 MB.
JavaMaxHeapSize sets the maximum heap size of the Java Virtual Machine for all Domino server processes other than the HTTP task — for example Agent Manager (
amgr), periodic Java agents, and runjava calls.Profile
Parameter | JavaMaxHeapSize |
Component | Server (amgr, runjava, Java agents) |
Category | Performance / Memory (JVM) |
Available since | 9.0.x (per KB0029777) |
Default | 256 MB on HCL Domino Server |
Values | Bytes or with suffix M/MB |
Scope | All JVM users except the HTTP task |
Activation | Restart of the relevant tasks (e.g. restart task amgr) |
Description
Domino distinguishes between two controls for JVM heap sizes:
JavaMaxHeapSizesets the heap for all Domino processes that start their own JVM — e.g. Agent Manager (amgr), periodic Java agents, orrunjavacalls.
HTTPJVMMaxHeapSizesets the heap only for the HTTP task (nhttp).
According to HCL Customer Support (KB0029777), the default value of
JavaMaxHeapSize is 256 MB, that of HTTPJVMMaxHeapSize is 1 GB.The JVM typically starts with around 16 MB of heap and grows as needed up to the maximum defined with
JavaMaxHeapSize. When the maximum is reached, java.lang.OutOfMemoryError occurs.Examples
JavaMaxHeapSize=64MB JavaMaxHeapSize=512M JavaMaxHeapSize=67108864
The three examples are not equivalent: 64 MB = 67,108,864 bytes; 512 M = 512 MB.
Practical notes
- OutOfMemory in Java agents – if a periodic Java agent reports
java.lang.OutOfMemoryError,JavaMaxHeapSizeis too low (or the agent has a memory leak).
- Separation from HTTP – changes to
JavaMaxHeapSizedo not affect the HTTP task. For XPages and Java DSAPI,HTTPJVMMaxHeapSizeis responsible.
- Activation – the value is read on the next start of the respective JVM. For Agent Manager:
restart task amgron the server console.
- Older defaults – in much older releases there were different defaults (e.g. 64 MB in Domino 7/8). On HCL Domino Server (9.x and newer), 256 MB is the standard.
Sources (HCL Product Documentation)
- HCL Customer Support – KB0029777 "Default values for HTTPJVMMaxHeapSize and JavaMaxHeapSize" (Applies to: Domino 9.0.x, 10.0.x, HCL Domino 11.0.x and 12.0.x): support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0029777
- HCL Domino 14.0 – Apply custom JVM setting values though notes.ini (KB0117044): support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0117044
- HCL Domino 14.5.1 – NOTES.INI Settings (overview): help.hcl-software.com/domino/14.5.1/admin/conf_notesinisettings_c.html