I can store hprofile heap file whenever there is a OOM exception in java application. So I want similar type solution in aws lambda that whenever any OOM exception occur during running java application jar in aws lambda, heap file will stored in s3 location. So that it can be used for further analysis.