Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 76998 invoked by uid 500); 12 Oct 2001 10:58:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 76987 invoked from network); 12 Oct 2001 10:58:36 -0000 Message-ID: <20011012105835.23775.qmail@web20910.mail.yahoo.com> Date: Fri, 12 Oct 2001 11:58:35 +0100 (BST) From: =?iso-8859-1?q?Janek=20Bogucki?= Subject: Re: Can you assign low priority to a JSP? To: tomcat-user@jakarta.apache.org In-Reply-To: <001f01c152a7$5aa9fb70$25cc8780@uchicago.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N If you aren't acquiring a lock on some resource which would prevent the data entry JSPs from completing perhaps you could put the thread to sleep between rows. Just a thought. Janek Bogucki. --- Matt Fisher wrote: > I have a JSP which generates a huge report, output > as HTML. It's a total > resource hog. With thread-pooling enabled, I am able > to run at most two > instances of this JSP. At that point, no other > request gets a response from the > server (Apache 1.3.20; Tomcat 3.2.3) until at least > one of the reports finishes. > > Is there any way to assign a low priority to the > report JSP, so that it will > temporarily release resources as higher-priority > requests come in? The data > entry JSPs are of much higher priority.... > > I assume the problem is available threads. Is there > any way to check how many > threads are being used at any given time? > > The report does one large query, then loops through > each row in the result set, > and executes four subqueries for each row. Could > this be hogging all the > available threads? Any way to make the subqueries > reuse the same threads on each > iteration? > > Many questions, and many thanks for any advice you > can provide. At this point, > I'm very discouraged about Tomcat in general. > > One small bit of good news -- enabling thread > pooling, and trashing some pages > which did XML processing, has eliminated the out of > memory errors I'd been > seeing. > > Yours, > > - Matt > . . . . . . . . . . . . . . . > Matthew J. Fisher > Applications Programmer > University of Chicago Press > 1427 E. 60th Street > Chicago, IL 60637-2954 > Tel 773-834-5386 > ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie