What's new
Apple iPad Forum

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Memory Leakage Problems for iPad Apps

llcooljayce

iPF Noob
Joined
Jul 6, 2010
Messages
16
Reaction score
0
Hey guys,

I have had my iPad for about 3 weeks now and I have noticed something that is a bit disconcerting. The available memory of the iPad tops out at around 160MB but it dips quite a bit ... sometimes as low as 20MB or so ... that's when everything becomes unstable. Applications crash, iPad is slow to respond, etc.

I have noticed that this happens on the iPhone as well (owner of 2G and 3GS iPhone).

Both the iPhone and iPad are jailbroken and SB Settings was used to determine available memory.

I have written programs before and when writing programs for computers, it almost doesn't matter how you allocate your memory usage or whether or not you flush the RAM when you exit the program because most computers nowadays have TONS of available RAM and/or virtual memory. From my experience with the iPhone and iPad, this is not true.

1. We are limited in the amount of actual physical RAM available
2. There is no virtual RAM (from reading other people's comments ... not proven)

I guess my question/rant is:

Are app programmers just not making an effort to reallocate the RAM after a program exits because they don't know to do so or is there something else in the jailbreak that is sucking up RAM resources?

Any thoughts would be appreciated.
 

Bremen

iPF Noob
Joined
Apr 5, 2010
Messages
1,350
Reaction score
5
Location
home
Website
www.bremencole.com
I do not have a JB iPad, but in the 3 1/2 months I have had the iPad I simple turn it OFF and then ON (reset or reboot) once a weeks or so... okay I forget most of the time but try to..... anyway, that keeps the memory clear. Overtime if you used your PC/Mac and ran many different programs on it, but did not turn it off the same things happens.... Just reboot every once in a while and no problem....

I do have a JB iPhone 3G, but since I got the iPad it is just used as a phone (and iPad tether) .... I should probably reboot it, since I don't think I have in over 3 months.....

Don't know if JB is part of the problem you are having or not, but I guess it is possible, and the hacked app you are using to tell you memory usage could be off as well....
 

iDharma

iPF Noob
Joined
Jun 26, 2010
Messages
86
Reaction score
0
Location
☼ Florida ☼
I think there's a good chance that the memory issues have nothing to do with jailbreaking. I have observed the same memory leakage issues with my non-jailbroken iPhone 3G and iPad.

I use the app "Free Memory Lite" to free up some of that clogged memory without having to reboot. There used to be a great memory dump feature in the app "System Activity Monitor" but the feature was incompatible with iOS4 and so that feature has, at least for the time being, apparently been nixed.

Note that running the Free Memory app will cause the iPod app to shut down. Not a biggie, but when the app shuts down all non-critical apps, it really does so, including the iPod app.

Good luck.
 

LGgeek

iPF Noob
Joined
Jul 6, 2010
Messages
82
Reaction score
0
Location
Los Gatos, CA
....

I do have a JB iPhone 3G, but since I got the iPad it is just used as a phone (and iPad tether) .... I should probably reboot it, since I don't think I have in over 3 months.....
.

what do you use to tether the iPad to your iPhone ?
 

figmo10

iPF Noob
Joined
Apr 15, 2010
Messages
517
Reaction score
3
Location
NH
I dunno. Maybe Apple isn't wholly full of it when cautioning against jailbreak.
 

pallentx

iPF Novice
Joined
May 28, 2010
Messages
663
Reaction score
5
Location
Fort Worth, TX
I have only seen it with a couple of apps. The weather channel app used to get to a point where it wouldnt open anymore until I rebooted the ipad. I uninstalled that app and havent had such issues until today. TwitRocker started doing the same thing. It wouldnt open. I cant say twit rocker is the problem yet though. I've installed a lot of stuff lately.
 

NumbLock

iPF Novice
Joined
May 2, 2010
Messages
2,008
Reaction score
32
Location
Switzerland
I have a non-jailbroken iPad and yeah, there are some apps that have memory leaks X-Plane is one example. I get memory errors later in other apps even when this app has been closed for hours.
 

MikesTooLz

iPF Novice
Joined
May 7, 2010
Messages
2,361
Reaction score
20
Location
Miami, FL
Website
Weather.Team
It has do do with how iphone and ipad apps are made.

each thing that an app does behind the scenes, it must release the info from memory. If you have a beginner creating the app there is a pretty good chance of the apps having memory leaks. Even if the app developer is great one line of code can be forgotten and memory starts to leak.

Nothing to do with the device being jailbroken but jailbroken apps can suffer memory leaks just like official app store apps. Apple doesn't check for memory leaks during the review process.
 

CaptKirk

iPF Noob
Joined
Mar 24, 2010
Messages
636
Reaction score
1
Location
Sacramento
I notice the iPad getting sluggish if left on in sleep mode for a long length of time. (meaning weeks) Doing a complete reboot once in awhile is a good habit regardless of any computer or operating systems. Our I.T. guys even reboot our cloud servers on a monthly basis just to clear memory. No surprises here :confused:
 
OP
L

llcooljayce

iPF Noob
Joined
Jul 6, 2010
Messages
16
Reaction score
0
It has do do with how iphone and ipad apps are made.

each thing that an app does behind the scenes, it must release the info from memory. If you have a beginner creating the app there is a pretty good chance of the apps having memory leaks. Even if the app developer is great one line of code can be forgotten and memory starts to leak.

Nothing to do with the device being jailbroken but jailbroken apps can suffer memory leaks just like official app store apps. Apple doesn't check for memory leaks during the review process.

I think that this is a pretty ridiculous stance that Apple takes. For all the effort they take to lock down their i devices, and the inability (until recently) to multitask in an effort to keep apps snappy, this is a real shame that they don't check for apps that don't flush the RAM after they terminate.

Doesn't that defeat the whole purpose of locking down the device to ensure that it functions quickly and correctly?
 

lilrabbit129

iPF Noob
Joined
Jul 9, 2010
Messages
12
Reaction score
0
Location
San Diego,CA
Yes but it is unreasonable for Apple to be able guarantee that every application has no leaks. It should be up to the developer to test if their code is leak-free.

It has do do with how iphone and ipad apps are made.

each thing that an app does behind the scenes, it must release the info from memory. If you have a beginner creating the app there is a pretty good chance of the apps having memory leaks. Even if the app developer is great one line of code can be forgotten and memory starts to leak.

Nothing to do with the device being jailbroken but jailbroken apps can suffer memory leaks just like official app store apps. Apple doesn't check for memory leaks during the review process.

I think that this is a pretty ridiculous stance that Apple takes. For all the effort they take to lock down their i devices, and the inability (until recently) to multitask in an effort to keep apps snappy, this is a real shame that they don't check for apps that don't flush the RAM after they terminate.

Doesn't that defeat the whole purpose of locking down the device to ensure that it functions quickly and correctly?
 

Most reactions

Latest posts

Top