tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Trollinger" <jaka...@trollingers.com>
Subject RE: Javac memory leak
Date Thu, 21 Nov 2002 16:15:25 GMT
When I run the examples with -verbose:gc this is what I get (just the
snippits at the end)

>From uncompiled jsp pages 

[GC 14707K->13665K(28412K), 0.0059002 secs]
[GC 15521K->15518K(28412K), 0.0128997 secs]
[GC 17374K->16086K(28412K), 0.0092266 secs]
[GC 17942K->16258K(28412K), 0.0086307 secs]
[GC 18114K->16213K(28412K), 0.0046327 secs]
[GC 18069K->17934K(28412K), 0.0114056 secs]
[GC 19790K->19672K(28412K), 0.0155838 secs]

Did you see me on the stderr window?


Did you see me on the browser window as well?

[GC 21520K->20092K(28412K), 0.0094920 secs]
[GC 21947K->20095K(28412K), 0.0075890 secs]
[GC 21951K->21758K(28412K), 0.0131385 secs]
[GC 23614K->23528K(28412K), 0.0137372 secs]
[GC 25384K->23769K(28412K), 0.0079125 secs]
[GC 25625K->24336K(28412K), 0.0073652 secs]
[GC 26192K->26170K(28412K), 0.0153369 secs]
[GC 28026K->27460K(29436K), 0.0190963 secs]
[Full GC 27460K->15538K(29436K), 0.2839948 secs]
[GC 17394K->15720K(28412K), 0.0060262 secs]
[GC 17575K->15746K(28412K), 0.0046218 secs]
[GC 17602K->15745K(28412K), 0.0027241 secs]
[GC 17601K->15745K(28412K), 0.0025604 secs]
[GC 17601K->15746K(28412K), 0.0026679 secs]
Stopping service Tomcat-Standalone

>From compiled jsp pages

[GC 11356K->10577K(14028K), 0.0061505 secs]
[GC 11532K->11034K(14028K), 0.0046978 secs]
[GC 11994K->11305K(14028K), 0.0060575 secs]
[GC 12265K->11341K(14028K), 0.0059876 secs]
[GC 12297K->11396K(14028K), 0.0065578 secs]
[GC 12356K->11538K(14028K), 0.0063572 secs]
[GC 12498K->11598K(14028K), 0.0040036 secs]
[GC 12558K->11965K(14028K), 0.0052529 secs]

Did you see me on the stderr window?


Did you see me on the browser window as well?

[GC 12925K->12020K(14028K), 0.0046872 secs]
Stopping service Tomcat-Standalone


As you can see there is about a 4 meg diff between the two

This is using j2sdk 1.4.1 on windows XP with 512 ram using tomcat
4.1.14LE

> -----Original Message-----
> From: peter lin [mailto:peter.lin@labs.gte.com] 
> Sent: Thursday, November 21, 2002 10:56 AM
> To: Tomcat Developers List
> Subject: Re: Javac memory leak
> 
> 
> 
> Just to double check against tomcat 4.1.12, the memory usage 
> seems normal to me John.  After tomcat starts up, it is using 
> 23megs.  My webapp loads when tomcat starts up, so your 
> numbers may be lower.  The system has 256megs of memory and 
> 750mhz cpu.
> 
> after I I hit all the pages in /examples/jsp/ directory, the 
> memory allocated to java is 40megs.
> 
> I even ran it with OptimizeIt and I don't see any memory leaks.
> 
> peter
> 
> 
> peter lin wrote:
> > 
> > that is unusual. I've done baseline performance tests with the 
> > standard examples and haven't seen that kind of behavior with 
> > 4.1.10-12.  Can you start tomcat with verbose:gc and see 
> what kind of 
> > output you're getting.  Just because the memory allocated 
> to Java is 
> > 58megs at the end, it doesn't mean it's actually using all of it 
> > actively.  getting the GC output will tell you how much memory is 
> > being used, when GC runs and whether or not a fullGC ran.
> > 
> > in past experience with 4.0.4, after loading all the example pages 
> > tomcat's memory allocation is around 45megs.
> > 
> > peter
> > 
> > John Trollinger wrote:
> > >
> > > 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>
> 
> --
> 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