question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webdriver jettyThreads option

See original GitHub issue

Recently 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
kevinip-zingboxcommented, Nov 6, 2018

@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.

/ Add the port parameter, has to declared after the jar file if (seleniumPort) { args.push(‘-port’, seleniumPort); } args.push(‘-jettyThreads’, 512); let argsToString = ‘’; for (let arg in args) { argsToString += ’ ’ + args[arg]; }

It seems to be working as it did before. It solved my problem at least. Thanks again.

1reaction
archagycommented, Nov 6, 2018

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:

node_modules/webdriver_manager/built/lib/cmds/start.js

After the line 213 I add the next code

args.push('-jettyThreads', 512);

That solve my problem, I hope solve your problem as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Running a Selenium Grid 2 with 200 nodes. How can I ...
Relly large (>50 node) Hub installations may need to increase the jetty threads by setting -DPOOL_MAX=512 (or larger) on the java command line....
Read more >
gridopadesham | An end-to-end documentation on Grid
To see the documentation related to the Selenium Hub, run : ... hub properties -jettyThreads, -jettyMaxThreads <Integer> : max number of threads for...
Read more >
Issues with Chrome browser while starting it with the grid ...
at org.openqa.jetty.util.ThreadPool $PoolThread.run(ThreadPool.java:534) Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationT
Read more >
What are the options we have for selenium-server-standalone ...
Most commonly useful in exotic network configurations (e.g. network with VPN) -jettyThreads, -jettyMaxThreads <Integer> : max number of threads ...
Read more >
Selenium grid 2
Really large (>50 node) Hub installations may need to increase the jetty threads by setting -DPOOL_MAX=512 (or larger) on the java command ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found