Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Recovery from OutOfMemoryError?

Caldarale, Charles R

2007-07-31

Replies:

> From: Christopher Schultz [mailto:chris@(protected)]
> 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.

> IMHO, it's not a library's problem if there wasn't enough memory to
> perform its duty. It's the driver's responsibility to catch and
> re-attempt anything important.

Agreed. Unfortunately, many such drivers seem to ignore the possibility
of failure of libraries.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.