Selenium Server 2.17.0 几个小时后的 SessionCleanup
几个小时后我总是收到 SessionCleanup
。由于 SessionCleanup
,测试失败并且 Selenium 被关闭。
如何停止执行 SessionCleanup
?
我发现了这个,但它没有像提到的那样修复: http://code.google.com/p/selenium/issues/detail ?id=3161
这个错误出现在2.16.0和2.17.0版本中
23.1.2012 9:48:52 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
23.1.2012 9:48:55 org.openqa.jetty.http.HttpServer doStart
INFO: Version Jetty/5.1.x
23.1.2012 9:48:55 org.openqa.jetty.util.FileResource <clinit>
INFO: Checking Resource aliases
23.1.2012 9:48:57 org.openqa.jetty.util.Container start
INFO: Started org.openqa.jetty.jetty.servlet.WebApplicationHandler@5e176f
23.1.2012 9:48:57 org.openqa.jetty.util.Container start
INFO: Started WebApplicationContext[/,/]
21.1.2012 9:48:57 org.openqa.jetty.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:4455
23.1.2012 9:48:57 org.openqa.jetty.util.Container start
INFO: Started org.openqa.jetty.jetty.Server@1971afc
23.1.2012 12:59:22 SessionCleanup
WARNING: session ext. key 1327135735339 has TIMED OUT and will be released
I am always getting SessionCleanup
after few hours. Because of the SessionCleanup
, the test fails and Selenium is closed.
How do I stop executing SessionCleanup
?
I found this but it is not fixed as mentioned:
http://code.google.com/p/selenium/issues/detail?id=3161
This error is in version 2.16.0 and 2.17.0
23.1.2012 9:48:52 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
23.1.2012 9:48:55 org.openqa.jetty.http.HttpServer doStart
INFO: Version Jetty/5.1.x
23.1.2012 9:48:55 org.openqa.jetty.util.FileResource <clinit>
INFO: Checking Resource aliases
23.1.2012 9:48:57 org.openqa.jetty.util.Container start
INFO: Started org.openqa.jetty.jetty.servlet.WebApplicationHandler@5e176f
23.1.2012 9:48:57 org.openqa.jetty.util.Container start
INFO: Started WebApplicationContext[/,/]
21.1.2012 9:48:57 org.openqa.jetty.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:4455
23.1.2012 9:48:57 org.openqa.jetty.util.Container start
INFO: Started org.openqa.jetty.jetty.Server@1971afc
23.1.2012 12:59:22 SessionCleanup
WARNING: session ext. key 1327135735339 has TIMED OUT and will be released
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用选项
-cleanupCycle 2147483647
(Java MAX_INT) 启动节点时,您可以在客户端级别控制和最大化cleanupCycle
。根据文档,您似乎无法完全阻止它,但如果您没有其他选择,这至少会将频率降低到每大约 25 天一次。使用此命令执行 jar 以查看更多选项:
java -jar selenium-server-standalone-2.16.0.jar -help
You can control and maximize the
cleanupCycle
at the client level when launching the node with the option-cleanupCycle 2147483647
(Java MAX_INT). According to the documentation, it doesn't look like you can prevent it entirely, but this will at least reduce the frequency to once every ~25 days if you have no other option.Execute your jar with this command to see more options:
java -jar selenium-server-standalone-2.16.0.jar -help