Welcome Guest Search | Active Topics | Sign In | Register

Slow performance when generating PDF Options
Kenneth Tilsted
Posted: Tuesday, November 13, 2012 1:32:08 AM
Rank: Newbie
Groups: Member

Joined: 11/8/2012
Posts: 5
Hi

We have an installation where we use Essential Objects to generate a PDF out from a template and some pictures.
Our server is VMvare with 2 CPU (normal standard specs for a webserver medium size)

With no load on server a 60 page (apprx. 8Mb) PDF file generates in about 75-90 seconds to create which is a lot.
When only increasing the number of concurrent users t etc 7 the time for generation rises from 90 seconds up to 4-5 minuttes.

We have been doing some measurement regarding the HTML and can se that the site is generating fast. The bottleneck is the PDF creation itself througn Essential Objects.

i increased the CPU but this did not give me an faster generation. Can someone (or Essential Objects) tell me:

- What parameters are needed to monitor in order to find the bottleneck?
- What is the expected throughput of PDF pages. How long time is expected to generate 60 pages (8Mb) file?
- Any ideas where to make changes in order to make this component work faster
- If you need further information in order to help let me know

The problem is getting urgent so any help is appreaciated. I tried the forum to see for a solution but have found no threads that solves my provblem.

Thanks Angel

Kenneth Tilsted
Posted: Tuesday, November 13, 2012 4:10:18 AM
Rank: Newbie
Groups: Member

Joined: 11/8/2012
Posts: 5
Further information:
Server specs are: 2xCPU (X5670 @ 2.93GHz), 4GB RAM,

Thanks
eo_support
Posted: Tuesday, November 13, 2012 8:31:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Depending on the contents of your PDF file, 75 to 90 seconds for 60 pages is not unusual. There is only one thing you can do on the PDF converter: If you are using HtmlToPdf.Options.HeaderHtmlFormat/FooterHtmlFormat, then you can try to turn that off. That will slow things down on the converter end. For the rest, you will want to fine tune your HTML. For example, to convert 60 pages of text will be much faster to convert 60 pages of tables with complicated layout. And if you have a lot of JavaScripts in your page, that will slow down things as well.

If that still can not bring down the conversion time to the ideal level, you might want to move the conversion to a separate thread so that user do not have to wait.

Hope this helps.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.