You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/06/05 17:48:35 UTC

DO NOT REPLY [Bug 42590] New: - Performance Issue Need Help

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42590

           Summary: Performance Issue Need Help
           Product: Fop
           Version: all
          Platform: Sun
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P1
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: Manoj.Miryala@brodart.com


We created a code snippet to convert XML+XSL to PDF using FOP.
We are using OC4j as Application Server.
Here is the code:

      FopFactory fopFactory = FopFactory.newInstance();
      FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
      OutputStream out = new BufferedOutputStream(new FileOutputStream(new     
               
                                                       file("/brodart.pdf")));
      try
     
{System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xalan.processor.TransformerFactoryImpl");
        Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
        TransformerFactory factory = TransformerFactory.newInstance();
        Transformer transformer = factory.newTransformer(new StreamSource(new
File("/Brodart.xsl")));
        transformer.setParameter("versionParam", "2.0");
        Source src = new StreamSource(new File("/brodart.xml"));
        Result res = new SAXResult(fop.getDefaultHandler());
        transformer.transform(src, res);


It is taking around 15 minutes to complete this process. This will be huge
performance issue. Please help me out asap.

Have anybody related problems?
Are the usage of Templates better for the Transformation process?
deeply grateful for any advice!

thanks to the community!

Manoj

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 42590] - Performance Issue Need Help

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42590


manuel@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From manuel@apache.org  2007-06-06 01:47 -------
If you need help please post this on the fop-user mailing list. Using BugZilla
to get help is both inappropriate and largely ineffective as very few people
will see this compared to the number of people watching the fop-user mailing list.

The first thing I would try is to isolate the problem. 

a) Take the appserver out of the equation and run fop from the command line
b) Run the XSLT transformation on its own to produce the fo file
c) Run the fo file without the XSLT step through fop

Other relevant questions could be:

How large is the FO file?
Are you creating large tables spanning many pages?
Are you accessing external resources (over the net), e.g. images?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 42590] - Performance Issue Need Help

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42590





------- Additional Comments From Manoj.Miryala@brodart.com  2007-06-05 08:51 -------
Created an attachment (id=20314)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20314&action=view)
Contains XML and XSL files


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.