user-1
(User 1)
February 7, 2024, 4:39pm
1
This topic was automatically generated from Slack. You can find the original thread here .
Please when or what triggers this to happen… I see it happen all the time…
It’s like the WF doesn’t run, like the environment starts up, but no execution is done till it times out. What could be likely causes…
(The WF isnt doing anything that will warrant increasing more than 256mb)
user-1
(User 1)
February 7, 2024, 4:39pm
2
This error is caused by the workflow’s memory being exhausted at run time.
Perhaps a new version of an NPM or PyPI package in the workflow is causing the issue? Have you tried pinning to an older version?
It can also be memory intensive code or large events causing the issue.
user-1
(User 1)
February 7, 2024, 4:39pm
3
Axios is the only package I am using in the workflows…. I’ve rescoped my endpoints to only get/return what I want…
Is it possible to find the exact action within the workflow that is causing this… I would have expected the error to mention this
user-1
(User 1)
February 7, 2024, 4:39pm
4
No sorry, due to how workflows are bundled we don’t have that level of visibility.
Is the workflow using pre-built actions or triggers?
user-1
(User 1)
February 7, 2024, 4:39pm
5
It’s using a webhook trigger
user-1
(User 1)
February 7, 2024, 4:39pm
6
Ok, is it using any pre-built actions or are all of the actions Node.js/Python code?
user-1
(User 1)
February 7, 2024, 4:39pm
8
Sorry, I just remembered I have this package in one of the workflows. I’m going to remove the builder and see if anything changes…. but based on this package size, I’m not sure its the culprit
**import** { parseString, Builder } **from** "xml2js";
user-1
(User 1)
February 7, 2024, 4:39pm
9
Workflows deploy to separate Lambdas, so memory usage by workflow A doesn’t affect workflow B.
Does the workflow with this OOM error manipulate files?
user-1
(User 1)
February 7, 2024, 4:39pm
10
It doesnt manipulate files… I use this xml2js to parse just 1 line of xml
user-1
(User 1)
February 7, 2024, 4:39pm
11
Hm then that library could have a memory leak of some sort.
Perhaps try pinning to an older version that was published before you started noticing this error. Or potentially try a different package.