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

问题描述

当我运行我的测试套装时,我发现一些文本会间歇性地挂起 非常 很长时间(15 分钟到半小时),而 PhantomJS 会不断报告:

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 是什么,是什么导致它挂了这么久?

干杯

戴夫

推荐答案

找到的解决方案:

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

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

本文地址:https://www.itbaoku.cn/post/1739826.html