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

Cheers,
Mathias

---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "spray.io User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spray-user.
> To view this discussion on the web visit https://groups.google.com/d/msgid/spray-user/715f267c-7f24-47ce-94f0-cf1769d816af%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages