One more detail might help, when I stripped out all "//" in the original
stylesheet, the execution time on Tomcat decreased from 80 seconds to 6
seconds!
Of course, the revised stylesheet is a lot simpler.
Also, when running this stylesheet, the CPU usage shot up to 100%.
-Li
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 1:46 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Help: Xalan runs toooo slow on Tomcat
> and that because the servlet engine has to be able to reload classes,
> these methods are much more complicated, and therefore much slower,
in
that
> environment.
Wow, now that's interesting. I guess I'll have to take a look that
this.
-scott
Jeff Lansing
<jeff@polexis To:
[EMAIL PROTECTED]
.com> cc: (bcc: Scott
Boag/CAM/Lotus)
Subject: Re: Help: Xalan
runs toooo slow on Tomcat
06/28/01
04:03 PM
Please
respond to
xalan-dev
Li Liang wrote:
> Thansk for the reply, scott.
>
> Hopefully 2.2.0 will solve this problem. I still don't understand why
> there's such a big performance difference between command-line and
> Tomcat? BTW, I tried XT executable on NT from command line, it only
took
> 3 seconds!
Hi,
I had a performance problem which was like this, in that some code
running
as an application was dozens of times faster that the same code running
as
a
servlet. Eventually I was able to track the difference down. It turned
out
that the problem code was using Class.forName() and Class.newInstance()
a
lot, and that because the servlet engine has to be able to reload
classes,
these methods are much more complicated, and therefore much slower, in
that
environment.
It's just a guess, but Xalan does use these methods a lot too, and that
might be related to your problem.
Jeff