Hi,

How  can I make JVM to use Xerces and Xalan that are distributed with FOP
are used ?

I have provided following optional argument
-Dorg.apache.commons.logging.simplelog.defaultlog=WARN/ERROR
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.Transfor
merFactoryImpl

but still results are same CPU rises to 99% and remain 99 until I restart
the tomcat....

I had tried with this approach where I had provided XSL and XML seperately
but still I am facing
same issue.....
////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////
 Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
  // Setup XSLT
 TransformerFactory factory = TransformerFactory.newInstance();
 Transformer transformer = factory.newTransformer(new StreamSource(xslt));
 // Setup input for XSLT transformation
 Source src = team.getSourceForProjectTeam();
// Resulting SAX events (the generated FO) must be piped through to FOP
Result res = new SAXResult(fop.getDefaultHandler());
// Start XSLT transformation and FOP processing
transformer.transform(src, res);
////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////
Here i am using the default example given with the FO-93 source
distribution...
is the other implementations are available to getDefaultHandler ?

Thanks,
Yatin

----- Original Message -----
From: "Andreas L Delmelle" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: 15, 09, 2007 5:45 PM
Subject: Re: Performance issue with FOP


> On Sep 12, 2007, at 18:35, Yatin Soni wrote:
>
> Hello
>
> > ----- Original Message -----
> > From: "J.Pietschmann" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: 04, 09, 2007 12:49 AM
> > Subject: Re: Performance issue with FOP
> >
> >
> >> Yatin Soni wrote:
> >>> Now at the time of
> >>> transforming the XML document into PDF CPU usage rises to 99% and
> >>> not
> >>> getting down. Every time I am generating PDF I am facing same
> >>> problem
> >>> and this causes low performance at Server side. Please help me out
> >>> resolving this issue. How I can reduce the CPU usage?
> >>>
> >> [snip]
> >> First: which FOP release are you using? What Java version are you
> >> using? Whats the general environment?
> >>
> >> You should try to isolate the problem. Get the source XML written
> >> into a file and use the FOP command line to produce a PDF. Is the
> >> CPU load still high? Then run the XSLT separately, and run the
> >> resulting FO through the FOP command line again. This should give
> >> you an idea whether the problem is in the XSLT or with FOP. In the
> >> latter case, run it again giving the JVM more memory. If there's
> >> still a problem with FOP, post it again.
>
> > Thanks for reply.
> >
> > I am using FOP 0.93 build and java version i am using is JDK1.6 and
> > using
> > Windows 2000 as operating system...
>
> In your original post, you indicate that you are using a DOMSource,
> so my questions would be:
> * Have you tried SAX instead?
> * Did you try out different XML parsers (= different DOM
> implementations) than the one bundled with your JVM? (Note that the
> versions of Xerces and Xalan that are distributed with FOP are used
> only if your JVM does not bootstrap other versions or different
> vendors...)
>
>
> HTH!
>
> Cheers
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to