Domino & Notes error

HTTP JVM: java.lang.OutOfMemoryError: Java heap space

The text after OutOfMemoryError can vary.

What it means

The Java virtual machine inside the HTTP task ran out of heap memory, often affecting XPages, OSGi plug-ins or REST services.

Common causes

  • The JVM heap is too small for the XPages applications on the server
  • Code that keeps too much in memory or does not recycle Domino objects
  • Too much data held in session or application scope

Quick fixes

  1. Raise the heap with HTTPJVMMaxHeapSize= in notes.ini and set HTTPJVMMaxHeapSizeSet=1 so it is not reset
  2. restart task http to recover
  3. Review code for missing recycle() calls and large scoped variables

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

Disclaimer

The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.

This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.