Java Mailing List Archive

http://www.junlu.com/

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

Re: Recovery from OutOfMemoryError?

Andrew Miehs

2007-07-31

Replies:

On 31/07/2007, at 7:19 PM, Caldarale, Charles R wrote:

>> From: Craig Berry [mailto:Craig.Berry@(protected)]
>> Subject: RE: Recovery from OutOfMemoryError?
>>
>> It depends on what the user chooses to do during
>> the session.
>
> Again, try another point of view. It's what the webapps choose to
> do in
> response to user requests that provoke the problem. Is there some
> spot
> in your code that's making a grab for a big array and failing to
> handle
> the possibility of allocation failure? Or have you simply
> over-configured the number of connector threads for the size heap
> you're
> running?

I would also strongly agree with the fix the problem solution, but if
you really want to 'kick' your users out - then have a look at swatch.
IIRC it can perform a task on receiving a log message.

Cheers

Andrew


---------------------------------------------------------------------
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.