ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Choe <choep...@mindspring.com>
Subject Re: jspc
Date Wed, 08 May 2002 17:40:35 GMT
i read about it in the tomcat-user mailing list.  here is the mail i read.

Hello Rick, List,
Sorry for going off topic.
Where can I find more information about the memory leak in jdk 1.4?
Regards,
Richard
At 02:34 PM 2002-05-07 -0400, you wrote:
Hi Laura,
There is a memory leak in javac in JVM 1.4. Unless you precompile with
jspc, javac is called repeatedly and eats all your memory. The javac in JVM
1.3.1 doesn't do this, so you can work around the problem either way.
Also, your web apps may be exceeding the allocated stacks and heaps that the
default java uses. You can change those values in tomcat/bin/catalina.sh.
Run java -X from the command line to see the flags for changing the maximum
stack and heap sizes.
Be aware, the -X options are nonstandard and can (and frequently do) change
with new versions of the JVM.
Hope this helps,
Rick
----- Original Message -----
From: "Laura" <lauradiara@libero.it>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, May 07, 2002 8:12 AM
Subject: Tomcat memory problem ?

 > Hi all,
 >
 > my system is this: I have a solaris machine (2GB RAM) with apache 1.3.19
and
 > two instances of Tomcat 4.0.3 in a load balancer configuration.
 >
 > I started all three days ago: this morning I have found the two Tomcat
dead.
 > All my servlets didn't respond and all the system was dead.
 >
 > It's terrible.
 >
 > Did someone ever have this problem?
 > Often I read in the mail list that there is some problem in memory in
Tomcat:
 > is it true?
 >
 > Does someone know something?
 >
 >
 > Bye
 >
 >
 > Laura
 >

At 01:30 PM 5/8/2002, Paul Hodgetts wrote:
>Peter Choe wrote:
>
> > i have read that javac of jdk1.4 has a memory leak and to prevent this from
> > happening, i should precompile my jsp codes with <jspc>. i have ant
> > 1.4.1. when i try to run a build.xml file with <jspc> i get:
>
>I'm curious about this memory leak. Do you have a reference to
>something you read that describes it?  How will precompiling with
>jspc prevent it?
>
> > /export/home/tomcat/webapps/peter/WEB-INF/build.xml:46: Could not create
> > task of type: jspc. Common solutions are to use taskdef to declare your
> > task, or, if this is an optional task, to put the optional.jar in the lib
> > directory of your ant installation (ANT_HOME).
> >
> > i have the optional.jar file in the $ANT_HOME/lib directory. when i tried
> > to see the optional.jar file i didn't see anything about jspc class. is it
> > not fully implemented yet?
>
>I don't think it's in 1.4.1, but it's in the 1.5 beta.  Do you
>have the Jasper jars in the classpath?
>
>Regards,
>Paul
>-----
>Paul Hodgetts -- Principal Consultant
>Agile Logic -- www.agilelogic.com
>Training, Mentoring, Development -- Agile Processes, XP, Java, J2EE, C++
>
>
>--
>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message