HTML to PDF conversion sometimes hangs or times out

We are using the HTML to PDF functionality to generate printable PDF reports and once deploying to our server we were getting spikes of 100% CPU usage and occasionally the user trying to generate a PDF report would receive a timeout error. We disabled Aspose report generation, and the CPU is back to normal performance and usage.

We built a local console test application to see if we could find anything that I am including here. The first thing that jumped out to me is that the first instance always takes longer, so that could be the issue when it is running on a server with IIS, but I don’t know any way to resolve that.

Could we get some feedback on this on if there are any known issues? Are there any performance improvements that we could make?

TestAspose-ForumPost (2).zip (221.7 KB)

@chadg
Let me investigate a bit this issue, I’ll write you as soon as possible