tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Brozio" <Holger.Bro...@online.de>
Subject Re: Javac memory leak
Date Thu, 21 Nov 2002 14:39:57 GMT
I think we should define memory leak.

During the precompilation of the jsp pages, the resulting class files are
also loaded by the
classloader. This means of course, that the memory size increases.
It is up to the garbage collector to remove the loaded classes from memory.
In other words, it depends how long you wait after the precompilation with
your memory
measurement. If you look at the memory size immediate after the
precompilation, the size
is higher. If you wait a certain time frame and don't call any jsp page, the
garbage collector
should run and remove all unused instances of jsp classes.

HTH

Holger
----- Original Message -----
From: "John Trollinger" <jakarta@trollingers.com>
To: "'Tomcat Developers List'" <tomcat-dev@jakarta.apache.org>
Sent: Thursday, November 21, 2002 3:22 PM
Subject: RE: Javac memory leak


> Ok,
>
> I did some testing running 4.1.14 as a service...
>
> Now my knowledge of memory management is not so good so this might mean
> nothing.
>
> When running as a service if I goto every example jsp page (the examples
> that come with the install)
>
> Compiled
> Memory starts at 37872 and ends at 39048
>
> Not compiled
> Memory starts at 39635 and ends at 58760
>
> Does this not look like a memory leak in the jsp compile code??
>
> Thanks,
>
> John
>
>
> > -----Original Message-----
> > From: Holger Brozio [mailto:Holger.Brozio@online.de]
> > Sent: Wednesday, November 20, 2002 12:14 PM
> > To: Tomcat Developers List
> > Subject: Re: Javac memory leak
> >
> >
> > I also have no memory leak problems now with Tomcat 4.1.12.
> > But i'm using jikes instead of javac as jsp page compiler.
> >
> > Whats about switching to jikes. If the memory leak problem is
> > gone with jikes, javac still leaks memory, otherwise it is a
> > problem in the jsp pages.
> >
> > Cheers
> >
> > Holger
> > ----- Original Message -----
> > From: "John Trollinger" <jakarta@trollingers.com>
> > To: <tomcat-dev@jakarta.apache.org>
> > Sent: Wednesday, November 20, 2002 3:39 PM
> > Subject: Javac memory leak
> >
> >
> > > Does anyone know if the javac memory leak still exists
> > (1.4.1 docs say
> > > it does not).
> > >
> > > I have a test the goes through a bunch of jsp pages and if they are
> > > not precompiled I get a out of memory exception.
> > >
> > >
> > > Thanks,
> > >
> > > John
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:tomcat-dev-help@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-dev-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-dev-help@jakarta.apache.org>
>


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


Mime
View raw message