内存不足异常selenium服务器2.0b3

发布于 2024-11-02 15:24:14 字数 607 浏览 1 评论 0原文

我们刚刚部署了selenium服务器2.0b3(从1.0.3升级)。它 看起来有一些相当严重的内存泄漏 - OutOfMemory 运行时间超过 30 分钟时抛出异常。

是否有任何直接的解决方法来处理内存泄漏 2.0b3 硒服务器?

我希望获得 2.0b3 源代码,应用各种补丁 到目前为止已提交并使用它。但是,当我拉这个:

svn checkout http://selenium. googlecode.com/svn/tags/selenium-2.0-beta-3/ selenium-2.0-beta-3

并使用

./go clean release

构建生成的二进制文件似乎没有 默认Selenium.class。不知道这里发生了什么......

或者,我想也许我们会开始与 最新的候选版本。然而,看起来像 DefaultSelenium.class 也不在这里。

我需要升级客户端代码才能使用 WebDriver 吗?我以为 事情应该是向后兼容的。

建议?

We just deployed selenium server 2.0b3 (upgraded from 1.0.3). It
looks like there are some fairly serious memory leaks - OutOfMemory
exception thrown during runs longer than 30 minutes long.

Is there any straight forward workaround for dealing with the memory leaks in the
2.0b3 selenium server?

I was hoping to get the 2.0b3 source, apply the assorted patches
submitted thus far and use this. However, when I pull this:

svn checkout http://selenium.googlecode.com/svn/tags/selenium-2.0-beta-3/
selenium-2.0-beta-3

and build with

./go clean release

The resulting binaries don't appear to have the
DefaultSelenium.class. Not sure what is going on here...

Alternately, I thought maybe we will just start working with the
latest release candidate. However, looks like the
DefaultSelenium.class is not here either.

Do I need to upgrade the client code to use WebDriver? I thought
things were suppose to be backwards compatible.

Suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

伴我老 2024-11-09 15:24:14

为了向后兼容,您应该使用 WebdriverBackedSelenium,如下所示:

FirefoxDriver driver = new FirefoxDriver(); //or any of the other drivertypes

Selenium selenium = new WebDriverBackedSelenium(driver, START_URL);

for backwards compatibility you should use the WebdriverBackedSelenium like this:

FirefoxDriver driver = new FirefoxDriver(); //or any of the other drivertypes

Selenium selenium = new WebDriverBackedSelenium(driver, START_URL);
离去的眼神 2024-11-09 15:24:14

具体来说,抛出的是哪种 OutOfMemoryException?堆? GC开销限制?其他?

我收到“超出 GC 开销限制”,有时还收到“堆空间不足”作为异常中的消息(1.0.3 和 2.0.b3,使用 ruby​​ selenium-client-1.2.18),并在硒开发者谷歌小组。[1]您是否遵循了那里的回复?

关闭 selenium-server 的日志记录(-log-browserSideLog)对我来说停止了 OOME。我可以等到下一个 selenium-server 版本来获取 Kristian 的补丁。[2]

[1] http://groups.google.com/group/selenium-developers/browse_thread/thread/30d38475a16985a9/0db1af2456304f9f?hl=en&lnk=gst&q=outofmemory#0db1af2456304f9f

[2] <一href="http://code.google.com/p/selenium/source/detail?r=11872" rel="nofollow">http://code.google.com/p/selenium/source/detail?r =11872

Specifically what kind of OutOfMemoryException is getting thrown? Heap? GC overhead limit? other?

I was getting "GC overhead limit exceeded" and sometimes also "out of heap space" as the message within the Exception (both 1.0.3 and 2.0.b3, using ruby selenium-client-1.2.18), and found your thread on the selenium-developers google group.[1] Have you followed along with the responses there?

Turning logging off for selenium-server (both -log AND -browserSideLog) stopped the OOMEs for me. I can wait till the next selenium-server release to get Kristian's patches.[2]

[1] http://groups.google.com/group/selenium-developers/browse_thread/thread/30d38475a16985a9/0db1af2456304f9f?hl=en&lnk=gst&q=outofmemory#0db1af2456304f9f

[2] http://code.google.com/p/selenium/source/detail?r=11872

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