- Peter Thiem
- PowerBuilder
- Monday, 25 November 2024 10:50 PM UTC
Hi PowerBuilder Community,
We recently upgraded out application to a PowerBuilder 2022r3, and are finding that the application memory growth is larger than before.
We think that one cause may be the WebBrowser control. The upgrade involved moving from the CEF WebBrowser control to the WebView2 WebBrowser control.
Our testing showed that each web page view in the WebBrowser control consumed more memory and the memory is never released.
I have attached a small example application that recreates the problem.
The example application displays the Wikipedia (https://en.wikipedia.org/wiki/Main_Page) web page, refreshes every second, and using PerfMon, memory growth is observed.
Example application and PerfMon memory observations:
Some pages leak more than others, it may depend on the amount or type of Javascript, Html, and CSS.
The CEF based WebBrowser control did not have this problem.
Webpages and JavaScript are notorious for memory leaks, but web browsers in recent years have been very good at releasing memory between page loads.
Our application is deployed via Azure AVD remote app streaming on a shared multiuser server. This application has some web page code that causes growth of up to 1MB memory per page load. So there is a bit of memory pressure between all the users over the course of a day, causing some stability issues.
Would anyone know if this something I can do about, or perhaps should it be a reported bug?
Cheers, Peter.
P.S. Thanks for all the help in the past.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.