26
Views
2
Comments
[Open Html To Pdf] getting some error
open-html-to-pdf
Web icon
Forge component by Mauro Caiado
Application Type
Traditional Web

Hi Team,

Greetings. recently we are getting more process(OpenHtmlToPdf) creating and reached 100% CPU usage.  How to resolve this. 


Thank you

Mani


openHtmlToPdf_issue.png

Hello, mani.

To generate the PDF, the core of this component emulates a browser on the server, which causes CPU usage to increase depending on the number of active processes.

In this case, there isn't much you can do about the component, but there are some things that can help you avoid high CPU consumption, try them:

  • Adjusting the action that generates the PDF to work with a queue can reduce consumption.
  • Store the generated PDF binary in a table for a while, so if the filters are the same, you don't need to generate the same PDF twice.
  • Try other PDF generating components like UltimatePDF.
  • Also try to use some JS library that generates the PDF on the client side and not on the server.


Thank you Lucas Soares. I will try your recommendation and update you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.