0

Is there a way to catch OutOfMemory error in AWS Lambda function (written in Java)?

The error is thrown by the 'main' method thread which I think is not exposed.

Nitesh Kumar
  • 789
  • 1
  • 5
  • 11
  • 1
    Please see: https://stackoverflow.com/questions/2679330/catching-java-lang-outofmemoryerror – lexicore Apr 01 '18 at 08:57
  • 1
    @lexicore: I understand that. The question is specific to AWS Lambda functions where the OutOfMemory error is thrown in 'main' thread that is not exposed to the user. Only the function handler is exposed. – Nitesh Kumar Apr 01 '18 at 10:00
  • You'll probably need to post some code. Which "main thread"? What is a "function handler"? – lexicore Apr 01 '18 at 10:02

0 Answers0