tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saurabh Arora" <Sar...@novell.com>
Subject RE: javac Memory Leak: STATUS request
Date Tue, 17 Dec 2002 05:26:50 GMT

Since you seem to using it in a production system, why donot you precompile the JSP's  into
classes using ant's jspc and javac task.

 In this way, you can remove runtime compilation, and then see if the problem is with your
application or javac.

saurabh 

>>> bcruz@norvax.com 12/17/02 06:15AM >>>
Thanks Torsten,

I'll try those settings. I was using the web.xml settings for tomcat 4.0.x
because it was the only documentation I could find.  We have thousands of
jsp pages that are getting compiled as they are accessed.  We just upgraded
to tomcat 4.1.17 from 3.2.4 so we have to recompile all our pages.

Brandon

-----Original Message-----
From: Torsten Fohrer [mailto:TFohrer@t-online.de] 
Sent: Monday, December 16, 2002 6:13 PM
To: Tomcat Users List
Subject: Re: javac Memory Leak: STATUS request



one question?

your tomcat does run more than a day, so i assume that he is a production
system.

memory leak in javac is only affected, if you compile a jsp page.
so?
how many times, you change your jsp pages?
if you don't change them, and memory usage increase.
it is possible a memory leak in your application.

here a simply howto to use jikes.

1. Install jikes
2. Changing conf/web.xml to following:
  <!-- If you wish to use Jikes to compile JSP
       -->
  <!--   Set the init parameter "compiler" to "jikes".
        -->
  <!--   the property "-Dbuild.compiler.emacs=true" when starting
cat    --
  <!--   by adding the above to your CATALINA_OPTS environment
iable.    --
  <!--   If you get an error reporting that jikes can't use UTF8
encoding, -->
  <!--   try setting the init parameter "javaEncoding" to
O-8859-1".    -->

    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>compiler</param-name>
            <param-value>jikes</param-value>
        </init-param>
        <init-param>
            <param-name>logVerbosityLevel</param-name>
            <param-value>WARNING</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>
3. Define  build.compiler as above noted
4. Setting a env variable named BOOTCLASSPATH to jre/lib/rt.jar

cu Torsten fohrer


On Tuesday 17 December 2002 01:06, you wrote:
> Does anyone know how I can confirm that I am actually using jikes?  I have
> entered all the configuration required, but sometimes when I get errors
> compiling, the output refers to javac still.
>
> It also seems like tomcat slowly takes more and more memory.
>
> Brandon
>
> -----Original Message-----
> From: Jeremy Joslin [mailto:jeremy@spotlife.com] 
> Sent: Monday, December 16, 2002 4:56 PM
> To: 'Tomcat Users List'
> Subject: RE: javac Memory Leak: STATUS request
>
>
> I don't know where you can get more information about this but have you
> considered using jikes instead of javac?  I don't know of any issues with
> jikes and its soooo much faster than javac :-)
>
> Jeremy
>
> > -----Original Message-----
> > From: Dan Payne [mailto:dpayne@sotx.org] 
> > Sent: Monday, December 16, 2002 2:32 PM
> > To: tomcat-user@jakarta.apache.org 
> > Subject: javac Memory Leak: STATUS request
> >
> > According to the Tomcat 4.1.12 release notes there is a javac memory
> > leak. I've searched the bug watch database at sun and have searched the
> > web as well but am having trouble finding the latest info on this. Has
it
> > been fixed? If so, what version of the JDK? I'm using 1.4.0_01 and my
> > productin server is crashing every 4 days with out of memory exceptions.
> >
> > Does anyone know where I can track this at/get more info at?
> >
> > Thanks a million. Ya'll have been great.
> >
> > -Dan
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:tomcat-user-
> > unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:tomcat-user-
> > help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org> For additional
> commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message