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, and
  offer to increase JVM XmX value

Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Nov 14, 2021
1 parent 78c8294 commit ab0e2d1
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 167 deletions.
Loading

0 comments on commit ab0e2d1

Please sign in to comment.