-
Notifications
You must be signed in to change notification settings - Fork 3.7k
phantomjs doesn't release memory #207
Comments
What do you mean of "stop the project"? stop pyspider or via webui? |
stop the project from web ui. |
Stop projects would not make phantomjs release memory. I have a phantomjs instance with crawl rate of 5 pages per minute, it cost ~500MB. And my solution is restart it every hour. |
how can i restart phantom? |
if you are running pyspider use command |
As you said in js file, there is a memory leak that resolved by : |
Does that work? |
Yes, after changing that parameter its just working fine! |
I will make it true by default. |
but load Images take too much time |
@binux what's the proper posture to restart PhantomJS every hour? |
manage instance with some sort of Process Control System like supervisord.org, then just kill it every hour. |
I'm using a vps with 2G of ram with one project in pyspider, after a few minutes of crawling phantoms is filling the memory and won't release even after stopping the project.
The text was updated successfully, but these errors were encountered: