Memory leaks - Wing, P4350 General

Hi,
Can anybody tell me if it is OK or not. When I'm starting the devcie I have something about 21Mb of free program memory. All addons I'd installed to SD memory card. After some period of work, typically 2 days, I see that the available memory reduces to 17Mb. Cleaning all cashes and unnecessary files, having no running applications is not helping a lot.
After reboot I again have 21Mb back.
Which component is stealing the memory?
I have a 20-year experience in programming of big computers, and such behaviour is typically considered as a serious bug.
This Herald is my first device with WM5 (and WM in general) and I don't know if it is the feature of WM5 of is connected with this certain device. Can anybody advice me?

Don't warry, that's OK. If you need, you can close all the applications (Start-Settings-System-Memory-Running applications-Stop all.)
And, additionaly, some system apps use memory.
In any case, a lot of memory is needed only for apps like GPS-navigators, databases etc

Bader said:
(Start-Settings-System-Memory-Running applications-Stop all.)
And, additionaly, some system apps use memory.
In any case, a lot of memory is needed only for apps like GPS-navigators, databases etc
Click to expand...
Click to collapse
Of course, I stopped everything. It seems like some programmes are not freeing all the memory used and are leaving "orphans". It is necessary to reboot device from time to time, and this is a typical behaviour of "sick" operating system. After a month of continuous work you would be out of memory. I cannot consider OS be stable, if it is necessary to reboot each day. Well done again, Billy.

I have noticed the same thing on my 4350. Right now I have 16.74 avaible, I soft reset it last night

Believe it or not, this is typical of all windows mobile phones. For whatever reason, many programs that use memory will not release it when closed. I usually reboot my phone once a day to free up the memory. I have a couple of third party apps that I use that actually take the memory down to 5megs. Even after closing them, I only get 12-13 back.

Bad news. And this is not question of belief, it is a fact. I will consider moving to 'nix.

There's no working *nix builds available that'll run on the phone AFAIK.

RpR said:
There's no working *nix builds available that'll run on the phone AFAIK.
Click to expand...
Click to collapse
Hey might mean that he is switching to devices that run linux out of the box.

Related

Memory eaten away !!!!!!!

I think all of you have seen this.. Free program stats from around 25 Mb and keeps on going down even if you completely kill the processes. is there a tool which actually kills the resident dlls and other crap in memory.. Please advice.. i want to get out this habbit of soft reset after couple of days just to bring my memory back up where it belongs ;-)
Cheers
Zobie
Yeah, leaking memory is also one of the very few things I hate on my Wizard
I also would like to know if there is a Memory Cleaner that works like it should and not only kills open programs.
Had problem also. But the Internet Exploder was to blame. I had the history settings to 30 days. Which is the default. Back to 0 days and everything was hunkydory again.
I had problems with memory too. I had less than 1MB of storage memory left. So I went from a custom 2.17 ROM to Mr. Clean AKU 2.3 and changed the Registry setting for IE as follows:
; IE Cache to storage card
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Cache"="\\Storage Card\\Temporary Internet Files"
I've used this ROM for a week now with lots of programs. I have an average of 25 MB of storage free and the system is fast.
I have experienced no problems whatsoever.
If i don't even open the IE will it still be a memory hog?? i don't understand that.. I can understand that if i use IE all the time it will cause problems but if i don't even use it why woud my memory drop with time. Cans omeone please explain. I am not trying to offend neone here but just wante dto know. I can definitely try the reg settings. Please let me know.
Thanks
Zobie
Don't confuse ROM with RAM and storage with program mem. I think the topic starter referred to his RAM mem becoming less every day, resulting in low program mem and slow operations, needing a reset to clear the RAM and speed up the device.
The IE cache is stored in ROM and will only fill your storage but not slow down your device.
memory leaks are unfortunately a standard issue with PPC devices, I have always suffered from them on both WM 2003 SE and Wm5 devices. For me a soft reset now and then clears it up, but I find it an annoying "feature" as well.
I think like Windows its the In Memory DLLs which are the culprit. I wonder if there can be tools for detailed view of memory for Xp why not WM5.
BUMP !!!
zobie said:
I think like Windows its the In Memory DLLs which are the culprit. I wonder if there can be tools for detailed view of memory for Xp why not WM5.
Click to expand...
Click to collapse
What are the "In Memory DLL's"? Never heard of such a thing.
The memory that slows your device is the addressable application memory, which is a total of 32 MB. You cannot change that or add to it.
Think of it as the same as the Virtual Memory (VM) in Windows XP on your desktop. Every application you open reserves a bit of this virtual memory. Some apps willingly give it up when they close - some that are not as well written do not. A soft reset when you see the device slowing is about all you can do.
My only other advice is that skinned applications - particularly Today screen plugins - use up this addressable memory very quickly. This includes Wisbar Advance2, PocketBreeze and iLauncher, and any weather program. If you are running these, you will always have similar issues. Find an acceptable mix of skinned apps that you must have, and try doing without the rest just to see how it treats your device's memory.
And if you want to see what processes are running, and how much memory they are using, try MemMaid by Dinarsoft or SK-Tools. Great programs.
Amen. I wonder how much is held in reserve by the system in case you start the app again? Real Windows has been doing that for a long time, I wouldn't be surprised if micro Windows did it as well. Kind of reminds me of years ago when NT would report how it actually used memory and the end result was there was almost zero bytes "free" because all memory was always used for something, it didn't let anything sit around doing nothing. But since users didn't get it, MS wrote the taskman and so on to report something as "free memory" even though it wasn't really free. Finally, a lot of apps were designed to hide, not close, when you select the "X". If one of those task manager apps just blows the app away, does it bother cleaning up after the app which wasn't given the chance to clean up after itself by closing correctly?
markgamber said:
Amen. I wonder how much is held in reserve by the system in case you start the app again? Real Windows has been doing that for a long time, I wouldn't be surprised if micro Windows did it as well. Kind of reminds me of years ago when NT would report how it actually used memory and the end result was there was almost zero bytes "free" because all memory was always used for something, it didn't let anything sit around doing nothing. But since users didn't get it, MS wrote the taskman and so on to report something as "free memory" even though it wasn't really free.
Click to expand...
Click to collapse
Take a look here to learn about what you really see in task manager regarding memory/cpu usage.
http://tinyurl.com/l57w8
Finally, a lot of apps were designed to hide, not close, when you select the "X". If one of those task manager apps just blows the app away, does it bother cleaning up after the app which wasn't given the chance to clean up after itself by closing correctly?
Click to expand...
Click to collapse
Depends on which task mamger you are using; some use the WMClose command instead of the Kill command. Big difference!
Tools Like Memmaid SK-Tools don't allow you to identify rouge elements in memory which nolonger have a parent process running. It is those elemts which eat up the memory. I have SPB tools to actually close the application but even then the memory keeps on falling. I guess there is no tool as of today like Taskmanager or even RAM Optimizer for PPC. A Tool like RAM Optimizer would check for the elements which are residing in RAM and are no longer being used. XDA developers can surely write something using the .NE Framework.
J-Mac said:
Depends on which task mamger you are using; some use the WMClose command instead of the Kill command. Big difference!
Click to expand...
Click to collapse
Do you happen to know of a couple that use the WMClose command? I've used HandySwitcher most recently and MagicButton in the past, but have no idea which method(s) they use.
Thank you.
Geoffrey
There must 40 threads on this topics by now. I concur with J-Mac that today plugins are mostly to blame. I use Journal Bar and perform a soft reset roughly every other day. To help the situation I also use 2 programs which I find invaluable - The first is Smartskey which allows you close a program rather than minimise it (its a free download on this forum). The second is SK Tools Free up RAM application which works reasonably well but only delays the enevitable soft reset. It's effectiveness decreases the longer the device remains active.

how much free program memory should I have?

I'm running Black Dymond 3.5 on my TyTN and I'm not sure how much free program memory I'm supposed to have.
I rarely have over 9mb of Program memory free. Total of 48mb.
I'm getting tons of crashes (like many other people), have tried either running everything on the storage card, or everything on the device. Either way I'm restarting at least 10 times/day, even crashing during phone calls.
Many times programs won't even load either. (Opera especially)
Could this be due to the memory being short? If so, what tweaks should I be using to increase available RAM?
Thanks!
j0dan said:
I'm running Black Dymond 3.5 on my TyTN and I'm not sure how much free program memory I'm supposed to have.
I rarely have over 9mb of Program memory free. Total of 48mb.
I'm getting tons of crashes (like many other people), have tried either running everything on the storage card, or everything on the device. Either way I'm restarting at least 10 times/day, even crashing during phone calls.
Many times programs won't even load either. (Opera especially)
Could this be due to the memory being short? If so, what tweaks should I be using to increase available RAM?
Thanks!
Click to expand...
Click to collapse
You may be a little low on programme memory but I think the crashes are more likely due to a variety of other factors that may be shown here:
http://forum.xda-developers.com/showpost.php?p=1078848&postcount=2
Mike
so how much ram *should* I ideally have?
I'd say a bit more than the program that you are about to start needs. You might have tested (installed and uninstalled) many programs and that lets windows run unstable in many cases. And have you tried to give it to the service point and say that it crashes all day long? I think it could even be a hardware problem.
Anticro said:
I'd say a bit more than the program that you are about to start needs. You might have tested (installed and uninstalled) many programs and that lets windows run unstable in many cases. And have you tried to give it to the service point and say that it crashes all day long? I think it could even be a hardware problem.
Click to expand...
Click to collapse
Thanks for the reply.
I seem to have fixed at least half of my crashing issues by removing Spb Phone.
I've started using phonealarm and that's been working great.
My biggest problem now is the phone slowing down (crashing maybe?) when receiving a call, to the point where I can't answer it.
Is there a specific # of free program memory I should be aiming for? I'm thinking of giving LVSW a try. just need to decide on which flavour.

HTC Mogul memory decrease over the course of a day

What is up with the memory drain on this device. I'll start the day with 24mb of memory (soft reset) and only have 10mb or less at the end of the day with no apps but activesync running. Has anyone less notice this?
hansolos said:
What is up with the memory drain on this device. I'll start the day with 24mb of memory (soft reset) and only have 10mb or less at the end of the day with no apps but activesync running. Has anyone less notice this?
Click to expand...
Click to collapse
Yea I get the same problem. Except I start off with about 20 and end up with as low as 9 before i'm forced to soft reset.
Its the magic of the Mogul's memory leak. The old rom and new rom feature it so untill a new update comes out, were stuck with it.
Does the Hermes and Kaiser have the same issue? They seem to be similar. They other thing is that the WM6 is suppose to have made those apps that leak in previous versions run at the kernel level.
my titan doesnt have the issue. its an app you've got installed. hard reset and dont install anything, you wont have the problem. troubleshooting 101. dont blame the titan.
I posted this on another forum discussing this problem, so I'll just quote myself here:
The memory "leak" thing is nothing more than a cache "optimization" in place to make the device respond snappier.
Whether it succeeds or not is another story altogether...
Basically, like any cache, it stores recent calculations for faster response later. For example, if you open and close IE alot, you might notice that the first time you open it on a fresh restart takes a little bit longer than the next times- that's because the second time you start it up, parts of it are still in memory from the first time!
You might be wondering why this happens even after forcing it closed with Xbutton or the memory settings. That's because the info stored in the performance cache aren't directly related to any one program! Many apps can use the same routines and calculations, and therefore this process exists on a processor/file system layer as opposed to a software layer, and therefore also exists even when all programs are closed!
Meaning, if I have mapopolis that uses a certain routine to access my BT GPS receiver, even after I close it, some of that routine stays in memory because perhaps Google Maps will use the same routine, and therefore respond faster!
Now, ideally, this should speed up performance, and it SHOULD disappear on its own if the memory is needed and the information goes "stale" (hasn't been processed in a while = not really needed for optimized perfomance). However, one look at the way Microsoft handles "automatically closing apps" (native X button, anyone?) is enough to know that WM can't manage its own memory very well.
I can, however, vouch for the fact that the longer you leave all programs closed, the more of your memory starts to creep back into available. I've sat and watched this happen. So, it sort of works, but perhaps not well enough if people are having low memory system crash problems.
Now, before you all start blaming MS for this... Its not Microsoft's problem. They developed CE-5 (which WM6 is based on) on machines limited to 32MB to make sure the programmers didn't get lazy with OS bloat.
Its the manufacturers who add all this file system optimization and stuff to their final device. In this case, its the way HTC thinks the system should run, which is why this anomaly is NOT as apparent on, say, a WM Treo device.
The good news is that if we complain enough, HTC might realize this optimization does more bad than good, and leave it out on the next ROM update for us.
However, truth be told, I think it works. The Mogul is one of the snappiest PPC's I've used of late, although I can't say for sure if its because of the cache or not.
This is just my personal opinion, so don't flog me! I just don't look at the memory useage anymore unless I'm having a problem, which mind you, I hardly do.
My most recent observations were this:
Soft reset gives me ~21MB (got some htc plugins), and after a day of use, making sure to close everything after I'm done, I get 18-19MB. At lowest, I hit 10MB after closing alot of apps. This memory usually comes back to 18-19mb in a matter of time for me. If for some strange reason it doesn't (can't say how often this happens), I soft reset.
All in all, I'm happy with the Mogul.
Click to expand...
Click to collapse
I wasn't blaming the Titan directly, although I wish they would allow you to adjust the memory like they have in the past. But as I've read that may having something to do with chipset of battery consumption.
I was just wondering if others had the same issue and might know of the reason.
Is there a list of known apps that cause memory 'drain' or don't clear their cache. I can understand apps caching data into memory to run faster, but they are not cleaning themselves out upon exit. The strange thing is how they continue to grow over the course of the day with no interaction.
I'm doing a hard reset to see if it get better. Add apps one at a time until I find an issue.
Ok did a hard reset. Setup Outlook to get my mail from Exchange and Gmail. Let it get synced and then did a soft reset. Started with 24mb after reset, down to 21mb without doing anything after an hour and it's still falling. The only thing running is ActiveSync. I've also removed htc_cm_guardain and ssdaemon from the startup. The only thing in startup is poutlook.
The thing I noticed when I had handyswitcher installed (before hard reset) was that filesys, device, gwes, services, shell and cprog all continously increased there memory consumption over the course of a few hours and never stopped or released it.
hansolos said:
I wasn't blaming the Titan directly, although I wish they would allow you to adjust the memory like they have in the past. But as I've read that may having something to do with chipset of battery consumption.
Click to expand...
Click to collapse
No no no... the reason you used to be able to select storage vs RAM was because it was SHARED memory! It was actually all RAM. If you had a 64MB device, that 64mb was split between ram and storage, and just like the rest of your RAM, it would wipe out when the battery died!
Ever since WM5 came along, they stopped sharing the memory, and now have dedicated RAM and Storage (using the leftover space on the EPROM chips used for the ROM image), much like a computer. This is a much better solution since you don't sacrifice your RAM for storing some large files, and you don't have to worry about battery failure cleaning you out!
Also, its not the apps that have cache, its the file system. The file system WILL actually free up some of that memory as the device is left with all apps closed for a while (maybe not all of it, but I've watched my device go from 11mb free after closing stuff to 18-19mb).
You guys need to hit the easy button on this one! It may not be a permanent fix, but there's a small freeware called Oxios Hibernate that releases RAM. I just put it on my start menu and 2 clicks....I have free RAM. Try it out, you won't be disappointed.
bam, thanks for the info... that little app rocks.
use a file explorer and go to \Windows\Startup. There is a shortcut there for a program along the lines of HTC_Guardian_cmsomething. This app is a htc app used to enforce sprint settings and runs in the background. So long as you don't destroy your phone internet settings you can just remove the shortcut. I found all my memory leak issues have gone away. I don't have any leaks when using the kaiser tab plugin.
Yes I've removed the links for HTC_Guardian and SSDaemon from startup and added them to my settings folder (if I ever need them). I soft reset to around 25mb and the Oxios Hibernate app keeps me around 24.5mb.
what does SDdaemon do?
sddaemon is suppose to be the speed dial or voice command app you get when you hit the button on the left side with the talk bubble. It loads the app if you hit the button, so I'm not sure why they have it in startup.
On my old Treo 700W, which REALLY had a memory problem, I used Oxios hibernate all the time. It works quite well.
yes, it works.
bam099 said:
You guys need to hit the easy button on this one! It may not be a permanent fix, but there's a small freeware called Oxios Hibernate that releases RAM. I just put it on my start menu and 2 clicks....I have free RAM. Try it out, you won't be disappointed.
Click to expand...
Click to collapse
you know what might help...if windows mobile had some sorta sorta disk caching feature...
that's what is causing the memory leak.
great tips. thanks.
hansolos said:
Yes I've removed the links for HTC_Guardian and SSDaemon from startup and added them to my settings folder (if I ever need them). I soft reset to around 25mb and the Oxios Hibernate app keeps me around 24.5mb.
Click to expand...
Click to collapse

RAM/Memory Low Problems

For some reason, I don't see too many complaints about low memory issues - yet I have always had problems with my RAM.
I have almost all of my programs installed on my SD card to try reduce any of my memory usage - but if I run PIE, MSN Messenger, or try to play music, I almost always have low memory messages come up.
I usually have one program running in the background - Slide to Unlock - but as far as I know its not that memory intensive?
Any insight on how I can fix this?
Thanks!
Are you running an elf or an elfin? If your not sure.....go to start-->settings-->system-->device information-->hardware. What does your RAM size read? If its 64MB its an elf.....if it says 128MB its an elfin. Your saying you've installed all your applications on the storage card. How much free space do you have for program memory on your phone? Your phones needs free memory in order to run applications too. Perhaps its running low on that end? Two things you should do:
1. Move any extra files, photos, videos or anything else that you might have saved on the phone memory to the storage card. Use activesync. Its faster that way.
2. Clear out your browser history and temp files. This could most probably be your culprit as they take up space too...and you don't necessarily see this upfront. Goto Start-->Internet Explorer-->Menu-->Tools-->Options-->Memory Tab.
[email protected] said:
...
2. Clear out your browser history and temp files. This could most probably be your culprit as they take up space too...and you don't necessarily see this upfront. Goto Start-->Internet Explorer-->Menu-->Tools-->Options-->Memory Tab.
Click to expand...
Click to collapse
I've been having "Insufficient memory" errors while trying to run SpB Backup, and have deleted all sorts of applications, but nothing seemed to free up enough memory. Then I tried your advice, and everything is working as it should!
Thanks!!
I have an elf - usually when I close all of my processes, except my stumble to unlock, I'll have approx. 15mb/47 free in my program memory. 10/28 of my storage space is free.
I've tried to clear all of my temp files... even made it so that all my temp files/PIE files are put on my storage card through SK tools, but still have the same issues.
As soon as I run my HTC music player with the one or two background apps, it almost always pops up with memory issues. Browsing with PIE is almost impossible for any period longer than 5 minutes.
I've tried it with several configurations and I always have the same results, even if I have no background processes - I still have the same issues.
Are you using a cooked ROM? Come to think of it, I never had many problems with the original shipped ROM. I was normally running S2U2, PocketMusic, Opera Mini and SpbMobileShell back then.
You mean to say you can't even run one application at a time without running out of RAM? Soft reset. And if you use SKTools like you say you do, try running Free Up RAM, select all options.
In your shoes I'd probably move everything I want to storage card, (you should want more than 10mb storage) try a hard reset and install my most used apps again. Oh, and what is your PagePool size? Try here to find out about that. It should be 4mb.
Your primary problem is indeed the fact that you are running out of space on your phone. 15mb for program memory especially on heavy usage is quite insufficient. Especially if your going to be multi tasking and running several applications at once. I would move ALL my installed programs and anything else I may be able to get my hands on, to the storage card. Try to squeeze out atleast 25-30mb out of your program memory. This should give your phone some more breathing space.
This might be to use of you to try it out.
http://www.oxios.com/memory/
hi
I had the same problem before but now my touch runs fine now & haven't got any issues till now. Use advanced task manager and pocket mechanic. These application will keep ur pocketpc in good shape.
Very good, Thanks.

Phone Storage Memory

Hi,
I currently only have 4.98mb left of the 180.85mb total storage available on my device and am now getting 'critically low memory' warnings. I have not installed many apps or anything else to the phone and can't really understand why this is so high.
I had a look at the folders which are: -
Application Data 39.8mb
Documents and Settings 1.07mb
My Documents 2.77mb
Program Files 10.4mb
Windows - doesn't say but must be approx 115mb for the total to be correct? Is this normal?
Also, I have 115.06mb free of the 336.93mb total program memory available.
Is anyone else having similar issues? If the windows section is suppossed to use this high amount why has the phone not been allocated enough memory to deal with it?
Thanks
James
You should search a bit, but, empty the cache folder of HTCAlbum, Opera, etc.. in Application Data.
Thanks for the help. I have deleted the contects of the HTCalbum cache and Google maps and this has increased the available memory to 39.57mb.
Why should we have to delete cache data to be able to use our device? This seems a bit crap to me
Your memory usage is not normal- the HD2 has about 135MB free Storage Memory after a hard reset, so something has grabbed your memory somewhere.
I'd suggest downloading a small program called SpaceFinder which can give you a tree view of where the memory has gone sorted by folder size. It was designed for much older versions of WinMo but still works well. Some of the fiels it sees are in the ROM, but at least it will give you some clues.
Culprits for memory usage apart from the caches are music and video files- look in those folders to see if there's anything obvious.
Hello JJJJacksonjjjjj
Your problem is not new and has been reported many times on here.
If you look in the hints and tips thread in this forum there are a number of suggestions for clawing back memory space, which I suggest you implement.
Other thing is I bet you have been installing all of your apps onto the phome memory when you could have done so onto the storage card. If I am right then I would suggest you backup all your data using, say Sprite Backup or my preferred app which is SPB Backup, hard reset your phone and rebuild it from scratch, installing your apps carefully and onto the memory card instead.
Might sound a bit heavy handed but you will reap the benefits in the long run (If too drastic for you then deinstall and reinstall apps onto external memory instead without hard resetting).
I built my phone exactly this way from day one. Every app that gets installed gets assessed by me as to whether it needs to be in phone memory or not. If not then its straight onto the memory card (running an 8GB at the moment, waiting for the 32GB to come onstream and at at a reasonable price).
This, plus all the tips in the thread I mentioned earlier, have left me a happy bunny memory wise.
Good luck with it.
WB
Thanks guys, I am sorted now.
I downloaded spacefinder (really good program) and found out straight away that I had 30mb+ in Windows>Opera9>Profile>Download. I didn't know it kept all the downloaded cabs and pdfs etc you download (without saving), I thought these would be cleared when you exit Opera.
Also there were loads of facebook pictures in the temporary internet files of Internet Explorer! Why does it save all these?!
Anyway, I am now at 93.5mb free out of 180.85mb so all is good
Don't get me wrong I love my HD2 (and TP before) but HTC will never win over the mass market unless they sort out these kind of issues. Most people I know wouldn't have the first idea about all the messing about we have to do with these devices, and as a result they would have a sluggish, buggy device within weeks of normal use.
Without the help form you guys on XDA I would have probobly ditched the TP after a month or so, and I think I knew deep down I was being too hopeful, but I thought the HD2 would be free from the minor niggles I had with my TP.
That turned into a bit of a rant lol.
Thanks again guys.
...many problems are for cache of programs like htc album, opera, google maps...
...in this post there are many advice, and explain how to move the htc album cache to storage card
http://forum.xda-developers.com/showthread.php?t=600578
...i have a good result with SKTOOLS program, because i had the same problem with the internal memory
good luck!
jjjacksonjjj said:
Don't get me wrong I love my HD2 (and TP before) but HTC will never win over the mass market unless they sort out these kind of issues.
Click to expand...
Click to collapse
Glad you're sorted- despite its age, I still always load Spacefinder as one of my 1st apps. Only 72KB and does exactly what it says!
Don't blame HTC for these issues- it is down to both MS and the application developers like Opera to define whether & where they store stuff.
At least the HD2 has a fair amount of free space- unlike earlier devices which ground to a halt because of these stupid problems.
Spacefinder download link please gents (google is not turning up what I am looking for)?
Cheers
WB
NeilM said:
Don't blame HTC for these issues- it is down to both MS and the application developers like Opera to define whether & where they store stuff.
Click to expand...
Click to collapse
I am probably being a bit unfair to HTC, but a lot of the common issues most people seem to have are (as far as I can see) ones that HTC should sort - sms, pink camera etc (I didn't just mean the memory). How can they release a top line device with these issues and expect that users will check for and install fixes?
My point is that they are selling us a product; which they know things like Opera, the facebook app, HTC photo etc are integral to how it will be used by the consumer, so they should ensure these functions work reliably out of the box without user research and fixing.
I don't want to knock HTC (I wouldn't have any other device now), but there are always niggles that they should sort out before release

Categories

Resources