webdriver jettyThreads option
See original GitHub issueRecently from jenkins I was getting this error.
01:34:25 [01:34:25] 01:34:25.560 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet 01:34:25 01:34:25 [01:34:25] Exception in thread "main" 01:34:25 [01:34:25] java.lang.IllegalStateException: Insufficient configured threads: required=3 < max=3 for QueuedThreadPool[qtp1734161410]@675d3402{STARTED,3<=3<=3,i=3,q=0}[ReservedThreadExecutor@1c93084c{s=0/1,p=0}] 01:34:25 [01:34:25] 01:34:25 01:34:25 [01:34:25] at org.seleniumhq.jetty9.util.thread.ThreadPoolBudget.check(ThreadPoolBudget.java:155)
I could solve it adding on the build/lib/start.js ->start function the option to set the jettyThreads value.
I don’t know if there are other way to add it or other way to solve my original problem (lol) but at least it’s working and running my tests well.
P.S if this option is helpful I could try to add the change on a PR.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
@archagy Seems they updated Selenium server today. After updating to Selenium server version: 3.141.5, I was able to bring up the Selenium server through webdriver-manager again.
I added the line you specified and was able to bring up the server. Then I took out the line and was able to bring the server up this way as well. So it seems the line is not needed anymore.
It seems to be working as it did before. It solved my problem at least. Thanks again.
Hi @kevinip-zingbox , I don’t know why the error occurs but here is what I did to solve it.
Go to your node_modules/webdriver-manager folder and search the start.js file. current path:
After the line 213 I add the next code
args.push('-jettyThreads', 512);
That solve my problem, I hope solve your problem as well.