> 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
- Help: Xalan runs toooo slow on Tomcat Li Liang
- Re: Help: Xalan runs toooo slow on Tomcat Scott_Boag
- RE: Help: Xalan runs toooo slow on Tomcat Li Liang
- Re: Help: Xalan runs toooo slow on Tomcat Jeff Lansing
- RE: Help: Xalan runs toooo slow on Tomcat Scott_Boag
- RE: Help: Xalan runs toooo slow on Tomcat Li Liang
