Re: StandardClassLoader ?

2004-08-08 Thread Brian Pane
Remy Maucherat wrote:
I agree. I'm kinda running out of optimization ideas, though (I don't 
know if you profiled the regular request processing lately, but 
there's really nothing left). There doesn't seem to be too much which 
is doable with the startup overall.

I've found that the parsing of the default server.xml during Tomcat
5.0.27 startup takes 1.5 seconds on my test system.  In comparison,
the SAX-based element-counter sample program shipped with Xerces-J
takes less than 100 ms to parse the same file on the same hardware.
Based on this, my hypothesis is that the SAX callback handlers in
org.apache.tomcat.util.digester.Digester may account for a lot of
the parsing time.  Does that match what you've found in your profiling?
(I only have coarse-grained profiling data from adding
System#currentTimeMillis calls to the Tomcat code.  I haven't yet
figured out how to use -Xrunhprof without slowing Tomcat to a crawl.)
Brian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Fwd: Re: Some benchs results : WAS: Invitation to HTTPD commiters in tomcat-dev]

2004-07-28 Thread Brian Pane
Remy Maucherat wrote:
Filip Hanik - Dev wrote:
The Java VM does this through file handling, we would have to find 
out where it issues this call and if we can get around it. The
Tomcat developers are not calling stat anywhere in the code, but the 
underlying JVM code does, we just don't know where
 

Ok. Well, I think there's no such thing, as the test was about a 
servlet. There's also a cache, so it won't go to the HD too often, but 
of course, I don't know how it really works. Also something to 
remember is that the HelloWorld example servlet is a very bad 
throughtput test: it has a very expensive i18n operation (it retrieves 
a resource bundle on each request), which Apache doesn't do. So it 
would be better to either test with a static file, or write a new 
servlet with the same output (minus i18n).

I was testing the delivery of a static file, not a servlet, when I found 
the stat calls.
The stats don't happen with servlets in general; it's just the default 
static-file handler
service that has this overhead (in Tomcat 5.0.25 and 5.0.27; I haven't 
tried any
other versions).

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