Hello,
I have written an application in Java that exposes an HTTP API through SPARK. It works well in manual tests using the REST Web Services Client in Chrome and in low volume automated Java tests using the Unirest API. When I run fast, repetitive automated single threaded Java tests with the Unirest API, the test times out and fails after as little as a few thousand or as many as over a hundred thousand repetitions. Prior to the timeout there is no apparent degradation in response times.
If I run the same repetitive test workload bypassing HTTP and calling the application Java directly there are no problems, even with a million repetitions and several concurrent client threads. Based on this behaviour I suspect (but I could be wrong) that the problem could be in Spark or in Jetty or in Unirest. I would like to know whether any members of this Spark group have experience with a problem like mine or can offer any tips for debugging it.
I have turned up the Jetty logging to debug and I am attaching the end of the log. I don't see anything in the log that explains the problem but I don't know Spark or Jetty well.
Thanks very much.
-Dan