Jignesh-NX01880 Kapadia
2004-01-12 15:39:22 UTC
Hi Chris & John ,
Thanks a lot for your responses. I' m answering your questions and the info
you have asked as below.
For Chris
This application was developed by third party for us and delivered to us. Now
since it is very slow we need to modify it to make it less memory intensive. The
approach they have used is as follows.
1) The data retrieved from database is converted in to XML.
2) That XML file with the help of -it is converted in PDF.
3) The FOP version used is 0.20.4rc
For John,
we do have load balancing of application servers. Both the servers have single
CPU and JVM size on each can be extended to 1GB at max. We have XSLT
transformations also as I mentioned above in Chris's response.
Do you guys think 0.20.5 will have a better performance time then 0.20.4rc.
I am attaching a sample code from one of the main method which generates PDF
file from our PDF Servlet. and please do suggest any alternative if you think it
can be done in better way to improve processing speed.
and then it is written to output as follows:
byte[] content = generate(contextRoot, contextRootURL, generateParams,
templateType, templateName,
targetLanguage, xmlPriceBook, cover, pdfCharts, false);
// session.setAttribute("LAST_PDF", content);
File outFile = new File(baseDirectory + "cache/" +
userProfile.getUserId() + ".pdf");
FileOutputStream fos = new FileOutputStream(outFile);
fos.write(content);
fos.close();
response.sendRedirect(baseHTTP_URL + "cache/" +
userProfile.getUserId() + ".pdf");
Thanks and your help will be really appreciated,
Jignesh
____________________Reply Separator____________________
Subject: Re: FOP being very slow.
Author: ***@hotmail.com
Date: 1/12/2004 9:18 AM
mentioned memory below), and what version of FOP?
The figures you quote sound reasonsable for a basic single CPU system. I
dont think you can do a lot to speed up processing time for a single
document. Actually I found FOP to be one of the faster XSL-FO formatters
around (mainly due to the fact that keeps and other difficult features
are missing)
XSL-FO in a DOM before presenting it to FOP for processing. This seems
somewhat inefficient.
tables, but these changes have not been included in any release of FOP.
You will have to download the source from CVS maintenance branch and
compile it yourself.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-***@xml.apache.org
For additional commands, e-mail: fop-user-***@xml.apache.org
Thanks a lot for your responses. I' m answering your questions and the info
you have asked as below.
For Chris
This application was developed by third party for us and delivered to us. Now
since it is very slow we need to modify it to make it less memory intensive. The
approach they have used is as follows.
1) The data retrieved from database is converted in to XML.
2) That XML file with the help of -it is converted in PDF.
3) The FOP version used is 0.20.4rc
For John,
we do have load balancing of application servers. Both the servers have single
CPU and JVM size on each can be extended to 1GB at max. We have XSLT
transformations also as I mentioned above in Chris's response.
Do you guys think 0.20.5 will have a better performance time then 0.20.4rc.
I am attaching a sample code from one of the main method which generates PDF
file from our PDF Servlet. and please do suggest any alternative if you think it
can be done in better way to improve processing speed.
and then it is written to output as follows:
byte[] content = generate(contextRoot, contextRootURL, generateParams,
templateType, templateName,
targetLanguage, xmlPriceBook, cover, pdfCharts, false);
// session.setAttribute("LAST_PDF", content);
File outFile = new File(baseDirectory + "cache/" +
userProfile.getUserId() + ".pdf");
FileOutputStream fos = new FileOutputStream(outFile);
fos.write(content);
fos.close();
response.sendRedirect(baseHTTP_URL + "cache/" +
userProfile.getUserId() + ".pdf");
Thanks and your help will be really appreciated,
Jignesh
____________________Reply Separator____________________
Subject: Re: FOP being very slow.
Author: ***@hotmail.com
Date: 1/12/2004 9:18 AM
Hi ,
We are having here. We are using FOP here for our application it
generatesWe are having here. We are using FOP here for our application it
a 81 page PDF in the output. It takes a very long time to generate it almost
more than 1 minute.
What sort of system are you running? how many CPUs, what o/s, (youmore than 1 minute.
mentioned memory below), and what version of FOP?
The figures you quote sound reasonsable for a basic single CPU system. I
dont think you can do a lot to speed up processing time for a single
document. Actually I found FOP to be one of the faster XSL-FO formatters
around (mainly due to the fact that keeps and other difficult features
are missing)
The user acceptance criteria is 15-20 seconds for such big
PDF. if say more than 20 user try to generate the PDF file then we reach peak
with our JVM and after that no user can do anything. We are using following
FOPPDF. if say more than 20 user try to generate the PDF file then we reach peak
with our JVM and after that no user can do anything. We are using following
driver class.
org.w3c.dom.svg.SVGDocument.
I dont quite follow this bit. Are you saying you are creating SVG andorg.w3c.dom.svg.SVGDocument.
XSL-FO in a DOM before presenting it to FOP for processing. This seems
somewhat inefficient.
The websphere instance on which the application is running has 512MB of JVM
size. We need that application can sustain a load of 60 user at a time to
generate PDF document. The server has RAM of 3GB. The application is built
withsize. We need that application can sustain a load of 60 user at a time to
generate PDF document. The server has RAM of 3GB. The application is built
struts. Is there any way that FOP is can be made less memory intensive? so
thatit will not use much JVM but use CPU rather?
There have been some changes made to improve the memory consumption oftables, but these changes have not been included in any release of FOP.
You will have to download the source from CVS maintenance branch and
compile it yourself.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-***@xml.apache.org
For additional commands, e-mail: fop-user-***@xml.apache.org