guardian / mobile-notifications-content

Lambda that reads from the content api stream and triggers notifications for followable content
2 stars 0 forks source link

Avoid OOM errors #32

Closed jacobwinch closed 3 years ago

jacobwinch commented 3 years ago

We noticed a spike in the following error in the logs recently:

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

To work around this problem this PR:

  1. Allocates more memory to the lambda function(s).
  2. Enables BisectBatchOnFunctionError. This should increase the likelihood of a successful retry if an OOM occurs again.
jacobwinch commented 3 years ago

I've tested deploying this change to CODE.