Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 74622 invoked from network); 14 Sep 2007 16:06:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2007 16:06:28 -0000 Received: (qmail 93310 invoked by uid 500); 14 Sep 2007 16:06:17 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 93277 invoked by uid 500); 14 Sep 2007 16:06:17 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Delivered-To: moderator for user@geronimo.apache.org Received: (qmail 55854 invoked by uid 99); 14 Sep 2007 14:57:15 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Message-ID: <46EAA10B.40908@coderesearch.com> Date: Fri, 14 Sep 2007 16:56:11 +0200 From: =?ISO-8859-1?Q?Mario_R=FCbsam?= User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Mario Ruebsam CC: user@geronimo.apache.org Subject: Re: Creation of new threads after closing response writer in Servlet in Little-G Jetty 2.0.1 References: <46EA6EB6.1010402@gmail.com> In-Reply-To: <46EA6EB6.1010402@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.12.2/Plesk_SWsoft, bases: 13092007 #395521, status: clean X-Virus-Checked: Checked by ClamAV on apache.org 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 >