1. Peter Thiem
  2. PowerBuilder
  3. Monday, 25 November 2024 22: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.

 

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 26 November 2024 00:06 AM UTC
  2. PowerBuilder
  3. # 1

Hi Peter;

  With your simple test case that you seem to have, please open a support ticket for this memory problem so that Appeon can take a deep look into this issue. 

  PS: if you open the Web Browser using an OpenUserIbject command, perform the WB activity & then close the WB control using the CloseUserObject command in between each test Web interaction - does this release the excess memory?

Regards ... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.