geronimo-user mailing list archives

Re: Creation of new threads after closing response writer in Servlet in Little-G Jetty 2.0.1

Date

Fri, 14 Sep 2007 15:34:05 GMT

I did some debugging and followed the code until:
SelectChannelConnector$ConnectorEndPoint(SelectChannelEndPoint).run() line: 422
when this line is called the Treads will be created.
I guess this is Jetty code because I could not found it
in the Geronimo sources.
Which Jetty version is used is Geronimo 2.0.1?
When I look in the sources pom.xml it is 6.1.5, is this the used Version?
Thanks,
Mario
Mario Ruebsam wrote:
> Hello,
>
> after migrating successful from Little-G Jetty 1.1 to Little-G Jetty 2.0.1
> I detected some strange behavior when closing the Servlets response writer.
> Every time the writer is closed Geronimo or Jetty creates 10 new Threads
> in the DefaultThreadPool. The code snippet is below.
>
> In G 1.1 the same code has no impact on threads.
> Does anybody has the same experience? Is this a Jetty or a Geronimo
> problem?
>
> public void doGet(HttpServletRequest pRequest, HttpServletResponse
> pResponse) throws IOException, ServletException {
> <... do some stuff ...>
>
> PrintWriter tOut = pResponse.getWriter();
> tOut.write(tData);
> tOut.close();
> }
>
>
> Thanks,
> Mario
>