Skip to content

Commit

Permalink
Gracefully handle OutOfMemory errors
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
rgrunber committed Nov 15, 2021
1 parent 78c8294 commit 1fce925
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 167 deletions.
Loading

0 comments on commit 1fce925

Please sign in to comment.