-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Phantomjs Memory Leak Issue #14308
Comments
@entrptaher, great work! |
In the webserver module, if the concurrent number of connections can be adjusted/limited to 1, then maybe all of the steps would be blocked by default. |
I think I'm seeing a memory leak too. I'm using phantomjs version 2.1.1 on ubuntu 14.04. I open the browser, make the request, then close the browser, then find the PID that it was using and kill that, but the process never seems to go away. Within 30 minutes, I have over 100 phantomjs processes running. This doesn't happen when running on OSX that I'm seeing. |
@jwoertink this not look like mem-leak)) |
Also I'm seeing this issue, hope to be fixed in future…I'm using phantomjs version 2.1.1 on ubuntu 14.04. After I make 10000 request, the process hold almost 1GB memory which cannot be released. |
So the development stopped at 2.1.1. |
I'm facing the same, problem! any hope that this issue will get solved ? Thanks. |
Let's track this in #11390 |
Which version of PhantomJS are you using? Tip: run
phantomjs --version
.2.1.1 (but it doesn't matter, it happens to any version of Phantomjs)
What steps will reproduce the problem?
Which operating system are you using?
I tried:
All OS were both 32bit and 64 bit.
Did you use binary PhantomJS or did you compile it from source?
I used Phantomjs from NPM, also built it, also tried older versions etc etc.
Please provide any additional information below.
This is a general issue that has been talked over and over for past few years and yet no solution was provided.
Where:
This has been talked over and over, why did you open another issue?
Well, did any of them solve the issue? Lets solve this issue once and for all.
What can we do?
For example, just when the leak happens, find out what it was doing, in my example, Let it wait for reply after a Ajax call. The Ajax call can be async, but waiting for the reply should be sync, thus preventing another command to execute while the ajax call is still in process.
In CasperJS, there is a method called waitFor which can do the following, and the memory doesn't leak, yet. It might leak in someone elses computer.
Now, I wonder, what can be done to prevent the memory leak.
The text was updated successfully, but these errors were encountered: