Hi Mahmoud,
Thank you for reaching out to us.
Could you kindly provide the details below (via Reply privately to author) so that we can further investigate the issue?
Regards,
Ziv Yves Sanchez
Hello fellow developers,
I hope you're all doing well. I wanted to share a recent experience I had while working on an Android application's performance optimization, specifically related to Out Of Memory (OOM) issues caused by a high number of threads. I've come across a potential solution involving bytecode manipulation to modify the SDK's thread pool parameters. While this approach has shown promising results, I'd greatly appreciate your insights and suggestions before proceeding further.
In an effort to tackle the OOM problems associated with excessive threads, I delved into a deep analysis of the issue. It became apparent that adjusting the maxPoolSize and corePoolSize values within the SDK's thread pool might hold promise in mitigating memory-related challenges.
I'm pleased to report that these adjustments have indeed led to noticeable improvements. The application's performance has become more stable, with a significant reduction in OOM instances. However, I'm cautious about the potential implications and adherence to best practices within the Android development landscape.
Given the collective expertise of this community, I kindly request your insights on the following points:
Appropriateness and Compliance: Is the manipulation of bytecode to modify thread pool parameters a legitimate and acceptable approach within the Android development community? Are there any caveats or concerns I should be aware of?
Sustainability: Considering the potential evolution of Android and its SDK, how likely are these bytecode modifications to remain effective across different Android versions and future updates?
Best Practices: Are there any established best practices or recommended methodologies for optimizing thread pool configurations to alleviate OOM issues that you could share?
Alternatives: If my current approach doesn't align with recommended practices, do you have suggestions for alternative strategies to address OOM problems arising from excessive threading?
I highly value your collective insights and experiences. Your input will not only assist me in ensuring the stability and performance of our application but will also contribute to the broader Android development community.
Thank you for taking the time to consider my inquiry. I eagerly await your thoughts and recommendations. Feel free to suggest a convenient time if a deeper discussion would be beneficial.
Best regards,
LeoMobile Ads SDK Team |
Hi,
Thank you for contacting the Mobile Ads SDK support team.
By reviewing your concern, I understand that you are facing an ‘OutOfMemoryError’ issue.
Kindly provide the below information for further investigation:
You can provide the following details via reply privately to the author option or directly provide it to the link below.
If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:
1. Navigate to
2. Fill out all fields, and attach your file(s).
3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.
Mobile Ads SDK Team |
|