Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Thu May 02, 2024 12:28 am

Hello,
We are working on converting PPT and Word documents to PDF using your products.
When performing the conversion operation, excessive CPU use is causing server failure, so we are looking for a solution to this problem.
I would like you to help me with options that limit threads or other ways.

Thanks

SungwonShin
 
Posts: 12
Joined: Thu Dec 28, 2023 2:24 am

Thu May 02, 2024 2:43 am

Hi,

Thanks for your message.
Please provide the following information to assist us in investigating the problem:
1. Are you using multithreading? If yes, please provide the code
2. Your test files
3. Your environment (e.g. CentOS7 RAM16GB)

You can also sending above information to our e-mail 'support@e-iceblue.com', look forward to your response!

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 406
Joined: Mon Nov 07, 2022 8:10 am

Wed Jun 12, 2024 4:42 am

1. Although multithreading was not set separately, it was confirmed as a result of debugging that the Spire library generates about 10 threads when converting ppt to pdf.
2. The test file cannot be provided because of security. However, regardless of file size, CPU overoccupation occurs. There is only a difference in the speed of the transformation.
3. Our server is a Linux server with 2 core CPUs and 10GB of memory. (I know that the server specifications are bad, but even if tested on a 4 core PC, it was confirmed that it occupies nearly 100% of the CPU in the same way. )

There is a need for a solution that can limit the number of threads or prevent CPU over-occupation.

SungwonShin
 
Posts: 12
Joined: Thu Dec 28, 2023 2:24 am

Wed Jun 12, 2024 6:14 am

I am testing with the Free Spire.Presentation and have noticed specifically PPTX to PDF is quite inefficient. DOCX and XLSX to PDF is more performant and uses less RAM.

rararara
 
Posts: 6
Joined: Sat Oct 14, 2023 3:59 pm

Wed Jun 12, 2024 8:17 am

SungwonShin wrote:1. Although multithreading was not set separately, it was confirmed as a result of debugging that the Spire library generates about 10 threads when converting ppt to pdf.
2. The test file cannot be provided because of security. However, regardless of file size, CPU overoccupation occurs. There is only a difference in the speed of the transformation.
3. Our server is a Linux server with 2 core CPUs and 10GB of memory. (I know that the server specifications are bad, but even if tested on a 4 core PC, it was confirmed that it occupies nearly 100% of the CPU in the same way. )

There is a need for a solution that can limit the number of threads or prevent CPU over-occupation.


Hi,

Thank you for your feedback.
Please test with our latest versions of Spire.Presentation 9.6.0 and Spire.Doc 12.5.1. As our new versions contain more fixes and significant improvements in performance, we recommend updating to them. If the issue persists, please provide us with the specific CPU usage details and your Linux version information (e.g., Ubuntu 20.04), and we will further investigate the issue.

Spire.Doc 12.5.1: https://www.e-iceblue.com/Download/doc-for-java.html
Spire.Presentation 9.6.0: https://www.e-iceblue.com/Download/pres ... -java.html

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 406
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.Presentation