Tested versions: 24.11, 25.1
When using a Metered license we are experiencing significant performance degradation when invoking Presentation.save()
. This worsens significantly as the ppt or pptx grows in complexity, but is present even with a blank presentation: on my local, the conversion takes 7 seconds to complete. When using the perpetual license or no license at all, this takes around 900ms.
This issue is not present with Aspose Cells or Words, just Slides.
@zbowyer20bi
It seems you are experiencing significant performance issues when using a Metered license with Aspose.Slides for Java, particularly during the Presentation.save()
method. This performance degradation appears to worsen with the complexity of the presentation, and you noted that even a blank presentation takes considerably longer to save compared to using a perpetual license or no license at all.
While the context does not provide a direct solution to this specific performance issue, it is important to ensure that your implementation of the Metered licensing is correct. Here are some general steps to follow when implementing Metered licensing in Aspose.Slides for Java:
- Create an instance of the Metered class: This is the first step in setting up Metered licensing.
- Set the metered key: Use your public and private keys to configure the Metered instance.
- Monitor metered data: You can check the amount of metered data before and after calling the API to ensure that it is functioning as expected.
If the performance issues persist, consider reaching out to Aspose support for further assistance, as they may have insights specific to the Metered licensing implementation in Aspose.Slides that could help improve performance.
For more detailed guidance on implementing Metered licensing, you can refer to the official documentation here.
If you have not already done so, you might also want to check for any updates or patches for Aspose.Slides that could address performance issues, as well as reviewing any related forum posts that might provide additional insights or solutions.
Sources:
[1]: Metered Licensing in Java Slides | Aspose.Slides Java PowerPoint …
@zbowyer20bi,
I am working on the issue and will get back to you soon.
@zbowyer20bi,
Unfortunately, I could not reproduce the problem you described. If the issue persists, please share the following additional files and information:
- sample presentation file
- code example (including time measurement code)
- measurement results
- OS version on which the code was executed
- JDK target version in your application project
- hardware information (CPU, RAM)
@andrey.potapov thanks for the response. I’ve got a reproduction here: GitHub - zbowyer20/aspose-slides-repro
Tweaking whether the application should use a license or not, as well as the private and public keys, can be configured in the application.properties
, or set via environment vars: ASPOSE_SHOULD_USE_LICENSE
, ASPOSE_PUBLIC_KEY
, ASPOSE_PRIVATE_KEY
.
You can GET
localhost:1990/pptx
to trigger the conversion. The slowness is evident with the license from the request itself, but I’ve included logs around the presentation.save
. with timestamps.
With license: approx 7 seconds, consistently
Without license: approx 800ms first, followed by 30ms (some caching involved?)
JDK21
Apple M2 Max/32GB/Sequoia 15.1.1
I’ve reproduced this with a colleague as well as in our deployed environment, so not a local issue.
Please let me know if I can provide any more details. I have also probably used up a number of credits in testing this - it would be great if those could be reset? (Board Intelligence)
Thanks
Zak
@zbowyer20bi,
Thank you for the additional information. I am working on the issue and will get back to you soon.
@zbowyer20bi,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESJAVA-39629
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
1 Like
The issues you found earlier (filed as SLIDESJAVA-39629) have been resolved in Aspose.Slides for Java 25.3 (Maven, JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.