Hi,

The answer is not always to throw more memory at your application.

The best answer is to test whether you actually need more memory or whether you 
are leaking it somehow. 

So find a profiler, get it to talk to Tomcat, and then run your JSP and watch 
the method call tree, heap monitor and hot spots etc... You will need to grab 
something like JProfiler, JProbe or others ... they usually know how to connect 
to Tomcat 5 for you, it's not too hard.

Also, you may want to upgrade your Tomcat I think 5.0.19 had an issue anyway 
with memory, and finally you'll want to ensure when dealing with database 
connectivity that you are freeing up resources like result sets and so on with 
close() calls (depending on what you are doing).

Allistair.

> -----Original Message-----
> From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
> Sent: 08 March 2005 16:39
> To: Tomcat-User-ML
> Subject: Tomcat 5 java.lang.outOfMemory
> 
> 
> Hi all,
> 
> I have an environment with Tomcat 5.0.19 and java 1.4.02, on 
> windows 2000
> server platform.
> 
> Tomcat 5 was installed with Services.
> 
> I have changed in catalina.bat :
> 
> set CATALINA_OPTS=" -server -Xmx1200m  -Xms1200m -Xss256k"
> 
> 
> Usually the sistem works fine, but  when I try to find a lot 
> of data  (in
> the database) using jsp, i got this error:
> 
> 
> javax.servlet.ServletException
> 
> org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
> n(PageContextI
> mpl.java:867)
> 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImp
> l.java:800)
> 
> org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
> visconsumi_jsp
> .java:810)
>       
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:3
> 11)
>       
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:301)
>       
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> root cause
> 
> java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
> advanceFrancesco.
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com";>www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to