java.lang.IllegalStateException: Insufficient threads: max=8 < needed(acceptors=4 + selectors=4 + request=1)

Hot problem!
This exception has a lot of traffic. You can help 11 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by maver1ck
, 1 year ago
Insufficient threads: max=8 < needed(acceptors=4 + selectors=4 + request=1)
via GitHub by loganto
, 1 year ago
Insufficient threads: max=5 < needed(acceptors=1 + selectors=4 + request=1)
via GitHub by zloster
, 7 months ago
Insufficient threads: max=2 < needed(acceptors=1 + selectors=2 + request=1)
via GitHub by gregw
, 1 year ago
Insufficient threads: max=3 < needed(acceptors=1 + selectors=2 + request=1)
via JIRA by Charlie Sharpsteen, 1 year ago
Insufficient max threads in ThreadPool: max=100 < needed=121
via JIRA by Charlie Sharpsteen, 1 year ago
Insufficient max threads in ThreadPool: max=100 < needed=121
java.lang.IllegalStateException: Insufficient threads: max=8 < needed(acceptors=4 + selectors=4 + request=1)
at org.eclipse.jetty.server.Server.doStart(Server.java:350)
at com.metamx.tranquility.server.http.ServerMain$$anonfun$createJettyServer$1$$anonfun$apply$1.apply$mcV$sp(ServerMain.scala:153)
at com.metamx.tranquility.server.http.ServerMain$$anonfun$createJettyServer$1$$anonfun$apply$1.apply(ServerMain.scala:153)
at com.metamx.tranquility.server.http.ServerMain$$anonfun$createJettyServer$1$$anonfun$apply$1.apply(ServerMain.scala:153)
at com.metamx.common.scala.lifecycle$LifecycleOps$$anon$1.start(lifecycle.scala:31)
at com.metamx.tranquility.server.http.ServerMain$.main(ServerMain.scala:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.twitter.app.App$$anonfun$nonExitingMain$3.apply(App.scala:168)
at scala.Option.foreach(Option.scala:257)
at com.metamx.tranquility.server.http.ServerMain$.nonExitingMain(ServerMain.scala:49)
at com.metamx.tranquility.server.http.ServerMain$.main(ServerMain.scala:49)
at com.metamx.tranquility.distribution.DistributionMain$.main(DistributionMain.scala:34)
at com.metamx.tranquility.distribution.DistributionMain.main(DistributionMain.scala)

Users with the same issue

4 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.