重复“从现在开始的异步会话清理阶段" [英] Repeating "Asynchronous Sessions cleanup phase starting NOW"

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

问题描述

当我运行我的测试套件时,我发现一些文本会间歇性地挂起 很长时间(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 ...

这个异步会话清理阶段现在开始是什么,是什么导致它挂这么长时间?

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

干杯

戴夫

推荐答案

找到解决方案:

从现在开始的异步会话清理阶段...... 是由对外部源的一些调用引起的,这些调用间歇性地缓慢.这个阶段肯定一直在等待这些超时的调用,但是 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天全站免登陆