Commit bdfb03e
committed
Gracefully handle OutOfMemory errors
- Detect and report java.lang.OutOfMemory errors
- Fixes #1959
- Use -XX:+HeapDumpOnOutOfMemoryError & -XX:HeapDumpPath to generate a
heap dump whose existence can notify the client that an OutOfMemory
error has occured
- Use chokidar library to listen for heap dump files
- Once OutOfMemory error is detected, clean up the heap dumps (only if
extension configured the location), and offer to increase JVM XmX
value
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>1 parent dd1fe09 commit bdfb03e
4 files changed
Lines changed: 118 additions & 167 deletions
0 commit comments