Hello Team...

I have created a simple example that embeds Jetty 9 and responds with
"Hello World!" upon HTTP request. Please refer to the
following Gist containing jetty embedding & handler code:
https://gist.github.com/azagniotov/6c8cc6d390b4cba32eb5

My problem is that it takes ~30 secs for Jetty to process 3rd (and N web
request).

Steps to produce the problem:
=======================
When I browse to http://localhost:8080 for the first time, I get the
expected response "Hello World!". After a second or two, when I refresh
using cmmd+r, I also get the expected response. When I refresh the page for
the second time (again after a second or two using cmmd+r), the response is
pending and it takes nearly 25-30 seconds to get back the expected response
(I was inspecting Network tab in Chrome's Developer Tools). Please refer to
the following Gist containing Jetty startup log and logs from the first 3
requests after startup:
https://gist.github.com/azagniotov/100ca501b892ab3db05e

I can recreate this scenario every time upon Jetty startup and while jetty
is running (2nd or 3rd refresh response takes 25-30 secs to render). I know
that 30 secs is the default idle timeout for Jetty, I am not sure whether
it is related. That said, I tried to lower the default idle time to 100
milliseconds and I could not replicate this scenario anymore.

Can you please advise?

My env:
= Jetty v9.2.9.v20150224
= Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
   Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
= Chrome v41.0.2272.89 (64-bit)
= Mac OS X Lion 10.7.5 (11G63)
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to