Hi!

Mina will catch those exceptions and call exceptionCaught(). The OOM is a 
special situation, because the may be no memory to handle the error/exception. 
So if you got an OOM, try to shutdown as fast and clean as possible but beware 
that there may be another OOM while you're shutting down!

regards

Steve


> Steve Johns [mailto:[EMAIL PROTECTED] wrote:
>
> Thanks. If any exceptions happen in filters NOT catched by my program,
> will
> mina io processor stop response the client at certain point? Because my
> server works fine for 2 days but suddently stop response (accept still
> worked). Therefore I guess maybe some unexpeced exceptions causes this
> problem?
>
> On Mon, May 5, 2008 at 7:07 PM, Emmanuel Lecharny
> <[EMAIL PROTECTED]>
> wrote:
>
> >  Steve Johns wrote:
> >
> > > I observed after I got
> > > org.apache.mina.filter.codec.ProtocolEncoderException:
> > > java.lang.OutOfMemoryError: Java heap space. The server is still
> > > working. Is
> > > that normal?
> > >
> > It's not because you get an exception that the server will stop
> running.
> > At some point, some memory can be released, and you can accept some
> more
> > tasks.
> >
> > Just try to check why you get this OOM.
> >
> > --
> > --
> > cordialement, regards,
> > Emmanuel Lécharny
> > www.iktek.com
> > directory.apache.org
> >
> >
> >

Reply via email to