My team is working on creating a web app which is working great on all tested devices except iPad (4GB RAM). In safari (or chrome) on iPad the web app crashes on pretty much any page after spam clicking through the app for a minute or so. Looking at the jetsam logs, the process that is being killed is consistently com.apple.WebKit.GPU due to "highwater". The memory usage of this process at the time of crashing ranges from 316MB to 522MB.
What steps would you suggest next to diagnose the root cause? We are testing out a bunch of different changes to improve overall memory management and performance of the app, but I'm wondering if there is a way to find exactly what is taking up memory instead of brute-force solutioning, and why is it always the GPU process that is being killed?