Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 10763 invoked from network); 14 Sep 2003 13:40:39 -0000 Received: from unknown (HELO mta8.adelphia.net) (68.168.78.196) by daedalus.apache.org with SMTP; 14 Sep 2003 13:40:39 -0000 Received: from there ([24.48.186.186]) by mta8.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with SMTP id <20030914134042.JMMO16966.mta8.adelphia.net@there> for ; Sun, 14 Sep 2003 09:40:42 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Ben Souther Reply-To: bsouther@fwdco.com To: "Tomcat Users List" Subject: Re: Generating huge reports via servlets Date: Sun, 14 Sep 2003 09:30:00 -0400 X-Mailer: KMail [version 1.3.1] References: <238E33C3D1FFD511A79700D0B7A97A35C8F4B5@NOELANI> In-Reply-To: <238E33C3D1FFD511A79700D0B7A97A35C8F4B5@NOELANI> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20030914134042.JMMO16966.mta8.adelphia.net@there> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Is it the size of the file or the amount of time that it takes to generate it?. Try serving up a static copy of the report after it's finished. If you can serve up a static version, then it's probably not the size. We've got some large reports (>5meg) that can take up to 15 minutes to generate. Instead of having the user sit at a blank screen while it's being run, we kick off the report and immeditately forward the context to a status JSP. The status page refereshes every 20 seconds, checking to see what reports are complete. Once complete, we provide a link to a servlet that streams the report to the user's browser. On Friday 12 September 2003 11:36 am, you wrote: > Hello All, > > I have a servlet that generates reports in CSV format. When the content > size of the report is small, it works fine. But if the content size is 4MB, > I get a 404 error but no exceptions. I tried setBufferSize(4MB) and > contentSize to the actual size of the report but that didnt help much. I am > running Tomcat 4.1.27. Please help. > > Vijay > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org