It sounds like you may need to re-think your design. If the code is
too large to paste into an email then your class file maybe too large.
OptimizeIt and JProbe are just about it unless someone knows of another.
----- Original Message -----
From: Anantha_Krishnan <[EMAIL PROTECTED]>
Date: Thursday, August 23, 2001 7:11 pm
Subject: Re: Out Of Memory Space Error....StringBuffer.append problem
> OK..This is what Ive done and so far from now on I did not get
> that error.
> Think this must be the solution..
> a) A particular servlet had a String variable and It is the controller
> servlet that calls and instantiates other java classes used
> Class.ForNameand obj.getInstance().
>
> b) Since different class files are called based upon the links
> clicked, the
> page[html content] is streamed and written onto the browser. Now
> this string
> variable I have created to check whether all the parameters are
> passed from
> one class to other gets re-written again and again.This string has
> to pick
> up around 20 parameters from the hashmap and display the same. May
> be this
> is the reason. But Still I could not confirm It.
>
> c) I have downloaded JProbe profiler from www.sitraka.com and am
> analyzingmy code. If there are another "simpler" tool to do the
> same pl mail me the
> link.
> btw should this simple "String" variable create the problem??. May
> be Iam
> wrong. All other pages iam using String Buffer only and no
> problems there.
>
> d) Somebody asked me for the code. but to mail the code i have to
> mail the
> controller servlet code, the interfaces it is implementing and
> also a sample
> parameter list. Think this might be too big and unwanted I did not
> mail but
> only did so with the error I got.
>
> thanks
> ananth
>
>
>
> -----Original Message-----
> From: T.A. Flores [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 9:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Out Of Memory Space Error....StringBuffer.append problem
>
>
> DID_YOU_PROFILE_YOUR_CODE?????? Your code only is doing exactly what
> you told it to do. There was no need to reformat your drive and
> re-
> install all your software.
>
> Moreover, if you suspect a particular method is the source of your
> problem post your code -to my knowledge there are no psychics on the
> list. . .
>
>
>
> ----- Original Message -----
> From: Anantha_Krishnan <[EMAIL PROTECTED]>
> Date: Thursday, August 23, 2001 9:11 am
> Subject: Out Of Memory Space Error....StringBuffer.append problem
>
> > 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,
> > CompiledCode)
> > 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:
> > Resources: http://java.sun.com/products/servlet/external-
> > resources.htmlLISTSERV 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:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV 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:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV 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