Sigurpall Johannsson wrote:

> Hi all
>
> Can anybody help me with this one:
> My servlets crash 1-2 times each 24 hours.
> When I check out my error log file this is the output:
> java.lang.OutOfMemoryError
>         at org.apache.jserv.JServConnection.processRequest(Compiled Code)
>         at org.apache.jserv.JServConnection.run(Compiled Code)
>         at java.lang.Thread.run(Compiled Code)
>
> Also can anybody guide me where to catch this error.
>

This error means that the JVM you are running Apache JServ in ran out of heap
space, so it could no longer create any new objects.  There is no single place
you can catch this -- what you need to do is avoid it by one (or both) of the
following approaches:

* Increase the maximum heap space of the JVM running JServ.
  The default is usually something like 16mb or 32mb.

* Look through your code for places where you are allocating
  objects and then maintaining references to them (so that the
  garbage collector cannot recycle them).

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to