Rank: Newbie Groups: Member
Joined: 8/20/2013 Posts: 3
|
We are using EO.PDF to generate PDF files. For creating bulk PDF files faster we are using threads and we are getting below error.
“Convertion failed. All workers are busy. Please increase HtmlToPdf.MaxConcurrentTaskCount. at EO.Pdf.Internal.lm.a(hf A_0) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc)”
Note when we create PDF files in single thread no error occurs. Problem occurs when multiple threads implemented.
Also When we increase MaxConcurrentTaskCount as suggested in error other errors are come up like file is in use etc.
We are using 5.0.80.2 version.
Any help on this will be highly appreciated.
Thank you.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This is basically a system overload. The only reliable way to avoid this error is to reduce the load. The very reason that MaxConcurrentTaskCount exists is so that you can get a clean exception indicating that your system is overloaded instead of other random errors. So in a way it functions like an alarm.
Thanks!
|