Gettiing AskTimeoutException after running for a few minutes
165 views
Skip to first unread message
des.m...@gmail.com
unread,
Aug 29, 2014, 4:03:24 PM8/29/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spray...@googlegroups.com
Hi
I am querying a web service using spray-client every 10ms. The app runs fine for a while but after a few minutes I start getting a continuous AskTimeoutException and have no idea why. The web service I am querying is fully responsive. I tried setting the akka logging level to debug to try to find more detail but for some reason when debugging is on it never times out. I have pasted the full stack trace below. Any pointers greatly appreciated
Regards Des
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://default/user/IO-HTTP#-2000611517]] after [60000 ms] at akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:333) at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117) at scala.concurrent.Future$InternalCallbackExecutor$.scala$concurrent$Future$InternalCallbackExecutor$$unbatchedExecute(Future.scala:694) at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:691) at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467) at akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419) at akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423) at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375) at java.lang.Thread.run(Thread.java:745)
Mathias Doenitz
unread,
Sep 1, 2014, 8:32:42 AM9/1/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spray...@googlegroups.com
Des,
100 reqs/s to one service might be more than your system, the server and/or the network can handle.
I’d say the time out you start getting is due to work piling up and eventually hitting the timeout barrier.
Try increasing the polling time and see whether the problem goes away.