Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 92824 invoked from network); 1 Aug 2007 13:33:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2007 13:33:39 -0000 Received: (qmail 71195 invoked by uid 500); 1 Aug 2007 13:33:27 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71169 invoked by uid 500); 1 Aug 2007 13:33:27 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 71158 invoked by uid 99); 1 Aug 2007 13:33:27 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 06:33:27 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [63.240.77.85] (HELO sccrmhc15.comcast.net) (63.240.77.85) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 13:33:16 +0000 Received: from [192.168.1.101] (c-68-50-0-179.hsd1.va.comcast.net[68.50.0.179]) by comcast.net (sccrmhc15) with ESMTP id <20070801133259015001vv9ae>; Wed, 1 Aug 2007 13:32:59 +0000 Message-ID: <46B08B8B.2080803@christopherschultz.net> Date: Wed, 01 Aug 2007 09:32:59 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Recovery from OutOfMemoryError? References: <46AF8A4A.90501@christopherschultz.net> <327858f40707311451g74b2bbf9w4e386429a8d9947b@mail.gmail.com> <46AFB82A.6070201@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:chris@christopherschultz.net] >> Subject: Re: Recovery from OutOfMemoryError? >> >> Are you suggesting that all methods should be written as a >> loops around attempts to do real work, catching OOME and >> re-trying until the work gets done? > > Sort of, but not at the method level - something on a larger scale. > Think recoverable database operations, where nothing is permanently > stored until a commit happens. And perpetual retry isn't needed - just > a failure return to the caller. I generally think of this as "failure return" as simply allowing the exception to propagate. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGsIuK9CaO5/Lv0PARAgchAJwNisfWQClMub7qmUj8/smKxbonVwCfQDrb bwYmaWlh5u+7gClpLMq41KI= =iOsg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org