Closed moshewe closed 8 years ago
Hi. It looks like your either your Node.js or Phantom process takes up too much memory. There's nothing phridge could do about it :)
I'll reopen this issue when you add an example that this is an issue with phridge itself.
Hi, @jhnns . I have the same problem I can't resolve. Can u help me, what's wrong with this code?
Why do you set process.setMaxListeners(Infinity);
?
The code looks fine, although you could re-use the phantom process. A single phantomjs process can open multiple pages.
Thanx for advise, @jhnns , but how can I solve this issue? I mean memory exhausted
.
And can I iterate over 3,4k+ urls in one process?
What kind of answer to you expect from me? I know nothing about your setup.
Besides that, the error is pretty clear: Memory exhausted. There is something that takes up too much memory. Phridge is just a bridge to PhantomJS, your error is not related to Phridge itself (unless you can show me that Phridge is eating up too much memory).
@zhukevgeniy As far as I tried, it's not possible to open 3,4k+ urls in one PhantomJS process. Probably due to some memory leaks in PhantomJS. But you can open many PhantomJS processes consequently, killing the previous process, of course. That way I opened 6K+ urls someday.
I got the following error:
From I can understand, this means that the phantom process exited with status
1
?