I have a selenium grid that uses the following config:
{
"port": 4444,
"newSessionWaitTimeout": 2000
}
and 2 nodes that use this config:
{
"capabilities": [{
"browserName": "chrome",
"platform": "LINUX",
"maxInstances": 8
}],
"configuration": {
"nodeTimeout": 120,
"port": 5555,
"hubPort": 4444,
"hubHost": "hubhost",
"nodePolling": 2000,
"registerCycle": 10000,
"register": true,
"cleanUpCycle": 2000,
"timeout": -1,
"browserTimeout": -1,
"maxSession": 8
}
}I wrote a piece of Java-Code that opens a connection via the RemoteWebDriver-Class. The code does several calls on the driver and afterwards suspends for unknown time (30s - 1h). I don't want to close the session, because on wake, the process needs to react really fast.
With the timeout set to -1 everything works. The process will stay connected to the session (and the browser) for unlimited time. Unfortunately the process is killed at random, when an automatic service decides to. The node recognizes that the client shuts down:
selenium deleted due to client timeout
But the sessions aren't cleaned up! The unlimited timeout keeps them alive and the grid won't free them for further use.
How can I solve this problem with the selenium config?
Building a process-shutdown-hook that calls "driver.quit()" to free the session, is not an option.
Thanks for any help!
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7ea9b5dc-b2b6-4b53-a47b-11f9f7042b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.