WKWebview termination due to memory. Adjustable threshold for termination?

Hi,

Our company has an application uses the WKWebview to host a lot of content. The content is web based and hosts a lot of charts and metrics.

  • Because of the high content, we've seen the memory of the WebContent hit above 1.25 GB.
  • When that happens, it'll eventually terminate and we have our recovery code to reload the same page
  • Seems like the limit is hidden / internal. Some Apple devs also noted something might be hard coded to be limited as well.
  • Yes, we have our optimizations but we still need to keep our queries, use react, cache, etc... It's just a heavy web application.

Request:

  • Can you help us raise that limit?
  • Are there some limitations in Webkit for such a need to terminate?
  • As some devices have much higher RAM than before, we were hoping to be able to dynamically adjust the limit for the wkwebview before it resets.

We contacted our internal contacts but they said to post here.

WKWebview termination due to memory. Adjustable threshold for termination?
 
 
Q