The repetition, "Asynchronous Session Cleanup Phase Begins from Start"

When I launch my test suit, I find that with interruptions some of the texts will hang for a very long time (from 15 minutes to half an hour), while PhantomJS constantly reports:

Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW Asynchronous Sessions cleanup phase starting NOW ... 

What is this Asynchronous Sessions cleanup phase starting NOW and what can cause it to hang for so long?

Greetings

Dave

+5
testing phantomjs headless-browser
Mar 11 '13 at 18:22
source share
3 answers

Solution found:

Asynchronous Sessions cleanup phase starting NOW ... was caused by some calls to external feeds, this is intermittently slow. This phase must have been waiting for these challenges that failed, but PhantomJS sat there, waiting for a very, very long time.

Removing these calls during testing (with a bit of JavaScript if the host is localhost and then using a dummy object) solved the problem.

+1
Mar 13 '13 at 15:24
source share

The workaround that worked for me is to set the takeScreenshot parameter to false.

 DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability("takesScreenshot", false); 
0
Jan 23 '16 at 20:28
source share

try using this.driver = new PhantomJSDriver (caps); Now we are done. [INFO - 2014-05-01T13: 21: 09.095Z] ShutdownReqHand - _handle - About shutting down

But after I got the same pbm

-2
May 22 '14 at 10:19
source share



All Articles