jon * wrote:
> > in my servlet i've been getting out of memory errors and instead
> > of having the users see a "error 500 internal server error" message, i
> > thought it would be nice to just print the exception out to the screen
> > instead of having to look through the logs.
>
> There is no way that you will be able to deal with OOE's gracefully because
> the JVM may not have enough stack space to properly create the objects that
> it needs.
>
> The only issue is to give the JVM more stack space. If you feel that you
> have given the JVM more than enough stack space, then you probably have a
> memory leak in your application.
>
> -jon
if by OutOfMemoryException's i'm assuming i could run a System.gc() as teh
first statement in teh catch() and this would free up enough mem to write
stuff to the screen and log the exception.
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]