Welcome Guest Search | Active Topics | Sign In | Register

Possible to boost performance when generating PDFs Options
Thomas Ardal
Posted: Wednesday, March 26, 2014 4:09:58 AM
Rank: Newbie
Groups: Member

Joined: 5/1/2013
Posts: 3
I'm using EO.PDF on a webserver to generate PDF documents from HTML templates. I've experiencing poor performance when system have been idle for a while. I assume that it is caused by the fact that no rundll32.exe processes are ready to handle the requests. When a few documents have been generated, everything performs as expected.

Is it possible to optimize this by telling EO.PDF to always have generation processes running or similar?
eo_support
Posted: Wednesday, March 26, 2014 8:20:16 AM
Rank: Administration
Groups: Administration

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

Currently the "engine" will automatically shutdown when it has been idle for a while to save resources. This is similar to how ASP.NET worker process works. In the current version there is no way to control how long it waits before shutdown. If you want to keep it "alive", you can setup a timer in your application to do an empty conversion periodically. For example, something like this:

Code: C#
HtmlToPdf.ConvertHtml("", new PdfDocument());


This will basically do nothing but will prevent the engine from shutting down.

Thanks!
Thomas Ardal
Posted: Wednesday, March 26, 2014 8:23:50 AM
Rank: Newbie
Groups: Member

Joined: 5/1/2013
Posts: 3
Thanks.

Does it make any difference if I use the EO.PDF service to generate the PDFs instead? As I understand it, the service uses rundll32.exe as well?
eo_support
Posted: Wednesday, March 26, 2014 8:27:09 AM
Rank: Administration
Groups: Administration

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

No. I do not believe it makes any difference. The service is mainly provided to allow you to run EO.Pdf under a different Windows account. It does not have anything to do with the above "shutdown" logic.

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.