Skip to content
This repository has been archived by the owner. It is now read-only.

Selenium Grid Hub: OutOfMemory Error after some time #4969

Closed
lukeis opened this issue Mar 4, 2016 · 7 comments
Closed

Selenium Grid Hub: OutOfMemory Error after some time #4969

lukeis opened this issue Mar 4, 2016 · 7 comments

Comments

@lukeis
Copy link
Member

@lukeis lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 4969


We run a grid node on a Windows machine. After some time (2-3 days) some node ran into
OutOfMemoryError and fail all test cases received.


What steps will reproduce the problem?
1. start Selenium grid hub and node as below,
java -jar selenium-server-standalone-2.28.0.jar -role hub

java -Xmn256M -Xms512M -Xmx1024M -jar selenium-server-standalone-2.28.0.jar -role node
-hub http://hubhost:4444/grid/register

there are 3 nodes running on Windows 2008, Windows 7 and Windows 2003.

2.run test suits daily, each test suite contains around 300 test cases, which takes
7+hr to complete. there are two test suites.


After 2-3 days, some node throw OutOfMemory error. At this moment we restart Selenium
Grid node/hub daily, is there any "best practice" for keeping a node running or automatically
restarting it if necessary?


Selenium version: 2.28.0
OS:Windows
Browser: Chrome


Reported by lucyyangca on 2013-01-03 21:34:36

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

Reported by barancev on 2013-01-05 11:16:36

  • Labels added: Component-Grid
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

Issue 5420 has been merged into this issue.

Reported by barancev on 2013-03-29 20:18:49

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

Could you please create a heap dump of a node that got OutOfMemoryException and attach
it here for investigation?

Reported by barancev on 2013-05-12 13:49:08

  • Status changed: NeedsClarification
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

As our discussion i have shared the heap dump with you .
Please let me know if you need any more details

Reported by vkchary417 on 2013-05-14 08:04:54

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

Thank you! As I supposed, it is related to logging (recently I've already fixed a leak
in the logging module, and I expected it was not the only one) -- for some reason session
logs are not associated with the session thread, and all the logs are accumulated in
the "temporary" storage, that is totally wrong.

Reported by barancev on 2013-05-14 08:21:13

  • Status changed: Accepted
  • Labels removed: Status-Untriaged
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

This issue was closed by revision b656c722705e.

Reported by barancev on 2013-05-15 14:11:47

  • Status changed: Fixed
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:31

  • Labels added: Restrict-AddIssueComment-Commit
@lukeis lukeis closed this Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant