GAE memory limit

Is there a way to catch a warning about acceptable memory in Google? I do not mean the 300 MB memory error, but the warning that appears when you cross the 180 MB memory limit.

01-06 07:11PM 08.597
Exceeded soft memory limit with 247.434 MB after servicing 1 requests total

I want to catch this warning when it appears in my code and starts deleting some memory

+3
source share
1 answer

No exception occurs in your code when this happens - it is logged at runtime after your request completes execution, so there is no way to β€œcatch” it.

+2
source

Source: https://habr.com/ru/post/1784006/


All Articles