SPA application causing safari low memory crash in IOS 9 - memory

I'm dealing with a complicated issue that I'm trying to diagnose.
Basically, I have a memory intensive SPA website that is already in production right now and is mobile compatible. Some users are trying to browse the site with IPad Air Devices (1 GB Memory total) and safari is crashing on some areas of the application that require just too much memory.
I connected an ipad air device on XCode Activity monitor and from what I'm seeing the apple webkit process climbs to 280 MB before crashing while loading a specific page.
I did the same test on my laptop with chrome and the same pages settles at 180 MB if the information on the chrome task manager is reliable. However, there's also the GPU process to take into account wich is at 200 MB with this single tab open.
My questions are as follows:
First, what is the most reliable way to see how much memory the website is taking?
Second, If I'm to optimize this website to limit it's memory usage, what's the maximum an ipad air on IOS 9.2 with 1 GB total ram could safely handle?
Feel free to post any valuable tips.
Thanks

Related

How much RAM can a website in iOS Safari use

I am developing a browser-based photo editor Photopea. Many iOS users report, that it crashes on their iPads (latest iOS, 4 GB of RAM). Users work with large documents (big resolution, many layers) and Photopea may require 2 - 3 GB of RAM.
Is it known how much RAM websites are allowed to use in iOS Safari? Could you maybe test it on your iPad?
What is the best way to make Apple fix it?
iOS Safari uses 200-400MB RAM memory
you can not develop an application that req memory in GB

Memory Leaks Causes High Energy Impact For An iOS App?

I developed an app that communicates with multiple devices by socket connection. Once the app is running it searches for the devices and connects with them. Each connection is ran in a thread. I checked the memory when the app is running, it rises about 20+ Mb. I don't know if this is really high for an app, but the energy impact is very high.
I tried using the tools to check whether I am using too much heap memory or I have a lot of leaks. Well, the result is I do have a lot of leaks, but does this lead to very high energy impact? or there could be other reasons?
In some iPhones, the phone will overheat after running my app for awhile. Especially iPhone 7.

Inconsistent results when memory profiling Cordova app on iOS vs native app

I'm getting out of memory crashes with a Cordova app on an iPhone 4S running iOS 7. I am try to implement an infinite scrolling list and I start seeing memory pressure and hiccups when prepending to the list (appending seems fine). When I run the Allocations widget in Instruments, I see a crash when there are 20 MB of allocated Live Bytes.
Here's the interesting part: This Cordova app is replacing a native one that has been available on the App Store for a number of years without issue. When I profile the native app, I see the memory go above 20 MB, but the app doesn't suffer from any memory-related crashes.
Why does the native app continue to run fine after surpassing 20 MB of Live Bytes while the Cordova app terminates? Does the Allocations widget not properly take into account the memory usage of the UIWebView Cordova uses? Or is there some other resource not being taken into account?
After more investigation
I ran the tests again using the Memory Monitor. Here are the results of the Cordova app:
And the native app:
I think this brings us closer to the answer. Both apps have similar Real Memory usage, but the Virtual Memory is dramatically higher in the Cordova app. I'm not sure what causes this and why this isn't reflected in the Allocations widget.
As best as I can tell, the Allocation widget is inaccurate for total memory usage and it was best to just use the Real Memory + Virtual Memory numbers from the Memory Monitor widget. This is pretty much the only option when developing Cordova apps since the UIWebView is a black box and difficult to profile.

Limit for iOS Sync: iOS app Crashes when Syncing reaches over 200 MB

Is there a limit on the amount of data a single web service can transfer to a native iPad app? My developer is building an iPad app that connects to Sharepoint via a Restful Webservice. When we attempt to sync the app with the document repository, the app crashes at 250 MB almost exactly each time.
Wondering if there is a limit I am dealing with or if we are doing something wrong in our approach.
Thanks
DK
What I am guessing is that you ran out of memory. From what your saying I'm guessing that you have an iPad 1 / 2? The reason this happens is you are not writing it at say 5MB intervals, you are storing it all in the iPads ram so once it your app runs out of ram the iPad quits the application so that the entire app doesn't freeze up.

What is the maximum application filesize for Blackberry App World

We are planing to program an application for Blackberry and wondering if there is a maximum App size.
Searching the App World there were just very small Apps.
Our App will have hundreds of Images and Audiofiles. It will have about 40 to 50 MB.
Is this possible for Blackberry?
thx for your answers!
It is possible -- but not practical. First consider that many people install an app OTA (over the air) and even on a fast 3G connection it's going to take a LONG time to download 40-50MB. Another factor is limited memory on devices. Applications have to be stored and run from the on-device flash memory, which is quite limited (32MB on older devices, 64MB or 128MB on newer devices). Apps, emails, contacts, etc. all take up space on the main memory so this space is at a premium. Basically even if people DO have enough space on their device to accomodate an app that size, chances are unless it's a really killer app they're not going to install it due to the size.
One alternative to bundling your resources with your app is to load them dynamically at runtime as they are needed. Host them on a webserver somewhere, and load them over the network from the app as needed. If the user has an SD card installed, you could cache data there since they typically have much more space than the onboard memory.
The previous answer doesn't quote any sources. According to this official BB document, the maximum size is on the order of 14MB. If you want more, you must download it to the SD card after it's installed.
http://supportforums.blackberry.com/t5/Testing-and-Deployment/The-maximum-size-of-a-BlackBerry-7-or-earlier-smartphone/ta-p/1300209

Resources