** memory leak? ** - HD2 Android Q&A, Help & Troubleshooting and Genera

Need some expert advice...I have vbn reloaded 2 as winmo Rom and mdeejay rEVOlution 2.0 as everyday build. Data img 512 mb. I power off, pull battery and load Android immediately using EBL. on first start "free memory" is 256mb. Bunch of apps start, i kill them all using ATK. after 2 days avail mem is only 158 mb. After a week, it does down to 108 mb. At this point I power down, pull battery and start all over again and I am back to 256 mb, then the process repeats all over again.
Is the build leaking mem? Anyone else observe this? Anything I am doing wrong?
Thx
Z
Sent from my HTC HD2 using XDA App

Stop worrying about memory unless you are actually running in to trouble. Android will actively make use of the memory your phone has by leaving apps running and caching things. This is a feature not a bug, there is no need to have memory sitting there empty, it won't improve performance or power use or whatever.
If you're worried by it get Autokiller from the market and set it to keep as much memory free as will make you happy when you see the number. Autokiller just lets you set the limits for the inbuilt memory management system.

Related

Running out of memory overnight

Almost 6 MB of memory is being consumed overnight by the services.exe process while the PPC is docked. I start with about 9.5 MB of program memory and the next day I'm down to less than 3.5 MB. Other than Active Sync, nothing else is running.
I have the following processes active:
connmgr.exe
cprog.exe
device.exe
filesys.exe
gwes.exe
NK.EXE
PhotoContacts.exe
Pocket e-Sword.exe
rapiclnt
repllog.exe
sddaemon.exe
services.exe
shell32.exe
sktools.exe
srvtrust.exe
tmail.exe
VoiceCmd.exe
if you are using a cooked rom it could be because of a flaw in ur system
what rom u using
Kill the MS Voice Command. Turn it off from the start up and that alone will save you 5-7megs of ram. Make sure you disable the voice command at the starting item, and reboot. Weather services also seem drain out the memory on a long run.
ROM is latest stock version.
I'm not concerned with apps that are memory hogs, and I use Pocket Plus to fully close tasks.
I'm seeing growth of 6 MB overnight in the process services.exe. (See attached file for detailed list of processes and memory).
I'm starting to disable apps one at a time. I'm suspicious of ActiveSync so I'm starting with it first.
Photo Contacts ain't helping either. Unless they fixed it, I gave that one up last year because of a serious memory leak.
And if you're using MSVC you can definitely get rid of sddaemon.exe, that is for the Cyberon Voice Speed Dial & is what keeps putting the shorcut there in programs after you delete it.
Although the memory usage of shell32.exe is stable, it seems very large (over 10 MB). Is that normal?
basic questions/clarifications
if i may be allowed to ask a couple of questions/clarifications:
1. does it follow/mean that the larger the memory consumption the more it/app drains the battery?
2. does it follow/mean that the higher the cpu usage the more it/app drains the battery
3. what app is that shows the heap? i'm only using task manager 2.9 by dotfred, it shows the memory but no heap.
4. I don’t know if this is a good idea, but anyhow this also came, from a desperate search, for an application that determines, w/c program drains the battery more. Is it possible to log the CPU usage? configurable to log only at every 5,10, 20, 30 sec. I know this would also drain the battery more but if the log, logs the 3 tops most drainers then we could start from there. I hope I'm making myself clear. Thanks and more power…
i hope i'm not off topic..
bump
up up up ...
jmcbride is talking about the amount of allocated memory increasing overnight, rather than the battery consumption. The heap is the list of currently-unused memory locations. When a program needs additional memory, it asks the system for a block of memory of a particular size, and this memory is allocated from the heap. When the program is through using this memory, it should then release the memory back to the heap. The operating system is supposed to combine adjacent free memory blocks, if possible, so that as much memory as possible is available as a contiguous block. This procedure is known as garbage collection. If a program loses track of what memory it is no longer using, without releasing it back to the operating system, the amount of free memory gradually gets less and less. This is known as a memory leak. One application that I have noticed is prone to memory leaks is Mobipocket Reader. If I leave it running for hours, I eventually have to reboot my phone in order to get back the free memory and be able to run commands.

Memory Leaking Solution?

Well, I seem to have a constant memory leaking problem. I've tried different roms over the past few years. Some of the most recent DCD 3.2.4, 3.2.6, 4.1.2, and now RM v2.2 light. They all seem to have the same problem. The memory is fine when I do a soft reset, then I start using the phone for whatever, Internet, Text Messaging, etc. The memory starts to get less and less and less over a very short period of time until I hardly have any left. So, I have to keep soft resetting the phone like every hour or more. Is there a solution to this? I have to assume it's a hardware issue since all the ROMs seem to cause the same problem. I have a friend that has the same phone and he uses his phone with MR1 and he says he has no problems at all, but he uses his phone as a basic phone and doesn't use it like a computer, like I do. He doesn't text message or use many applications at all. So, I don't know if he would have the same problem if he ran all the apps I do and text messaged, etc. Thank you for your help and time...
It's not a hardware issue. Due to the nature of our OS, there will more than likely always be a slow memory leak...but it shouldn't be bad.
Do you have a task manager like HTC Task Manager that allows you to completely close apps when you press (or hold) the X? You may have lots of apps running throughout the day that don't actually exit.
You can also try running a program like Oxios Hibernate occasionally to free up some memory.
You may also have programs such a Voice Command that run in the background and use memory; try looking and seeing what is running in the background.
Try downloading something like DotFred's Task Manager, and look at the what programs are running and how much memory they utilize shortly after a reset. Then look again a few hours later to see what changes.
Yes, I do and I'm exiting the apps. It doesn't seem to be bad with this new RS ROM. All the DCD ROMs that I used had a major problem when I used them. I was using memRelease, that seemed to be the best out of the ones I tried, but it would still not release a lot and it would slowly go down lower and lower. I've just started using Oxios Hibernate 1.40 since it came with the new ROM. I don't have voice command that I know of. I see what's running in the background, there is some utility came with the ROM, but I'm not sure what the files are that are running and if it's OK to stop them. I will have to try what you say, but I'll have to try to find that utility again, or get that one you suggested. Thanks!
btonetbone said:
It's not a hardware issue. Due to the nature of our OS, there will more than likely always be a slow memory leak...but it shouldn't be bad.
Do you have a task manager like HTC Task Manager that allows you to completely close apps when you press (or hold) the X? You may have lots of apps running throughout the day that don't actually exit.
You can also try running a program like Oxios Hibernate occasionally to free up some memory.
You may also have programs such a Voice Command that run in the background and use memory; try looking and seeing what is running in the background.
Try downloading something like DotFred's Task Manager, and look at the what programs are running and how much memory they utilize shortly after a reset. Then look again a few hours later to see what changes.
Click to expand...
Click to collapse
OK, I can't find the application I was talking about, I'm thinking it was in the Heavy version of the ROM and not the Light and that's why I can't find it now.
I did what you suggested and I installed DotFred's Task Manager. I can see the processes that are starting when I do a soft reset. Can you tell me if there is a place that lists what all the processes are and what I need and don't need? This way I can figure out what processes and don't need and stop them. Is there a way to stop some processes from starting automatically when you turn on the phone, and that will only start when I start them manually?
When I do the soft reset my free memory is about 17.76 MB but my processes are only using 15851 KB but my free memory is 18.52 MB after I use Oxios. So, that doesn't work well to free up memory. After you minus the memory the proceses are using from the total memory it should have 37.44 MB free. So, I don't know what's using up the rest of the memory.
I'm also using Kernal to use the High Memory Kernal so the camera doesn't work and it frees up alot more memory. So, if I used Low Memory Kernal my memory would really suck. So, there must be something wrong here.
Is there a way to keep ActiveSync from starting all the time? Here is the list. Thank you!
shell32.exe - 4440 kb
gwes.exe - 3350 kb
device.exe - 2677 kb
services.exe - 2383 kb
filesys.exe - 1812 kb
cprog.exe - 892 kb
connmgr.exe - 104 kb
repllog.exe - 101 kb
TaskMgr.exe - 80 kb
psShutXP.exe - 5 kb
FTouchFlo.exe - 5 kb
poutlook.exe - 1 kb
NK.exe - 1 kb
btonetbone said:
It's not a hardware issue. Due to the nature of our OS, there will more than likely always be a slow memory leak...but it shouldn't be bad.
Do you have a task manager like HTC Task Manager that allows you to completely close apps when you press (or hold) the X? You may have lots of apps running throughout the day that don't actually exit.
You can also try running a program like Oxios Hibernate occasionally to free up some memory.
You may also have programs such a Voice Command that run in the background and use memory; try looking and seeing what is running in the background.
Try downloading something like DotFred's Task Manager, and look at the what programs are running and how much memory they utilize shortly after a reset. Then look again a few hours later to see what changes.
Click to expand...
Click to collapse
It must be something you're installing because I've used most of the ROMs you mentioned along with having tons of extra stuff installed and running in the background and with heavy use the memory leaks really only became a problem after a day or two... not every hour.
Well, the RM ROMs seem to be working better then the DCD ROMs. I have to keep clearning the memory, but I don't have to keep restarting my phone like I did with the DCD ROMs. I still don't understand what's up with the memory. I had like 50% clear memory after the fresh install of the new ROM, and I checked the processes. I then restore my backup and install my software and then the memory goes down to like 30% free. I check the processes and there is no new processes. So, if there is no new processes taking up the memory then what is, and how can I find out? Yes, there must be something wrong, but I don't know how to figure out what it is. Thanks!
unL33T said:
It must be something you're installing because I've used most of the ROMs you mentioned along with having tons of extra stuff installed and running in the background and with heavy use the memory leaks really only became a problem after a day or two... not every hour.
Click to expand...
Click to collapse

Lack of available memory

I have had my X10 for about 2 weeks now and im finding that, even though i havent got many apps on the phone, advanced task killer is reporting only 30-40mb of memory available. Does anyone know why this is happening? When i first got the phone it was reporting 100+mb memory for about a week.
Android = Linux
Linux = http://www.linuxhowtos.org/System/Linux%20Memory%20Management.htm
The reason Linux uses so much memory for disk cache is because the RAM is wasted if it isn't used. Keeping the cache means that if something needs the same data again, there's a good chance it will still be in the cache in memory. Fetching the information from there is around 1,000 times quicker than getting it from the hard disk.
Click to expand...
Click to collapse
Do you use the advanced view of advanced task killer?
Maybe there are several system tasks running, that eat lots of memory.
i've found that since changing to RIFA016, I have slightly less available memory. (around 30MB if I remember right)
@VMaxxor: I get that i uses some of the RAM for disk caching but i had the same number of apps one week ago and i had 110ish MB of available memory. i dont how it could have cached more things.
@McKebapp: I did just enable the advanced view. the system process seem to be taking up about 100mb of memory but i hav no idea where the other 70ish mb is going.
@Niceties: What is RIFA0106?
R1FA016 is the latest build version available at the moment (correct me if I'm wrong here!)
You might have to debrand your phone to get it! (theres a thread on how to do this in this forum)
As mentioned earlier, Linux is very good at memory management and works on the principle that if memory is there and not being used for anything then it might as well fill it up with something. When you start a new app the Linux kernel organises the memory chunk it needs.
I don't use task killers, they don't really offer any benefits in a Linux based system, unlike Windows which has always been abysmal in doing this.
(BTW - The HTC keyboard rocks !!! I typed all of this fast and with the minimum of errors and corrections)
Sent from my X10i using the XDA mobile application powered by Tapatalk
savjanivv said:
@McKebapp: I did just enable the advanced view. the system process seem to be taking up about 100mb of memory but i hav no idea where the other 70ish mb is going.
Click to expand...
Click to collapse
I've also realized something strange.
After restarting the Phone, I've got around 154MBs of free Memory.
I use the Pro Version of the Advanced Task Killer, that flushs the phone Memory when one locks the screen.
4-5 Days later with normal use, the Phone begins to slow down.
Then, I've just 40MBs of free Memory but no task is open.
I guess this happenes by the Linux Memory Management cashaw mentioned earlyer.
But the Phone is slow as hell.
After restarting it again --> Voilá >150MBs and the Phone is back at normal speed...
problem
this same thing happens to me....turn the phone off and it shoots right back up to 150mb or similar but after awhile it returns to 40 with no apps running and is leaving the phone really slow.
McKebapp said:
I've also realized something strange.
After restarting the Phone, I've got around 154MBs of free Memory.
I use the Pro Version of the Advanced Task Killer, that flushs the phone Memory when one locks the screen.
4-5 Days later with normal use, the Phone begins to slow down.
Then, I've just 40MBs of free Memory but no task is open.
I guess this happenes by the Linux Memory Management cashaw mentioned earlyer.
But the Phone is slow as hell.
After restarting it again --> Voilá >150MBs and the Phone is back at normal speed...
Click to expand...
Click to collapse
i once saw 201 mb free memory....
but soon it reduces to 130-140.
it stays there for me for as long as 2-3 days..
i just set my app killer to be slightly more aggressive and it seems to have done the trick.... sticks around 190 available now!

Android memory leak

My phone was running like crap so I ran the task killer and it only got back 35 megs of free memory. I checked for running services and it was no where near the amount of missing memory. I restarted the phone and I have 150 megs again...
I wouldn't have thought a memory leak would be possible in an os where everything is run in java. Has anyone else seen this behaviour?
Sent from my AWESOME Galaxy S
This has nothing to do with memory leaks, but is how Android memory management works. Using task killers usually mess up the automatic memory management.
The default settings for memory management on the Galaxy S aren't optimal unfortunately. Using Autokiller from the market, you can modify these settings (requires root) and avoid the device bogging down because of low memory.

[Q] Does A2SD result in more available 'process' memory?

Is the phone's internal memory shared for both app-storage AND running processes? I had assumed they were separate memory pools.
I monitor my Running Services pretty closely and I can see the memory mgmt only trying to maintain about 18 MB free. The phone starts to lag if there's less than that so I would like to see more available, e.g. 30 MB! Would implementing A2SD achieve this? Again, I was under the impression that it would not. Other threads have specifically stated that A2SD has nothing at all to do with performance and instead is intended to make it easier to switch ROMs by maintaining all your installed apps on the SD card (apart from the memory you need to flash when changing ROMs)
Thank you for any clarification!
Internal memory has nothing to do with RAM, which is what running processes use.
You want auto killer. Can set your minimum memory free and forget it, and let android maintain it.
Sent from my HERO200 using XDA App

Categories

Resources