You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I crawled first 2k domains from Majestic to get html content and take a screenshot of these domains with Scrapy, my script worked fine. However, when I increased to scrape about 4-10k domains and had same other settings, the error Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory occurred. How to fix out of memory issue? Many thanks,
From a short look into the code of scrapy-playwright it seems like they always reuse the browser context. This then ends up in an out of memory error, see #6319.
I would recommend to open an issue on their side, since it's best practice to have a new context when navigating to a lot of different sites. This should fix the memory allocation issue.
Hello,
I crawled first 2k domains from Majestic to get html content and take a screenshot of these domains with Scrapy, my script worked fine. However, when I increased to scrape about 4-10k domains and had same other settings, the error
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
occurred. How to fix out of memory issue? Many thanks,Detail of the error
My env
The text was updated successfully, but these errors were encountered: