Multitasking/memory problems with running apps - AT&T HTC One (M8)

Hello all! I have searched XDA for a similar issue but can't seem to find anything. I find it hard to believe this hasn't been asked before, so I must be using the wrong verbiage.
For some reason, certain apps are getting killed off when they aren't the foreground app. I could be playing a game, hit the recents button and switch to hangouts to type out a text, switch back to the game, and the phone reloads the entire game. This is extremely frustrating as you can imagine, but games aren't the only apps this happens to as pretty much any app does this, with the exception of Hangouts and a few others. There doesn't seem to be any rhyme or reason to it either, because it's not limited to only apps that take up large amounts of ram like games. I've checked my free ram available while running Hearthstone, and it never drops below 500 it seems. I am running SKyDragon's version 9.0, Sense 7, LP 5.02. I know LP had a memory hole issue when it first came out, but I thought the version of SkyDragon I have fixed it long ago. Thanks for any help!

Well Ok then. Does anyone know if this inherent to LP with the known ram issues or is this something else?

Euphoria64 said:
Well Ok then. Does anyone know if this inherent to LP with the known ram issues or is this something else?
Click to expand...
Click to collapse
Don't know if its a problem with LP in general. But Sense ROMs have always been notorious for high RAM usage, as well as aggressive killing of apps. You might try a GPE or AOSP ROM, to see if it helps.

Thanks for the reply. Is there any way to modify the phone's inherent management of apps and memory? The only thing I could find was changing the minfree values. I'm not super familiar with how exactly it works though. I've read a brief overview of it, but when I changed Empty App to a lower number (200), it doesn't seem to make a difference. I have a feeling I'm not understanding it correctly though. Like I said in my first post, the free RAM amount never dips below 500, so it's not killing apps because it's running low on RAM. smh

Can try a different kernel,memory is usually controlled there.

Related

[Q] Lag Reasons, Solutions

I'm running stock 2.1 with JIT v2 enabled and SetCPU, but i've noticed an increase in Lag lately.
Is there a minimum of free space recommended for Android to run better? I've checked a few similar threads across xda and others but i couldn't find much useful information. My main memory currently has 100 MB and the sdcard 1,14 GB of free space.
Or maybe it's a cache issue? Never cleaned cache files before, can they actually cause lag? Hopefully is not the first signs of an incoming hardware fault.
Try using CacheMate and see...
a.monteiro said:
I'm running stock 2.1 with JIT v2 enabled and SetCPU, but i've noticed an increase in Lag lately.
Is there a minimum of free space recommended for Android to run better? I've checked a few similar threads across xda and others but i couldn't find much useful information. My main memory currently has 100 MB and the sdcard 1,14 GB of free space.
Or maybe it's a cache issue? Never cleaned cache files before, can they actually cause lag? Hopefully is not the first signs of an incoming hardware fault.
Click to expand...
Click to collapse
Laggy after JIT enabled?
Normaly,the phone will just lag for the first 30s-1 min after the booting.
After that,the phone would work like a charm.
Also,remember to maintain enough ram for you phone,kill unneccessery apps.
Also,check you SetCPU settings,I used the performance and set to highest frequency(not to worried the battery,my phone usually drops 2-3% for one light)
If problem continues,just reflash and problem should be solved.
cheers,
L
I have no idea what happened, phone was very slow for the last couple of days, but out of nowhere it simply got back to it's normal behaviour.
Since JIT my x10 has been working very smoothly, hence my surprise when things started stuttering like crazy, the only thing that made it lag like that was a beta for Fennec/Firefox i've tested, but that app was already uninstalled when the problem started.
My noob knowledge of the Android OS led to a conclusion that some app in the background was misbehaving and the system itself shut it down eventually. Does it make sense? Watchdog's last alert accused Pulse News, but nothing looked out of the ordinary.
It started again yesterday, this time i've got random boots as well. Uninstalled a bunch of apps and the difference in performance was instantly noticeable. I've removed Beautiful Widgets and Lookout, but the former is more likely to be the naughty app.
too bad i've payed for that crap.

[Q] Memory Usage

Has anyone else had issues of running out of memory? I often have 500+MB being used at any given time. A couple of days ago, I was using my GPS, listening to iHeartRadio and texting and my phone slowed to a crawl. Once I finally got task manager open, I had about 10MB free. I've had this happen with stock and custom ROMs.
It seems like I constantly stand at having over 400MB used.
So, how's it look for everyone else?
i've never had an issue and it should be warning you way before you get 10mb that you are low on resources
Welcome to HTC Sense.
Today, I was in a pickle because I was in a part of town I had no idea about, I was driving to and from about three places with important documents that needed to be delivered where people were waiting on me to close on a house.
Meanwhile, I'm trying to get my phone brightness up via the notification menu quick settings, open maps and find a location and navigation to there, long pressing to multitask, and text, and I was just going to fast for the phone. It was bogged down and in that hectic moment, it was just frustrating. I forgot I could have used task manager. I wonder if that would've helped me.
I love the phone. It feels great in my hand and looks sexy both physically and in its display, but this phone should not perform like the EVO 4G. I'm an HTC fanboy, but I am not above calling out a flaw. If I were an android developer wizard, I would try to fix it. But no.
I'm just trying to relate and say, I get you. ^_^
Sent from my EVO using XDA
Task manager helped in that it simply exited EVERYTHING. It kicked me out of navigation, stopped the music and brought me down to about 450MB used. Odd thing was that even though nothing was listed as running, everytime I hit refresh the memory usage was increasing.
It probably is because of sense, but it just looks so nice!
gdrocks said:
Task manager helped in that it simply exited EVERYTHING. It kicked me out of navigation, stopped the music and brought me down to about 450MB used. Odd thing was that even though nothing was listed as running, everytime I hit refresh the memory usage was increasing.
It probably is because of sense, but it just looks so nice!
Click to expand...
Click to collapse
If your rooted, try AutoKiller Memory, it tweaks the OOM settings of the kernel making it more efficient while managing your dormit and active memory cycles.
The dev has a great resource page you can learn much about what happens in the Android world when it comes to memory utilization.
megabiteg said:
If your rooted, try AutoKiller Memory, it tweaks the OOM settings of the kernel making it more efficient while managing your dormit and active memory cycles.
The dev has a great resource page you can learn much about what happens in the Android world when it comes to memory utilization.
Click to expand...
Click to collapse
Out of curiosity what are your OOM levels set at and does it help with multitasking on our devices?
boomer8403 said:
Out of curiosity what are your OOM levels set at and does it help with multitasking on our devices?
Click to expand...
Click to collapse
First, in the Development options I keep the Backgroud process limit the Standard and I set the AutoKiller Memory to Strict profile, which has given me good results so far, but you can play around with your settings because I know we don't have the same amount of apps or configuration overall.
Keep in mind also that I am not running a custom ROM, I'm STOCK rooted only without bloatware removed or any major changes.

[Q] True multitasking?

Is it possible to make Android NEVER automatically kills running apps, to have true multitasking like on Maemo and webOS?
I am really sick of it killing apps that I use.
I tried V6 supercharger, but that didn't help... I looked everywhere for an answer, but I never found one.
Surely there is a way to make Android multitask like a proper PC, where it's the user who manages apps?
(And please don't tell me that I should leave it to Android, that it knows better, and etc.)
Now, before you start defending Android:
Ever had your browser refresh the page by itself after switching to it?
Ever lost something you were writing when you switched to another app?
Ever had a video pause because you switched from the player?
That shows that Android does NOT have true multitasking.
Now, I see why Google did that - battery life. However there is a new class of devices, where battery life is not such a problem. Tablets.
And yet they still suffer from same issues.
Now, here's an example: the browser. Very often I'd come back to my browser, only to find that it is reloading the page I was on, wasting traffic, and losing whatever text I typed.
That's stupid, right?
I can even track back to what device did this first - the iPhone.
iPhone 1 had 8 times less RAM than your average high end device, yet they still have a similar problem.
So yeah. Not true multitasking. Even in the app switcher, notice that it never says "running apps", only "recent apps" - because it isn't a true multitasking app switcher, just a history of all recent apps you launched.
Go on, scroll to the very top, launch the oldest app on the list. I'm 99% sure that it has restarted. This would've never happened if Android had TRUE multitasking.
Now, there has to be a way to get that. Desktop Linux does it, so Android probably can too.
If you ever notice that the app restarts, it's the app that is badly implemented. All apps must be able to handle a restart by Android transparently to the user by saving its state. If not, tell the app developer to fix it.
Chrome, Dolphin, Boat, Maxthon, AOSP, ICS Browser+, Opera, Firefox.
That's a list of browsers that have this problem.
Do you really think that they all implemented multitasking wrong?
Again, it's a problem with Android - I don't want apps to save their state so that Android can kill them - I want them to never leave RAM at all.
SilverHedgehog said:
Now, here's an example: the browser. Very often I'd come back to my browser, only to find that it is reloading the page I was on, wasting traffic, and losing whatever text I typed.
Click to expand...
Click to collapse
Maybe dont answer all ur questions:
http://stackoverflow.com/questions/...lication-is-that-frowned-upon/2034238#2034238
Apps who properly implement onSaveInstanceState() can come back, in case of web browsers is more complex to use it properly, texts or images are simple to imagine how to OS save on "disk" to retrieve later, what about sockets or open files (can be deleted while in background).
Android keep on background until the resources are needed for another task (and maybe a time limit, but dunno for sure), if happen very often w/ u means ur OS r using more resources than what need to keep on background.
Android has true multitasking, but... eh here's a link. Read yourself.
http://android-developers.blogspot.com/2010/04/multitasking-android-way.html?m=1
Sent from my MB508 using xda premium
But is it possible to make it so that apps do not get killed at all, just like in Maemo or a normal PC?
What you showed me is exactly why Android does not have true multitasking: it uses stuff like services to actually have less things running - and I don't want that. I want all apps to truly stay in the background - so a YouTube video would continue playing, just like when I minimize the browser on my PC, and etc.
I understand why that isn't the default behavior on phones, but it could be really useful on a tablet.
I don't want to be at mercy of app developers - since even Google messes up: every time I switch out of Google Talk, I lose what I was typing.
I'd much rather have a limited amount of apps that I can launch at a time, and be able to manage what I want to keep open myself.
What you are asking for is basically to completely change core Android behavior.
Sorry, but its just not possible
Sent from my DROID2 using xda premium
It is possible, because it's been done. There was a guy who did it over on the V6 supercharger thread, but I don't think the how he did it was ever released. Instead it was developed into a "kill apps only when ram is REALLY needed" method, which could run up to 20 apps at a time on some phones apparently
Sent from my Galaxy Nexus using Tapatalk 2
I get what you are talking about but I'd say is what device your using. My eVo 4g lte's was written screwed up by HTC. Maybe yours is like that too. My rom maker and other devs have done many fixes for it. It has got better but my eVo and eVo 3d still multitask better, and it is true multitasking. It doesn't work like I'm talking about on all devices, but for u to say it's all of Android.......... It's not.
Swyped from my eVo
The mulittasking in Android has some limits which are quite annoying. On my Droid 3 apps that I haven't used will start in the background and waste RAM so there isn't enough RAM to multitask and the device is laggy. I tried rooting and freezing bloatware, but other apps have just filled the void by automatically running in the background. I really wish the user had more control over multitasking. Unless I open an app I don't want it to start in the background, even if there is enough free RAM. But Motorola makes some pretty bad software so this could be the issue.
On my Touchpad with CM9 multitasking is quite a bit better. Not sure if its having 1GB of RAM, improvements in ICS, or just CM but you can actually run several programs at once without them closing, so my browser pages stay loaded.
gagdude said:
Android has true multitasking, but... eh here's a link. Read yourself.
http://android-developers.blogspot.com/2010/04/multitasking-android-way.html?m=1
Sent from my MB508 using xda premium
Click to expand...
Click to collapse
gagdude said:
What you are asking for is basically to completely change core Android behavior.
Sorry, but its just not possible
Sent from my DROID2 using xda premium
Click to expand...
Click to collapse
Then how come this was possible on iOS?
My iPad 1 was a multitasking beast with just 2 tweaks - Swap and Backgrounder.
Everything was smooth. And yet I can't get the same on devices with 4 times more RAM?
gagdude said:
What you are asking for is basically to completely change core Android behavior.
Sorry, but its just not possible
Sent from my DROID2 using xda premium
Click to expand...
Click to collapse
Did it weeks ago. Maximum Overdrive to bypass Maximum hidden app limit.
Just grab the Ultimate Jar PowerTools script or the windows exe version.
http://goo.gl/1JPl8
Also read Post 2 of the thread for a link to the windows.exe
Currently hacking Sense 4+ which seems to be working well.
http://forum.xda-developers.com/showthread.php?t=1900626
Tried V6 - but apps I bulletproofed still get killed.
So yeah. Looks like the only thing I can do is wait until webOS gets ported to my tablet...
SilverHedgehog said:
Tried V6 - but apps I bulletproofed still get killed.
So yeah. Looks like the only thing I can do is wait until webOS gets ported to my tablet...
Click to expand...
Click to collapse
Did you patch services.jar with the multitasking mods?
Yes, with "Jelly ISCream Automatic Patcher".
V6 script showed me that I'm 100% supercharged.
well...I didn't experienced these kind of problem before. android indeed has good multitasking stuff. the number of app running on background depend on the ram size. you can't expect to run such heavy app with huge ram consumption on such device with low ram. anyway, you can try to play with minfree stuff. try to minimilize the value
The Note 10.1 can have side by side applications, is this what you kinda mean?
Sent from my XT862 using Tapatalk 2
SilverHedgehog said:
Yes, with "Jelly ISCream Automatic Patcher".
V6 script showed me that I'm 100% supercharged.
Click to expand...
Click to collapse
Well the latest one is actually called Ultimate Jar Power Tools so if you ran that, and enable Maximum Multitasking Mods, then you should be getting better multitasking/app reloads.
The windows exe would do the same thing of course and is up to date.... well until I update it later cause I'm adding the Sense 4 mod.
Any idea about how many apps you can run before vs after?
oops... double post

Galaxy S3-Hopeless multitasking?

I did use the search function. There was a similar thread posted a day ago but I'd like to do a more in-depth query here. The more extensive one has been dormant since April so I figure that I might as well open a new one.
I'm sorry if this sounds like a rant, but I want to do a serious investigation of the multitasking woes in the S3.
Just some background of my experiences:
Having flashed the latest official (ending with MF6), I must say that multitasking is just atrocious and my apps close for every 3rd one I open. RAM is always full, and once cleared it is bogged down again. And again. And again. The iPhone 4, with 512 MB RAM, can manage better than this. The RAM heavy ones (Facebook, Chrome, YT, etc.) are the worst of all-as they close down even when you don't touch the phone for a period of time.
What exactly is using up my RAM? Please don't come back to me with the Free RAM=Wasted RAM argument. I have seen no speed improvement of apps "cached in memory" compared to those that I just opened up.
I remembered back in the days of the S2 release people called 1 GB RAM unnecessary, and to an extent this is true, as the S2 was able to do some serious multitasking of 8-9+ apps without having to close any of them. Other flagships (HTC Sensation) did fine with 768 MB RAM. Heck, the Galaxy S1 seemed fine with 512 MB RAM. The OS can run, camera works fine, I can play videos fine. So where exactly did this 512 MB of extra RAM go, when the Galaxy S3 is upped to 1 GB of RAM?
I have tried zRAM 300 MB, 400 MB, 600 MB. They all make the phone remarkably slow. Initially it does prove to be somewhat useful, but over time multitasking becomes completely hopeless again.
Is there ever going to be a solution to this, or do I really have to get a 2 GB RAM phone to actually be able to use it?
Well, mate, this has been discussed over and over as you may be aware. Honestly, i've lost hope for stock firmwares on multitasking. Some people swear by zram or even swap and while it does work i didn't find the results very good. Someone may come up with a more thorough explanation on how all the ram is being actually used (and it has been written already, i've seen it around) but at this point i just don't really care much.
Bottomline, you have 3 options:
- install some aosp rom and never see this problem again (some others may come up due to lack of sources for exynos)
- compromising speed for multitasking purposes with zram, swap and there were some atempts at plain better multitask management with supercharger and others
- ignore and live with it and try to change your phone for anything else asap - samsung botched this and is making no effort i can see for a fix. If they don't care about you it's only fair you don't care about them either.
I'm aiming for a nexus4 when i find one cheap around. Plenty of power, 2Gb, fastest updates in the business. Should come down in price even more when any new phones hit the market.
This is a really big issue with this phone.
First of all, don't compare it to the iphone, cause the iphone doesn't actually multitask as it freezes apps in the background.
Start downloading something with safari and open another app in iphone. Then the download stops until you switch back to safari.
iOs multitasking philosophie is completely different to android.
Now, having paid 600euros and being unable to multitask is really frustrating. I've tried several things like different roms, external swap, internal swap, zram blah blah.
The truth is that although the stock touchwiz roms offer stuff like multi-window, they are really REALLY laggy in my opinion. I once decided to flash a cm10.1 (aosp) based rom. I haven't regretted since. I felt as if i had a completely new phone. I suggest you try such a rom. you wont regret it.
Also, there are some apps that allow you to freeze background processes. I use Rom Toolbox pro for example and i have frozen many background apps so I've reduced the amount of ram being used. Search on xda, there is a thread about which backgroung services are safe to be frozen.
Also, use greenify. Greenify stops apps from running in the background when you dont need them. Maps for example keep running in the background consuming 20mb for no reason. Greenify such apps so that they consume your ram only when you need them to do so.
Plus, change your LMK settings. The Low Memory Killer is an android service that kills apps when the amount of ram falls beneath a limit. Use an app such as Rom Toolbox to lower your limits so that apps don't get closed so often.
Finally, try zram with the appropriate settings. I use Googy-Max kernel which has bult-in zram support. I use 600mb of zram with 80% swappiness.
Having these things altered i can run at least 5 apps simultaneously without any problems. For example i run facebook and messenger along with whatsapp and skype. When i open the browser to search for something, none of the other apps gets closed.
Ofcourse if you try to run many apps, you may experience app-closing or lags. But remember, the key, is to close apps that you dont need.
Also, if your phone feels laggy just reboot it. For the next 24 hours you ll be fine without any lags.
Hopeless multitasking continues even on CM11 4.4.4. I don't understand what the reason for bad multitasking. When I switch from Dolphin browser to any other app and come just after 5 seconds I find it killed. Even I can't upload a photo to a browser. While I am selecting the, browser page was shut down.

Anyone else notice that after MHC19I Ram management is way more aggressive?

So... as the title says. Hay anyone else notice that after MHC19I Ram management is way more aggressive? I'm talking about if you use and run numerous apps as i do on my 6P that after the newest "bugfix" update things seems to be closing down?
I'm talking about if you have a bunch on notifications that you have not looked at and as you unlock your phone they just all swipe them selves away and close the program out. Or since i use swiftkey it will sometimes disappear then reopen a couple second later?
For the most part the new update is working great but i have noticed that it seems to kill the foreground apps randomly. it has been i minor annoyance for the most part but it is happening.
Apps do seem to stay in memory longer based on the super non scientific tests i have done but when using it just normal day to day i have seen these issues.... anyone else? I am interested to know.
It is still better then what came before but losing notifications before i get to read them is a little bit of a hassle.
If mods think this should be in troubleshooting feels free to move it but i think more people may see this issue come up in the coming weeks.
No problems with notifications here. Rooted with xposed mods.
jerflash said:
So... as the title says. Hay anyone else notice that after MHC19I Ram management is way more aggressive? I'm talking about if you use and run numerous apps as i do on my 6P that after the newest "bugfix" update things seems to be closing down?
I'm talking about if you have a bunch on notifications that you have not looked at and as you unlock your phone they just all swipe them selves away and close the program out. Or since i use swiftkey it will sometimes disappear then reopen a couple second later?
For the most part the new update is working great but i have noticed that it seems to kill the foreground apps randomly. it has been i minor annoyance for the most part but it is happening.
Apps do seem to stay in memory longer based on the super non scientific tests i have done but when using it just normal day to day i have seen these issues.... anyone else? I am interested to know.
It is still better then what came before but losing notifications before i get to read them is a little bit of a hassle.
If mods think this should be in troubleshooting feels free to move it but i think more people may see this issue come up in the coming weeks.
Click to expand...
Click to collapse
Yeah I've never had that issue, are you using a a custom ROM?

Categories

Resources