----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Look in your jserv.log for a fuller stack trace for the
java.lang.OutOfMemoryError for a better idea of where the problem exists.
I've seen this in 2 different occasions:
1) My servlet was creating a response by first cacheing the response in a
StringBuffer. At one point, the response got so large,
StringBugger.expandCapacity() was failing. So I had to not cache the whole
response in my servlet.
2) A large POST was sent to the servlet. The VM ran out of memory during
HttpUtils.parsePostData(), which would happen as soon as I would call
getParameterValues() in doPost() of my servlet. In this case, I had to catch
the OutOfMemoryError and do a sendError().
Again, a stack trace in jserv.log should give you a better idea of what is
causing the OutOfMemoryError to occur.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> Schulz
> Sent: Wednesday, June 07, 2000 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: OutOfMemoryError
>
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hallo,
>
> i use Apache 1.3.12 with Jserv 1.1 with SuSE-Linux 6.4 and
> JDK 1.2.2-RC4.
> Sometimes i´ve got the following error-message:
>
> ###########################################################
> java.lang.OutOfMemoryError
> at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java,
> Compiled Code)
> at org.apache.jserv.JServConnection.run(JServConnection.java,
> Compiled C
> ode)
> at java.lang.Thread.run(Thread.java, Compiled Code)
> ###########################################################
>
>
> How can this error happen?
>
> Michael
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]