When re-configuring the netty execution context you must make sure that the
used execution context has enough threads for netty, in newer versions of
Akka you should also see this warning hinting about that:

WARNING: Failed to get all worker threads ready within 10 second(s). Make
sure to specify the executor which has more threads than the requested
workerCount. If unsure, use Executors.newCachedThreadPool().

--
Johan
Akka Team

On Fri, Jun 2, 2017 at 5:15 AM, Yutao <[email protected]> wrote:

>
> Here is the Exception:
>
> Exception in thread "main" java.util.concurrent.TimeoutException: Futures
> timed out after [10000 milliseconds]
> [ERROR] [06/02/2017 11:11:55.295] [main] [Remoting] Remoting error:
> [Startup timed out. This is usually related to actor system host setting or
> host name resolution misconfiguration.] [
> akka.remote.RemoteTransportException: Startup timed out. This is usually
> related to actor system host setting or host name resolution
> misconfiguration.
> at akka.remote.Remoting.akka$remote$Remoting$$notifyError(
> Remoting.scala:135)
> at akka.remote.Remoting.start(Remoting.scala:197)
> at akka.remote.RemoteActorRefProvider.init(RemoteActorRefProvider.scala:
> 184)
> at akka.cluster.ClusterActorRefProvider.init(
> ClusterActorRefProvider.scala:58)
> at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:621)
> at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:618)
> at akka.actor.ActorSystemImpl._start(ActorSystem.scala:618)
> at akka.actor.ActorSystemImpl.start(ActorSystem.scala:635)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:119)
> at akka.actor.ActorSystem$.create(ActorSystem.scala:67)
> at akka.actor.ActorSystem.create(ActorSystem.scala)
> at com.huawei.akkacluster.splitbrain.plus.StartCluster.
> startup(StartCluster.java:52)
> at com.huawei.akkacluster.splitbrain.plus.StartCluster.
> main(StartCluster.java:31)
> Caused by: java.util.concurrent.TimeoutException: Futures timed out after
> [10000 milliseconds]
> at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
> at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
> at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:107)
> at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(
> BlockContext.scala:53)
> at scala.concurrent.Await$.result(package.scala:107)
> at akka.remote.Remoting.start(Remoting.scala:179)
> ... 12 more
> ]
> at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
> at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
> at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:107)
> at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(
> BlockContext.scala:53)
> at scala.concurrent.Await$.result(package.scala:107)
> at akka.remote.Remoting.start(Remoting.scala:179)
> at akka.remote.RemoteActorRefProvider.init(RemoteActorRefProvider.scala:
> 184)
> at akka.cluster.ClusterActorRefProvider.init(
> ClusterActorRefProvider.scala:58)
> at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:621)
> at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:618)
> at akka.actor.ActorSystemImpl._start(ActorSystem.scala:618)
> at akka.actor.ActorSystemImpl.start(ActorSystem.scala:635)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)
> at akka.actor.ActorSystem$.apply(ActorSystem.scala:119)
> at akka.actor.ActorSystem$.create(ActorSystem.scala:67)
> at akka.actor.ActorSystem.create(ActorSystem.scala)
> at com.huawei.akkacluster.splitbrain.plus.StartCluster.
> startup(StartCluster.java:52)
> at com.huawei.akkacluster.splitbrain.plus.StartCluster.
> main(StartCluster.java:31)
>
> 在 2017年6月2日星期五 UTC+8上午10:28:31,Yutao写道:
>
>> I config use-dispatcher-for-io to "akka.remote.default-remote-dispatcher",
>> but Actorsystem start failed and throws Futures timeout Exception.
>>
>>
>> <https://lh3.googleusercontent.com/-T3fHJ07z-DI/WTDMkE6jw2I/AAAAAAAAANs/EMAv9vdfdYY_mxe3sdyfwKjgsACCfCqiwCLcB/s1600/2017-06-02_102428.png>
>>
>> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to