Welcome Guest Search | Active Topics | Sign In | Register

Eo.PDF reporting "All workers are busy" often Options
Al G
Posted: Wednesday, March 14, 2012 9:44:17 AM
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
eo_support
Posted: Wednesday, March 14, 2012 10:45:55 AM
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!
Al G
Posted: Wednesday, March 14, 2012 11:20:29 AM
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!
Fred
Posted: Friday, March 16, 2012 6:40:49 AM
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.
Fred
Posted: Friday, March 16, 2012 11:27:44 AM
Rank: Newbie
Groups: Member

Joined: 3/16/2012
Posts: 2
Yes, version 3.0.120.2 seem to solve the 2 problems.
eo_support
Posted: Friday, March 16, 2012 12:02:13 PM
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.
Al G
Posted: Monday, March 19, 2012 8:03:33 AM
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!
eo_support
Posted: Monday, March 19, 2012 11:28:50 AM
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.
Ivan
Posted: Wednesday, May 16, 2012 7:15:24 AM
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)
eo_support
Posted: Wednesday, May 16, 2012 8:38:56 AM
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!


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.