|
Rank: Newbie Groups: Member
Joined: 12/16/2011 Posts: 7
|
We are using EO.PDF in a single threaded Windows Service. After a random amount of time we get the complaint 'All workers are busy', usually after a number of "Convertion failed" exceptions, but never a fixed amount of exceptions or time. We've been upping the workers, but it seems no matter how high we get we keep running into this wall.
Exception reported: Convertion failed. All workers are busy. Please increase HtmlToPdf.MaxConcurrentTaskCount.
Is there a proper way to close/dispose/clean-up the workers? Once in this state, the only way to clean it up is up the workers and restart the service.
-Al
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have sent you a new build. Please switch to that build and see if you still get that problem.
The problem occurs when there are too many concurrent conversions. It supposes to be able to recover by itself from that state, either when one of the conversion has finally finished; or timed out (thus eventually killed). Our early version has some problems with time out, so it may not be able to detect it correctly. Note that even with the new version, it will still give you the impression that you will have to restart it, but in fact if you wait long enough, it should recover.
The reason that we have this mechanism is to allow overload to be more properly handled. If we do not limit concurrent conversions, then eventually your server will just crashes fro random reasons (usually due to out of memory, but it can be a row of other exceptions).
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/16/2011 Posts: 7
|
I'm running v3.0.95.2. I'll try the build you sent me and see how it goes. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/16/2012 Posts: 2
|
I have similar problems.
I generate a report with many pdf documents (>100). Sometimes, generation of a document fails (Timeout). I run a second generation of the same url and the document is well generated. Strange but it works ...
But after a while, I meet the problem of this thread : "All workers are busy. Please increase HtmlToPdf.MaxConcurrentTaskCount". And from here, all generations fail.
A version 3.0120.2 dated 15/03/2012 is available on the site : does it solve this bug ? I will try it.
|
|
Rank: Newbie Groups: Member
Joined: 3/16/2012 Posts: 2
|
Yes, version 3.0.120.2 seem to solve the 2 problems.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Thanks for the update. Please feel free to let us know if you still see any problems.
|
|
Rank: Newbie Groups: Member
Joined: 12/16/2011 Posts: 7
|
I haven't seen the problem recur since placing the new build, and a series of bug fixes, into production. Thanks for the help!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Quote:I haven't seen the problem recur since placing the new build, and a series of bug fixes, into production. Thanks for the help! You are very welcome. Please let us know if you see anything else.
|
|
Rank: Newbie Groups: Member
Joined: 5/16/2012 Posts: 1
|
Hello,
I'm facing the same problem. I have installed the right version 3.0.120.2.
These are the messages on the log:
:ERROR: DCAPdfService GeneratePDF. MESSAGE: Convertion failed. Operation times out. STACK: at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Pdf.Internal.kq.a() at EO.Pdf.Internal.kq.b() at EO.Pdf.HtmlToPdf.a(kq A_0) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptions options)
:ERROR: DCAPdfService GeneratePDF. MESSAGE: Convertion failed. All workers are busy. Please increase HtmlToPdf.MaxConcurrentTaskCount. STACK: at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Pdf.Internal.kq.a() at EO.Pdf.Internal.kq.b() at EO.Pdf.HtmlToPdf.a(kq A_0) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptions options) at DCAPdfService.PdfJob.GeneratePDF(String HashCode)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Please download the latest build from our download page and update to that build first. If you still run into this problem with the new build, then it's simply because your server is overloaded and can't handle that many conversions at the same time. You can try to increase HtmlToPdf.MaxConcurrentTaskCount to avoid this error. However if the root cause is your server is overloaded, you will run into other issues such as out of memory error. In that case you just need to handle this exception properly and tell your user the server is busy, please try again later.
Thanks!
|
|