Apify and Crawlee Official Forum

Updated 3 months ago

Cheerio memory error

Hello,
I have deployed a CheerioCrawler on AWS, the machine has 2vCPU and 4gb of ram, but I get the following error:
Plain Text
WARN CheerioCrawler:AutoscaledPool:Snapshotter: Memory is critically overloaded. Using 1174 MB of 750 MB (157%). Consider increasing available memory.


What can it be ?
P
N
2 comments
Hello have you tried setting up and enviromental variable APIFY_MEMORY_MBYTES ? https://docs.apify.com/sdk/js/docs/guides/environment-variables#apify_memory_mbytes
fixed it like this:
Plain Text
const config = Configuration.getGlobalConfig();
config.set('availableMemoryRatio', 0.95)
Add a reply
Sign up and join the conversation on Discord