Tomcat doesn't pick up CATALINA_OPTS when run as a service.
The arguments for the service are held in the registry.
More details here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/windows-service-howto.html

and in the archives of this list.

HTH,

Jon

PS: you should still profile your app, though ;)


Francesco Pellegrini wrote:
Thanks for your answers,

I want to upgrade Tomcat, but wich version can I use?

Thanks.

-----Messaggio originale-----
Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
Inviato: marted́ 8 marzo 2005 17.46
A: Tomcat Users List
Oggetto: RE: Tomcat 5 java.lang.outOfMemory


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.




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



Reply via email to