重复“立即开始异步会话清除阶段". [英] Repeating "Asynchronous Sessions cleanup phase starting NOW"

查看:66
本文介绍了重复“立即开始异步会话清除阶段".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行测试服时,我发现有些文本会间歇性地挂起很长一段时间(15分钟到半小时),并且PhantomJS会不断报告:

When I run my test suit, I find that intermittently some of the texts will hang for a very long time (15 mins to half an hour) with PhantomJS constantly reporting:

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 ...

这是什么Asynchronous Sessions cleanup phase starting NOW,是什么导致它挂了这么长时间?

What is this Asynchronous Sessions cleanup phase starting NOW and what could be causing it to hang for so long?

欢呼

戴夫

推荐答案

找到解决方案:

Asynchronous Sessions cleanup phase starting NOW ...是由对外部提要的某些调用引起的,这些调用间歇性地变慢.这个阶段肯定一直在等待这些正在超时的调用,但是PhantomJS坐在那里等待了非常非常长的时间.

The Asynchronous Sessions cleanup phase starting NOW ... was caused by some calls to external feeds, these were intermittently slow. This phase must have been waiting for these calls, which were timing out, but PhantomJS sat there waiting for a very, very long time.

在测试时删除这些调用(使用少量的JavaScript,如果主机是localhost则使用虚拟对象)解决了这个问题.

Removing these calls when testing (with a wee bit of JavaScript, if host is localhost then use a dummy object) solved the problem.

这篇关于重复“立即开始异步会话清除阶段".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆