performance gone down with AHC and time out errors

149 views
Skip to first unread message

Nitin Handa

unread,
Jun 6, 2014, 2:10:24 AM6/6/14
to asyncht...@googlegroups.com
Hi,
I just now switched our default JDK's HttpURLConnecton based implementation with Grizzly based AHC but I see that performance of our app has gone down with AHC. I am also seeing below errors very frequently even though timeout is set to 60 second:

aused by: java.io.IOException: java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Timeout exceeded
        at oracle.idm.gateway.grs.client.HttpClient.execute(HttpClient.java:319)
        at oracle.idm.gateway.grs.scenario.executor.AbstractInvokeAssertionExecutor.invokeWebApp(AbstractInvokeAssertionExecutor.java:339)
        ... 17 more
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: Timeout exceeded
        at org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet(SafeFutureImpl.java:349)
        at org.glassfish.grizzly.impl.SafeFutureImpl.get(SafeFutureImpl.java:255)
        at com.ning.http.client.providers.grizzly.GrizzlyResponseFuture.get(GrizzlyResponseFuture.java:165)
        at oracle.idm.gateway.grs.client.HttpClient.execute(HttpClient.java:315)
        ... 18 more
Caused by: java.util.concurrent.TimeoutException: Timeout exceeded
        at com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider.timeout(GrizzlyAsyncHttpProvider.java:536)
        at com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider$3.onTimeout(GrizzlyAsyncHttpProvider.java:369)
        at org.glassfish.grizzly.utils.IdleTimeoutFilter$DefaultWorker.doWork(IdleTimeoutFilter.java:398)
        at org.glassfish.grizzly.utils.IdleTimeoutFilter$DefaultWorker.doWork(IdleTimeoutFilter.java:377)
        at org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable.run(DelayedExecutor.java:158)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        ... 1 more



Another set of error that i see is:

Caused by: java.util.concurrent.ExecutionException: java.io.IOException: Mark not set
        at org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet(SafeFutureImpl.java:349)
        at org.glassfish.grizzly.impl.SafeFutureImpl.get(SafeFutureImpl.java:255)
        at com.ning.http.client.providers.grizzly.GrizzlyResponseFuture.get(GrizzlyResponseFuture.java:165)
        at oracle.idm.gateway.grs.client.HttpClient.execute(HttpClient.java:315)
        ... 18 more
Caused by: java.io.IOException: Mark not set
        at org.glassfish.grizzly.http.io.InputBuffer.reset(InputBuffer.java:674)
        at org.glassfish.grizzly.http.server.NIOInputStreamImpl.reset(NIOInputStreamImpl.java:118)
        at com.ning.http.client.generators.InputStreamBodyGenerator$ISBody.read(InputStreamBodyGenerator.java:122)
        at com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider$BodyGeneratorBodyHandler.doHandle(GrizzlyAsyncHttpProvider.java:2335)
        at com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider.sendRequest(GrizzlyAsyncHttpProvider.java:575)
        at com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider$AsyncHttpClientFilter.sendAsGrizzlyRequest(GrizzlyAsyncHttpProvider.java:959)
        at com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider$AsyncHttpClientFilter.handleWrite(GrizzlyAsyncHttpProvider.java:837)
        at org.glassfish.grizzly.filterchain.ExecutorResolver$8.execute(ExecutorResolver.java:111)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)


does anyone has any clue on above?

Thanks!
Nitin

Alexey S

unread,
Jun 6, 2014, 4:04:33 AM6/6/14
to asyncht...@googlegroups.com
Pls. send me the testcase to reproduce the problem.

WBR,
Alexey.


--
You received this message because you are subscribed to the Google Groups "asynchttpclient" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asynchttpclie...@googlegroups.com.
To post to this group, send email to asyncht...@googlegroups.com.
Visit this group at http://groups.google.com/group/asynchttpclient.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages