JavaScript heap out of memory

The error "JavaScript heap out of memory" means that the Phantom is running out of space to save the CSV results file at the end of its launch and your results file is too large to be saved. Phantoms generally cannot save files larger than ~190MB.

To solve this, we recommend splitting your scraping across multiple results files.

You can do this by changing the name of the results CSV file in the Phantom's setup when processing a new input, and removing lines in your input spreadsheet that have already been processed. You will find the option to rename your results CSV file within your Phantoms setup: Behavior > Results file settings > Name your results file.



If your Phantom doesn't have the "Result file settings" option, you can configure File management settings: Advanced settings > File management. Please choose between the "Delete previous files" or "Create new files" options.

"Create new files" means that new files will be created without affecting the old ones.
On the other hand, "Delete previous files," will remove the old files and replace them with the new ones each time it launches. Please remember to download your data if you choose this option!



If you would like to read more about File management options please check the article: Will my Phantom pick up from where it left off?

 

If you think this article does not address your issue, please contact Support directly. We are continuously improving, so your feedback means the world to us!

Was this article helpful?
1 out of 2 found this helpful