|
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?
|
|
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!
|
|
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?
|
|
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!
|
|