Dear Team,
We are currently using the latest version of GroupDocs.Conversion (v25.4) to convert Excel files to HTML. However, we have encountered a significant issue related to memory consumption.
While converting a 1.6 MB Excel file, the memory usage spikes dramatically, eventually causing our service to shut down. This behavior was consistent and reproducible. We have attached:
We would like to know:
-
Is there any built-in method or configuration to limit CPU or memory usage during conversion?
-
Are there any recommended optimizations or best practices for handling large or complex Excel files?
Looking forward to your guidance on resolving this issue.
image.jpg (100.3 KB)
https://mariapps-
Excel sample attached via Onedrive link
my.sharepoint.com/:x:/p/abdul_azees/EXoQ_C_0aExHrRjQ6RQw854BXKumlmu_e31QLYRt8rQZew?e=7nsn8d
@koc-it-support
Can you please provide more details about the environment you are using, such as the operating system and the Java version? Additionally, are there any specific error messages you are encountering during the conversion process?
Hello @koc-it-support,
Thank you for reaching out to us.
In response to your questions, we’d like to highlight the following:
High memory consumption is typically observed when an Excel document contains many images or embedded objects (e.g., charts, graphics), as well as a large number of worksheets.
- Unfortunately, there is currently no method in our Conversion API that allows limiting CPU usage during conversion.
- As an optimization recommendation, you can try using the
WebConvertOptions.setUsePdf(true)
property. This may slightly increase the conversion duration, but it should help reduce sharp CPU memory spikes during the process.
Unfortunately, we were unable to download your file for further analysis. Could you please re-upload it to the forum, preferably in a compressed archive, or provide a link via Google Drive?
Also, please clarify the additional information requested by our bot (Professionalize.Discourse) in its initial response, as this will help us investigate the issue more effectively.
I got the same problem does to get images from excel files - does not matter of xls/xlsx size it occured for every file I tested.
Hello @cyprian11,
We’re very sorry to hear that you’re experiencing this issue. However, we won’t be able to investigate it properly without additional information, as mentioned earlier. Specifically, we need:
- The code sample you’re using to convert Excel to HTML
- The operating system you’re working on
- The sample Excel file you are trying to convert
Unfortunately, we weren’t able to download the file from the link you previously shared. Please either upload the file as a ZIP archive via the forum or share it using a Google Drive link.
Also, could you please confirm whether you’re using the WebConvertOptions.setUsePdf(true)
property?
We look forward to your clarification so we can help you resolve this issue as soon as possible.