yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] kakabartz:
I haven't checked my memory under the system's settings, and my n5 was running fine for days, actually I hadn't even rebooted it since the update

But around 130 hours of uptime the system became very slow, chrome started to crash, launcher to reload

Rebooted and it was like a new device

Android 5.1, clean install

Read about the Facebook messenger, and realized that I installed it one day before the problem started

Going to uninstall and see if the problem persists
[Nexus 5 General] eak1080:
Guys it is not just one app that is causing this...i have never used facebook (dont have one) and i experience this leak. It happens for a variety (of still unknown) reasons. some apps seem to trigger it more rapidly than others.....but it is a core android system problem...not an app problem. It happens on the N7 and other devices as has been reported. Google has said that they have had an internal fix for this since december 29th.....i am still waiting.
[Nexus 5 General] FunDionysus:
Pity Google could not have integrated the fix into 5.1 codebase (and do thorough testing), even if it meant delaying 5.1 release. For Google getting 5.1 out on new product (AndroidOne) was much more important than limiting issues for the current userbase.
[Nexus 5 General] markdapimp:
Google should do public beta's like what Apple is doing, Maybe then we'd see less bugs..

I would rather wait for a long update and have it working perfect rather than small tiny little revisions each way fixing bugs

As a OEM Perspective (If I was one) I would prefer above too ^^
[Nexus 5 General] MrKaon:
I used to get that error then I googled it came cross solution for my case:

If you use Viber, uninstall it.
[Nexus 5 General] azlan96:
I dont have Viber installed
[Nexus 5 General] MrKaon:
Any app with camera access can cause the error, in my case was Viber.
[Nexus 5 General] pookipsy:
a bit off topic, but not only our android got issues: http://www.gsmarena.com/tmobile_iphone_users_reporting_blue_screen_of_death-news-12788.php
[Nexus 5 General] dan-fish:
R5 changelog seems to mention plugging a memory leak
[Nexus 5 General] birdie:
Here's a screenshot of my Nexus 5 running vanilla Android 5.1.1:

(8 days of uptime)

This is totally f*cked up.

Here's a nice video showing how this memory leak can be easily triggered (Just run and exit the Farm Heroes Saga app):

https://www.youtube.com/watch?v=oArEVgww72c
[Nexus 5 General] mbwelch:
It seems this victory was short lived. This leak has come back for me with LMY48M. Can be reproduced the same way (swiping away Farm Heroes Saga) as well as other ways. Nice job Google!
[Nexus 5 General] pfmiller:
The issue came back for me too, but after cleaning my cache partition a couple days ago it seems to be ok again.
[Nexus 5 General] mbwelch:
Thanks for the suggestion, however this didn't fix it for me. To be clear, you can launch the game Farm Heroes Saga, then hit the square (multitasking) button, swipe the game away and your system memory usage doesn't increase by about 100 MB each time you do this?
[Nexus 5 General] pfmiller:
No, I am still having the problem if I try it with that app. After an hour of waiting the memory did not get released.
[Nexus 5 General] msgfromside3:
Glad I checked back this thread. After the 48M update, I started noticing the behavior associating with memory leak - sluggish UI, launcher refresh, process restarting from "App" view, increase in the "moderate" memory usage from the developer menu. I thought I was going crazy or maybe it was the time to replace my phone (5X is coming out. :)).

FYI, I didn't even have to do that game trick. My phone was up since the day 48M update first came out. I even don't play a game, mostly browsing, fb, twitter, and google music.
[Nexus 5 General] MrKaon:
Running it for last 7 days, doing everything with my phone, no memory leak.
[Nexus 5 General] MrKaon:
Sure
[Nexus 5 General] MrMarques01:
Weird, I also don't experience any issues here running the latest Cataclysm (which is based on the 48M) with ElementalX. I just did the Farm Heroes test for around 15 times, but the system memory wouldn't increase.

Are you guys who are experiencing issues running everything stock?
[Nexus 5 General] msgfromside3:
Done!
[Nexus 5 General] kraehetest:
The last memory leak in may was kernel related. Maybe now it's the same.

If you have a custom kernel, you may have luck and no memory leak. ElementalX schoud be run fine with 48M.

Can somebody with stock and custom kernel confirm that?
[Nexus 5 General] kikikaka:
It was running fine with the previous version. Since the latest LMY48M, the memory leak problem DOES come again and quite noticeable just like before ...

Right now I see in my N5 a number of background process (around 5-10) keep restarting at the same time . I need to reboot it .

(at pure stock rom )
[Nexus 5 General] kicksilver:
https://code.google.com/p/android/issues/detail?id=187208

Enviado de meu Nexus 5 usando Tapatalk
[Nexus 5 General] cryomagneto:
76 hours, no mem leak yet

Did a full clean 5.1 install, using the install.sh (Mac). No memory leak yet, system mem stays around 350 - 400 MB.

I have adaptive brightness and location services disabled. Those have both been proven battery killers for me in the past, so I"m not looking forward to enabling them. I'm curious though, so I'll wait a few days and try it if I still don't see any memory leaks.

I think I did have the app drawer crash once early on. That's about all I can think of as far as misbehaving.
[Nexus 5 General] JonasVFC:
they already are doing that.....don't you see? :P
[Nexus 5 General] markdapimp:
https://www.youtube.com/watch?v=Vmd33pZPT6A
[Nexus 5 General] freezer2k:
Hm,

Even with 5.0.1 I did not have that many issues, are these apple trolls?
[Nexus 5 General] TheLastSidekick:
Not sure if it was mentioned already, but Google acknowledged the problem for 5.1 with some sort of memory bug. I'm sure the fix will come to AOSP soon, as for those who use stock you're going to have to wait a bit longer.
[Nexus 5 General] markdapimp:
You must not be filling up the memory enough, These are not Apple trolls and what you see is actually happening.
[Nexus 5 General] MrKaon:
Guys try this app from chainfare

[root]Recently

It can't do anything about system apps but will manage users apps and tries to keep memory clean with useful multitasking.
[Nexus 5 General] NotFromMountainView:
Having suffered miserably from the memory leak on 5 - 5.01, I'm happy to say it's been (very) smooth sailing for my first 36 hours on 5.1! Time will tell if there is some other bug lurking, but right now it's finally zipping along buttery-smooth! :D

As to battery, my first full day netted almost 4 hrs SOT over just under 14 hrs (all WI-fi) - but there were also a few hours of Podcast Addict & TuneIn Radio. This was roughly the battery life I was getting with 5.1, and I have all services turned on. (Except for NFC which has been turned off ever since that time I brushed against the "call mom" sticker at 3 AM.) Have yet to see how it does on 3G, 5.01 took an unaccountably massive battery hit when I went off Wi-Fi.
[Nexus 5 General] ilciumbia:
You know what seems strange to me? While my Nexus 5 on 5.1 Cataclysm is almost unusable, requiring about a reboot a day under normal use, my Nexus 10 on 5.1 Rastapop exhibits no sign of memory leak, staying at about 500 megs of free RAM even after days of normal use. Is anyone experiencing the same condition? Could it be that the two devices behave differently with respect to memory leak due to the different chipsets they employ? If the memory leak is Nexus 5 specific, poor us, I fear...

Sent from my Nexus 10
[Nexus 5 General] galaxys:
Also no memory leak for me with Groggs aosp rom...
[Nexus 5 General] happiness4u:
What memory leaks you people are saying? Still haven't encountered any of those issues that have been indicated in this thread. As I have observed, much of those who are having issues with their devices are heavy users. Even read 61hrs of ON time? Man, give your phone some rest! A PC needs to be shutdown, same applies to your phone .Some play too much games on their phone then complain about lags, memory leaks, or whatsoever? C'mon, that's why it's called a "phone" in the first place. Have you ever used a sony PSP to call your mom? It's doesn't have GPU of a gaming rig after all. All of your complaints reflects on how you stressed your devices.
[Nexus 5 General] TheLastSidekick:
Whoops accidentally liked this. Just because you don't experience a memory leak doesn't mean there isn't one. Heavy users or not, just being a heavy user means some one is more likely to notice the problem first-hand. We have 2GBs of RAM. I agree with rebooting every thing once in a while but yes, mobile phones are meant to be on all day. I don't play games on my phone either, maybe once in a while but not actively and I don't have one installed at the moment. The GPU has nothing to do with the memory leak actually. And no need to get defensive, but I do think you need to learn a little more about Android and the Nexus 5 and it's components in general.
[Nexus 5 General] pfmiller:
What are you taking about? 61 hours of uptime is a lot? Do you realize that's not even 3 days. PCs don't need to be shutdown either, my home computer currently has been up for 21 days with no problems. It only gets shutdown for kernel updates. Before Lollipop my phone regularly went weeks without shutting down as well. It's too early to say of that will be the case again with 5.1, but there's absolutely no reason why it shouldn't be true. Having to reboot every 2 or 3 days is ridiculous, hell even Windows ME could beat that.
[Nexus 5 General] happiness4u:
[MENTION=4776810]TheLastSidekick[/MENTION], In my case, mobile phone does not meant to be ON all day. That's like tying yourself to the things that you can live without. And I love my night sleep so I don't want anyone buzzing me in the middle of the night. As I've said, It varies on every user. On 5.0.x, yes, I've experienced that annoying memory leak, phone lags and unresponsive, chrome crashes, etc... But on 5.1, I notice a lot of performance improvement (As an average user). Never experienced that memory leak that I used to have on 5.0.x. Still have 1Gb of free ram for a day of use. I also think that It's per app issue, as most apps especially games are not yet optimized for lollipop.

[MENTION=2601898]pfmiller[/MENTION], try staying in front of your computer for 21 hours without shutting down yourself. Btw, electricity must be free of charge from your country. I might consider migrating to your place.
[Nexus 5 General] kicksilver:
People are mistaking free rom for system ram.....
[Nexus 5 General] happiness4u:
How about my free rom? :D
[Nexus 5 General] rolldroids:
Free does not mean unused, but cached+unused. Click on "view cached processes" and there is free=unused
[Nexus 5 General] :
android is different from windows. :)
[Nexus 5 General] rolldroids:
Not really i think. Windows caches things too. It is all about the meaning of the word "free". It should be " available" imo
[Nexus 5 General] b00ster:
Android 5.1 is really better than 5.0 in terms of RAM usage. Almost all apps run in the backgroud for a long time and switching between is very fast. Everything runs flawless.
[Nexus 5 General] TheLastSidekick:
Family emergencies, job interviews, friends. Why wouldn't you need a phone? Otherwise if I didn't need it, why would I have spent 400$+ on a phone? Lol..and it's not abnormal for computers to go onwards of up to 2 weeks without being turned off. Some people torrent, some people use them as servers of course. Different strokes for different folks, so to speak.

---------- Post added at 09:11 AM ---------- Previous post was at 09:09 AM ----------

Agreed. Testing pure AOSP now and the difference is night and day between 5.0.2. I wonder what 5.1.1 holds for us now that the memory leak was patched.
[Nexus 5 General] happiness4u:
We don't use mobile devices at home as we value family time, eating together, talking together rather than playing and tinkering with our devices. That's why it's called mobile in the first place, you bring it wherever you go, but at home, you don't need to go mobile I guess. If someone wanted to contact us at night, we have a landline anyway. Then asked the one I qouted below you, if he uses his computer as a server or whatsoever. Not my problem anymore. Just like you've said, "Different strokes for different folks." For me, everything needs to rest sometimes.
[Nexus 5 General] pfmiller:
Whatever works for you, but your unusual use case is not relevant to anything. Just because you don't need a device that works for longer than a day doesn't mean Android doesn't need to work right for more than a day.
[Nexus 5 General] AndrasLOHF:
Eh. I've never had a landline since I moved out of my parents house after high school 13 years ago. I do not know anyone in my generation that has a landline. If they do it's because they are boomerang children and have moved back in with their parents in their late 20's early 30's and their parents still sees land lines as a necessity as that is what they always had. IMO Why pay for 2 bills to do the same thing...one(landline) in a much more limited capacity. When a phone can't operate like a phone when it is needed in an emergency situation because it's lagging/shutting down on it's own because of a poorly coded update that is a problem. We here on XDA are more knowledgeable and could roll back to KitKat. What about all the other people who got the OTA that do not possess skills to do so. The fact that this has stretched on for over 4 months now is appalling IMO. We Nexus 5 users technically have had Lollipop for almost a year now granted the dev previews were based differently. What was done with all the information they gathered during testing??? Why is the device that Lollipop was previewed on having the most issues. I just don't get it. Repeatedly being told to restart your device every day or when things go crappy for a phone someone like myself has had for 16 months when it didn't require that before is ridiculous. In trying to get out of memory issues have flashed the factory images using both flashall.bat and manually several times on each Lollipop release and used the phone without installing a single user app and the memory issue popped up every time. Most times I could recreate launcher redraws within less than an hour or so of use. All it took was heavy Chrome browsing then going back to the home screen. This is something I have not repeatedly seen since using my old HTC Evo LTE with 1gb RAM on Jellybean/Ice Cream Sandwich on Sense 5.0.

All that being said I still love Android and could never see myself using any other mobile OS. Google has just really $#!+ the bed with Lollipop on the Nexus 5.
[Nexus 5 General] cbobb123:
Well I use my phone as an alarm so it needs to be on for more than a day. Stop telling people how to use their device....
[Nexus 5 General] zerosum0:
Mines on 24/7 and stays round 37/48%which is fine. I use it a hell of a lot, 8 hour voip calls to my gf in USA. We sleep connected. Games Internet. Never once had a lag with the update.
[Nexus 5 General] God_:
After 1 day usage my keyboard just get lagy and slow typing , deleting letters etc etc ... maybe the bug isnt were but a lot of memory problems still there. I have to install another keyboard to fix this.
[Nexus 5 General] Edge330:
After 110h without restart I didnt notice any lag or something similar.
[Nexus 5 General] rolldroids:
I dont have got the update yet, but on my Nexus 7 2013 with 5.0.2 the system RAM usage is very lowView attachment 3220624 About 150...250 mb. Thinking of 512 mb devices I guess with 400 MB or more system usage, there are things going wrong, arent they?

---------- Post added at 06:54 PM ---------- Previous post was at 06:52 PM ----------

Hmm screenshot has not worked. I try again:
[Nexus 5 General] NotFromMountainView:
Now that I'm over 90 hours uptime since updating I'd say the memory management is much improved upon, but not (yet!) completely fixed. First off, under 5.0x at 90 hrs my phone would be running at a herky-jerky crawl, spitting out apps and pretty-much demanding a reboot. Right now the phone is stable & functioning so: progress! That said, System is hovering around the 700mb mark, and I have seen that some background apps have restarted. The major difference is that when they restart they really are doing so in the background - no more playback stopping mid-stream, no more visible redraws, no more painfully long waits for Overview/recents to finally pop up! The only real performance issue I'm encountering is the occasional sluggish pop-up of the Swype keyboard -- but even this is MUCH better than it was before the update.

A few relevant points: I have every service turned on so may account for my system usage starting off toward the higher end of 'normal'. This was an OTA update & did not reboot after the update (just to see how it manages on the first go) in my somewhat limited & purely anecdotal experience, Android likes at least one or two reboot cycles after an upgrade before really "settling in". Time (and an eventual reboot!) will tell if 5.1 is really as stable as it appears at ~90 hrs. If not yet perfect, this is (so far!) a huge stride forward on performance & stability.
[Nexus 5 General] noxlord:
4GB ram will be standard when 64bit android will be used. Otherwise it's just a waste of expensive ram.
[Nexus 5 General] ilciumbia:
I have pinpointed a specific app which was causing memory leak. It is an app which changes wallpaper at every screen on, downloading a set of new ones every day. After a few hours, if lucky a couple of days, the RAM would fill up completely and that sole app would take more than 700 megs, causing constant redraws to home screen. I have terminated the offending process and now the situation has greatly improved: no more redraws and very good multitasking.

If I have to learn a lesson from all this, I would say that memory leak has indeed been improved in android 5.1, but there are conditions when a poorly programmed app can in fact clog the RAM, without android being able to actively recover released memory. This could also explain why some people never encountered any problems, whereas others are constantly facing redraws, slowdowns, and ultimately the need for a reboot.

This is my guess... What do you think?

Sent from my Nexus 5
[Nexus 5 General] markdapimp:
Proof of 5.1 Memory leak: https://www.youtube.com/watch?v=yJUcMq-4mLE

Disclaimer: Not my video
[Nexus 5 General] DSF:
Dude, firstly, it's called smartphone which is a portable computer. And not all of the heavy users are playing games on the device. I mostly do browsing with chrome, some facebook, whatsapp, instagram, gmail, etc. And trust me, the memory leak issue sucks bad time!

---------- Post added at 11:52 AM ---------- Previous post was at 11:44 AM ----------

You are so wrong on so many levels..

Just a tip: i like to sleep without interruptions too in the night, no need to turn off the freaking device, that's why it's a damn smartphone, you either can schedule profile management via 3rdparty app or use Priority mode from Android 5 which is brilliant (at first i wasn's fan of this and used Do not disturb app). Get notifications from desired apps/contacts at a scheduled time range.

And computers don't use too much power while idle, you know there are pc with smart saving mode, turning different components in low energy mode/off. Ofc, it depends of the hardware.. But hey!

Open your eyes.
[Nexus 5 General] swa100:
Some people state that flashing another kernel like franco kernel fixes this memory leak. This can't be true, right?
[Nexus 5 General] XeLLaR*:
Everything is fine for me.

Gesendet von meinem Nexus 5 mit Tapatalk 2
[Nexus 5 General] airwolf1544:
It isn't true. Tried Franco.. Same leak. I've read elementalx is the same...

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 General] mithab:
I keep my computer on for 3-4 days straight and it stills runs fine.

Just because you're an idiot, doesn't mean you should tell everyone to become one too!
[Nexus 5 General] rolldroids:
A PC can be set to sleep mode instead of shut down so you don't need to wait for boot up. Even Windows can do this until it needs to reboot for installing updates! Every OS should be able to run years(!!) without running out of memory! For example Linux based routers do exactly this without any problems.
[Nexus 5 General] Edge330:
Is there any app which do auto - reboot every few days in defined time?
[Nexus 5 General] t3al:
Tasker
[Nexus 5 General] AndrasLOHF:
Kernels with compressed zRAM like Faux can help for a little bit. Eventually though it still pops up.
[Nexus 5 General] swa100:
I've found out out that if you don't kill apps and don't use greenify, the system ram doesn't increase. It looks like it's staying around 300-400 MB max. Ram used by user apps stays quite high this way though, but at least it's not an endless growth.
[Nexus 5 General] kicksilver:
100h uptime, system ram is at 470mb. Looking good..

Enviado do meu Nexus 5
[Nexus 5 General] kamajikaciya:
276h uptime, system ram is at 607 mb.
[Nexus 5 General] and313:
1h uptime... Had to reboot to make a call
[Nexus 5 General] swa100:
Does this contain a fix for the memory leak? Since that build was made 16 February.
[Nexus 5 General] lalo20:
there is no fix for that, have to wait another month :p
[Nexus 5 General] swa100:
Awesome, haha. I'll have my s6 by then. Bye memory leaks, bye Google.
[Nexus 5 General] PunishedSnake:
Not necessarily
[Nexus 5 General] swa100:
Haven't noticed them on android L for the S5 and HTC One m7.
[Nexus 5 General] jlmcr87:
This is the nexus 5 forum, not samsung or HTC....
[Nexus 5 General] luckana:
It's not about that. It's about the fact that google obviously can't take their sh*ts together and fix the god damn OS. Personally i feel such a turn off by having to restart my phone every 12 hours. Yes 12 hours are required for my RAM to drop half way down. Thousands of users like me, pissed off by this memory leak bulls*it. Just ridiculous... I am disappointed by the fact that i can't use my phone like a normal person because the memory goes to heaven . Christ
[Nexus 5 General] ilciumbia:
I wrote it some days ago, my Nexus 5 has been on for almost 150 hours and no sign of memory leak yet. I've pinpointed a specific application which was filling my memory in about 12 hours, too. After removing it, no more problems. So I would say that memory leak has not been resolved in fact, but may be limited to some applications which behave badly and, due to the memory leak bug, in the end fill up all available RAM. Try and see in Apps->in use if there is one (or more) which is using an insane amount of RAM (in my case the offending application was taking up 700 MB alone!).

Sent from my Nexus 10
[Nexus 5 General] PunishedSnake:
Nor have I noticed it on my n6 5.0.1 nor 5.1
[Nexus 5 General] swa100:
It's about the system RAM, not about the RAM used by user apps.
[Nexus 5 General] renton82:
I have tried some memory cleaner, but they clean only app memory and not system memory...
[Nexus 5 General] californicated:
Same as wiping recents, memory cleaner only make the memory leak worse.
[Nexus 5 General] renton82:
Yes, i saw... the only thing to do seems to reboot... very disappointed!
[Nexus 5 General] swa100:
Indeed. As I said before, not swiping away recents and not using greenify is the best workaround.
[Nexus 5 General] bashywash:
Still can't believe G never fixed this. I left my N5 back in Jan and came back to see if it's been fixed! WOW
[Nexus 5 General] cnkhanh:
I dont see how is it a problem? I do have the memory leak but for me, I do not have any performance drop or decreased standby time.

But I do think my phone gets hotter after 5.1 when playing 3D games.
[Nexus 5 General] pfmiller:
Apps start shutting down at random after a few days. Usually the biggest problem is when I can't have music and navigation both running at the same time. That usually happens after 2 or 3 days and I need to reboot at that point.