Selenium Server 2.17.0 几个小时后的 SessionCleanup

发布于 2024-12-28 15:19:39 字数 1207 浏览 0 评论 0原文

几个小时后我总是收到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我ぃ本無心為│何有愛 2025-01-04 15:19:39

使用选项 -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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文