IOS6 iPad makes the number of running applications affect the frequency of memory alerts?

I create my application on a development device in which there are not too many applications at the same time. I expect my clients to launch an application with an open number of other applications. So that my application does not crash due to memory problems, I would like to test my application in the expected operating conditions.

The question arises: Does the number of other applications visible on the panel of double-click buttons affect the memory usage of the device? In other words, if I open every application on the device, then run my application, do I get more warnings about memory than if I had all other applications closed?

I remember hearing a WWDC presentation that mentioned that for some applications that use less than 8 MB of memory, their memory is written to disk while the application is minimized, but not sure if this has changed.

Thanks for clarifying.

+4
source share
3 answers

Does the number of other applications visible in the double-tap button on the home bar affect the memory usage of the device?

No. The multitasking dashboard is just the story of the latest apps. Some may still be in memory, while others may not. It is impossible to find out just by looking at him.

If memory is low, iOS will first stop working with most puzzles. If your application allocates a lot of memory in a short period of time, it may be that iOS will not be able to quickly recover memory and immediately terminate your application.

All you can do is reduce your footprint and try not to allocate huge buffers at a time.

+4
source

Yes, I think the number of open applications affects how your application receives a warning about saving memory. Closing all applications running in the background or restarting the device can reduce the warning memory messages sent to your application (you can see this effect using tools).

advise:
When you get a memory warning, try the following:
- Stop timers and other periodic tasks.
- Stop any metadata requests in progress.
- Do not start new tasks.
- Pause video playback (except when you play AirPlay).
- Enter the pause state if your application is a game.
- Fault tolerance of OpenGL ES frames with throttle.
- suspend any send queues or operation queues that execute non-critical code. (You can continue to process network requests and other temporary background tasks while they are inactive.)

0
source

Just fast. I found out that opening other applications affects the distribution of real memory. Profiling an application using the "activity monitor" lets you know which applications are loaded into memory and how much they use . Assuming the device has 512 MB, you have 512 - (what to open), and iOS may kill some applications to free up memory for your application.

0
source

All Articles