Ananth,
You should post your code so we can look at it.  If you have a logic
problem in the code, you could have an infinite loop that is calling the
append() method and this will cause an Out of Memory error.  Have you run
the servlet in a debugger yet?  If not, have you put debug statements in
the code to figure out how big the StringBuffer is before you get the error?

-Richard

At 12:11 AM 8/24/01 +0800, you wrote:
>Sir,
>Iam still getting the out of memory space error. I have formatted my machine
>re-installed all the softwares with plenty of space and the virtual memory
>is in extended range.
>Specifically I get the error as follows. Please some body help me to solve
>this.
>////////////////////////////////////////////////////////////////////////////
>/////////////////////
>Error. The server encountered an unexpected condition which prevented it
>from fulfilling the request.
>java.lang.OutOfMemoryError
>         at java.lang.StringBuffer.append(StringBuffer.java, Compiled Code)
>         at
>com.trd.moneymaximizer.MMServlet.removeSessionAttributes(MMServlet.java,
>Compiled Code)
>         at com.trd.moneymaximizer.MMServlet.mainEngine(MMServlet.java,
>Compiled Code)
>         at com.trd.moneymaximizer.MMServlet.doGet(MMServlet.java, Compiled
>Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
>Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
>Code)
>         at
>com.unify.ewave.servletexec.ServletExec.CallServletService(ServletExec.java,
>Compiled Code)
>         at
>com.unify.ewave.servletexec.ServletExec.processServletRequest(ServletExec.ja
>va, Compiled Code)
>         at
>com.unify.ewave.servletexec.ServletExec.ProcessRequest(ServletExec.java,
>Compiled Code)
>         at
>com.unify.ewave.servletexec.ServletExec.ProcessRequest(ServletExec.java,
>Compiled Code)
>
>////////////////////////////////////////////////////////////////////////////
>/////////////////////
>
>It is the StringBuffer.append that is giving me the problems. What could be
>the solution. Iam constructing a full html page as a string and appending it
>to stringbuffer and "writing" the stream onto the browser.
>
>regards
>ananth
>
>___________________________________________________________________________
>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

___________________________________________________________________________
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