WM6 doesn't release program memory after program close - 8525, TyTN, MDA Vario II, JasJam ROM Development

Hi all,
I have been suffering by this issue.
I do not have many program in my x01ht, only isilo, mbook, rescoviewer, rescoexplorer, PMcontact, pocket imformant HTC Home, Slide to unlock 0.72, CE-Star, CORG (some of them are installed in card memory)
Everytime after I soft reset my x01ht (offical WWE ROM), I have 26-27M program free
However, after running couple of apps., the program memory drops (of course), the problem is if the app. takes 5M of program, WM6 only release 2-3M memory after I close this app.
So, after half day using my x01ht , I must reset it once , otherwise there is less than 10 M program memory free inside, and I could not run more than 1 program or use PIE to surf internet
Does anyone know anything I could do to fix it ?
Or it just normal because it's based on "window" ?
Appreciated!

I use a small app called "Hibernate" to release closed program memory daily. It was installed already on my TNT rom, so do a search should to find it's cab.

Freeware Oxios Memory (containing Hibernate and Close Apps mentioned in above post) can be downloaded here.

Thanks so much Guys, but I also read from this forum, somebody said this program makes hermes device no more multi-task functions
Everytime users only can run one program...very weird.
Any other users tried this program on Hermes? (Offical WM6 ROM or Cooked ROM?)
Actually I am trying it now, but I have a question, what's the difference in function between Osios Hibernate and Oxios CloseApps ?
Thanks

Not even Oxios Hibernate can free all used RAM. It's an OS issue, called memory leak.
Hibernate - free RAM without closing apps.
CloseApps - Hibernate + Close all apps

DaVince said:
Not even Oxios Hibernate can free all used RAM. It's an OS issue, called memory leak.
Hibernate - free RAM without closing apps.
CloseApps - Hibernate + Close all apps
Click to expand...
Click to collapse
Thanks so much,
I have found out something weird after I install this app.
It automatically closes my app. after couple of mins (after use) , even I only run ONE app.
And it closes app. when I run more than 3-4 apps at the same times immediately (after I run the 5th or 6th app. )
I thought Hibernate and closeapps functions when I click it , but not automatically close my apps., isn't it?

kinghung said:
Thanks so much,
I have found out something weird after I install this app.
It automatically closes my app. after couple of mins (after use) , even I only run ONE app.
And it closes app. when I run more than 3-4 apps at the same times immediately (after I run the 5th or 6th app. )
I thought Hibernate and closeapps functions when I click it , but not automatically close my apps., isn't it?
Click to expand...
Click to collapse
They should work on demand - i.e. only when you run them by clicking the icon/exe. I am using these two apps for quite some time and never had such an experience you describe. Seems the culprit is something else in your case...

It's a natural WM behavior to close other apps when the system requires more memory. For example, you open up calendar, then you open up a game that requires a lot of memory, WM will close calendar automatically.
It's not the Hibernate/CloseApp app that's doing it.

DaVince said:
It's a natural WM behavior to close other apps when the system requires more memory. For example, you open up calendar, then you open up a game that requires a lot of memory, WM will close calendar automatically.
It's not the Hibernate/CloseApp app that's doing it.
Click to expand...
Click to collapse
But before I installed this oxios memory, It didn't happen to me.
And after I uninstalled it, It doesn't happan again (I uninstalled it over 1 day)
So , it sounds a bit weird for me......I really have no idea.
But anyway, thanks so much guys!

KarhU said:
They should work on demand - i.e. only when you run them by clicking the icon/exe. I am using these two apps for quite some time and never had such an experience you describe. Seems the culprit is something else in your case...
Click to expand...
Click to collapse
Thanks, so which one should I run when I see the memory is dropping to a very low level?
Hibernate or closeapps?
It sounds closeapps has both hibernate and closeapps functions , hasn't it?

kinghung said:
Thanks, so which one should I run when I see the memory is dropping to a very low level?
Hibernate or closeapps?
It sounds closeapps has both hibernate and closeapps functions , hasn't it?
Click to expand...
Click to collapse
Answer to your first question: I do it even more often...
I prefer Hibernate.
You are right Closeapps closes the running programs and has hibernate function included. If these apps do not work correctly for you you can use commercial or freeware version of SkTools (it also cleans RAM apart from tons of other functions or also commercial MemMaid - that will let you clean tweak everything connected with memory in your PDA.

Oxios CloseApps doesn't close apps. I don't know if it's because it doesn't work with WM6.1 but when I use it all my apps are still running. Have to use QuickMenu's "close all apps" mode.

Related

Some Information about free ram needed

Hi folks and greetings from Bulgaria.
I wondering are is possible some one to tell me how to increase avaliable RAM in my HTC Universal, because I used a new Garmin Mobile XT beta navigation software and he's like RAM eating machine.
Right now I'm with Helmi AKU3.3/ver 1.1 ROM - and I'm realy impressed from that ROM, but unfortunately after clean install my free RAM goes to 23.7 MB and this is not enough for Garmin XT - every time when a need to start application I must Restart.
Is it possible to edit Helmi's ROM and remove Page pool size in order to release more RAM ?
Thanks in advanced
agisofttm said:
Is it possible to edit Helmi's ROM and remove Page pool size in order to release more RAM ?
Click to expand...
Click to collapse
You can definitely edit Helmi's ROM to increase or decrease the pagepool size. But based on my experiments, decreasing the pagepool size also decreases the speed, and yes you are right, it will increase the available memory for the apps to use, but you are scrificing the speed applications run. You can definitely decrease it to as slow as a turtle's running speed, if you know what I mean.
You can definitely edit Helmi's ROM to increase or decrease the pagepool size. But based on my experiments, decreasing the pagepool size also decreases the speed, and yes you are right, it will increase the available memory for the apps to use, but you are scrificing the speed applications run. You can definitely decrease it to as slow as a turtle's running speed, if you know what I mean.
Today 11:26 AM
Click to expand...
Click to collapse
Yeap I know exactly what this mean.
So is there some other trick to release a 2-3 MB ermanently?
I use SKtools to optimize my Universal, but I've managed to release no more than 500kb.
agisofttm said:
Yeap I know exactly what this mean.
So is there some other trick to release a 2-3 MB ermanently?
I use SKtools to optimize my Universal, but I've managed to release no more than 500kb.
Click to expand...
Click to collapse
I too have problems with memory, which led me to experiment more on some free apps out there. This is a personal trick I just recently learned from all the AKU 3 versions that are coming out that I have been trying out that I would like to share with you and everyone.
I will attach OXIOS Memory CAB file below my post, you need both Oxios Hibernate and Oxios Close Apps for this trick to work.
This is the theory for the increase of memory: basically what I wanted to happen is to only have 1 application running in the background no matter what. Thus, opening another app automatically closes the other app, even just pressing the OK button. Just like what a Palm device does with regards to application handling.
One draw back though, you are eliminating the ability of the WM5 device to run multiple applications at the same time.
OK enough of the explanations, here is what you have to do:
1st: Download the copy of OXIOS apps I provided.
2nd: Run the CAB file to install.
3rd: Go to Windows>Start Menu>Programs>Accessories.
4th: Copy the shortcuts for both Oxios Close Apps and Oxios Hibernate.
5th: Go to Windows>Start Up.
6th: Paste both Oxios Close Apps and Oxios Hibernate.
7th: Perform a soft reset.
Basically this would make WM5 behave like a palm device. You can now only open one application at one time, thus ensuring you have enough memory for your current application to run.
You don't even need to close any app anymore manually, since it is done automatically for you now.
There are some exceptions to this however and they are:
1: Contacts Application
2: MMS Application
3: Calendar Application
4: Phone Application
These 4 apps can be opened all at the same time without closing automatically, a good thing because you want them to work together when sending messages or files. Plus, you also want the phone on at all times.
Good luck and let me know if you prefer this solution or suggestion.
Thread: http://forum.xda-developers.com/showthread.php?t=285091
cktlcmd:
10x Man - I'll inform you about the results
I've another thing in my head:
Actualy I was with Radio ROM 1.09 and there I was have only 21MB free after fresh install - after upgrading to Radio 1.13 free memory was 23-24 MB - now I see that is new radio ROM 1.14.10 on FTP - when I tryed I'll inform you about results

(Prevention?) ROM newer than AKU3.5 WMP play 3 to 4 seconds problem

Hope my little input could help to prevent it from playing just only 3 to 4 seconds.
I am using Helmi AKU3.5 v1.3 now, but from all the threads, it seems to be a common problem in many versions of the ROM.
For my situation, normally immediately after soft reset, WMP plays with no problem.
There is a little Apps inside Helmi AKU3.5 v1.3 called "Close Apps". This problem will come 100% after I run "Close Apps" to regain memory.
To prevent it and to avoid recovery reset, I will only run 'Close Apps" with WMP still runnning.
My guess is "Close Apps" clear something important for WMP.
Let us know if there is another way to reproduce the problem.
Re
hey!!
i don't know bout this problem but i had a similar problem with the " close app" application in the 3.3 rom
when i tried to run ie after running this app it would automatically close after loading the page (not the homepage).
P.S Since you have crossbow installed could u do me a favour??? i wanted to see how a couple of themes i have made look in crossbow...if i send you one of them could you send me the screenshot???
Hi guys.
Actually I do not use WMP almost at all because I prefer other players, so I never experienced this problem but....
I suggest you to use oxios hibernate instead of closeapps. Hibernate does not close any running apps but releases ram which can be still occupied after a closed app. Besides hibernate I often check the hidden processes with iTaskmanager (part of Helmi's ROMs but you can get it separately) and often found that there are some processes useless at the moment e.g. voicecmd.exe (can eat 2 megs) poutlook, tmail, etc.
I guess if you use hibernate you will avoid 3 sec problem of WMP... not 100% sure...
Brgds
fallenczar said:
hey!!
i don't know bout this problem but i had a similar problem with the " close app" application in the 3.3 rom
when i tried to run ie after running this app it would automatically close after loading the page (not the homepage).
P.S Since you have crossbow installed could u do me a favour??? i wanted to see how a couple of themes i have made look in crossbow...if i send you one of them could you send me the screenshot???
Click to expand...
Click to collapse
My is AKU3.5, not crossbow.
The crossbow theme does not look too good, as I do not like dirty green colour, reminds me of the army uniform.
There is quite a couple of screen shots already in this forum, just search and you see plenty.
To have crossbow look, you do not need to install crossbow, search again it this forum, you will find some crossbow *.tsk files. copy it into the \windows directory and you can select it in the Today.
.dredd. said:
Hi guys.
Actually I do not use WMP almost at all because I prefer other players, so I never experienced this problem but....
I suggest you to use oxios hibernate instead of closeapps. Hibernate does not close any running apps but releases ram which can be still occupied after a closed app. Besides hibernate I often check the hidden processes with iTaskmanager (part of Helmi's ROMs but you can get it separately) and often found that there are some processes useless at the moment e.g. voicecmd.exe (can eat 2 megs) poutlook, tmail, etc.
I guess if you use hibernate you will avoid 3 sec problem of WMP... not 100% sure...
Brgds
Click to expand...
Click to collapse
Thanks, I will try.
But 'close app' way to produce this problem may not be the only way.
Looks like I do not see this problem after using Hibernate.
I use the HTC Task Manager provided in Jwrights 2.06/08 Crossbow ROM and it works really well... I have seen posts about this problem and it does seem to be the ''close app" that causes the issue.

Mutiple programs won't stay open on my Tilt 2

I've had my Tilt 2 for several weeks now and for some reason, I cannot seem to have more than one app open at the same time. As soon as I open a second program, it kills whatever else was running.
Does anyone else have this problem or know how to fix it? I have Auto Kill disabled...
Help!?
It also happens with my Hermes and Raphael..
My Hermes (Dopod 838 pro) running official WM6 ROM
My Raphael (HTC Touch Pro) running stock WM6.1 ROM (Version 1.9)
It's a big problem, I can't keep my Twitter,downloader, and Messenger app to run at the background..
silverfoxx said:
I've had my Tilt 2 for several weeks now and for some reason, I cannot seem to have more than one app open at the same time. As soon as I open a second program, it kills whatever else was running.
Does anyone else have this problem or know how to fix it? I have Auto Kill disabled...
Help!?
Click to expand...
Click to collapse
So let's say you open File Explorer. You press the Windows button. Now you open Word Mobile and make a new document. Now press the Windows button and go to Home. It still says you closed everything in the HTC Task Manager?
If so, that's weird... looks like you bought yourself an iPhone with a keyboard!
For some unknown reason Windows Mobile 6.x will only run a maximum of 32 processes at one time no matter how much RAM is free. This includes all the basic phone etc that's running.
Clever eh ?
That's some amazing forward thinking Microsoft did. It obviously didn't occur to them that someone might come along and release a device with a faster processor and a load of RAM.
Find yourself a process manager program, not the HTC taskmanager. While typing this I had a quick look and I am running 28.
As I recall, WinMo will close apps if it runs low on memory so the first thing I would do is reboot the phone and bring up task manager and see how much free memory you have left. Then keep watching memory as you do what you normally do with the phone. It's not how WinMo is supposed to act by default and my phone doesn't act that way so it's either an app, how you use it or a hardware fault.
markgamber said:
As I recall, WinMo will close apps if it runs low on memory so the first thing I would do is reboot the phone and bring up task manager and see how much free memory you have left. Then keep watching memory as you do what you normally do with the phone. It's not how WinMo is supposed to act by default and my phone doesn't act that way so it's either an app, how you use it or a hardware fault.
Click to expand...
Click to collapse
Lots of threads on this, and no, it's NOT memory. It's processes.
http://forum.xda-developers.com/showthread.php?t=575663
http://forum.xda-developers.com/showthread.php?t=600210
http://forum.xda-developers.com/showthread.php?t=600356
Is there any solution to break this limit?
dik23 said:
For some unknown reason Windows Mobile 6.x will only run a maximum of 32 processes at one time no matter how much RAM is free. This includes all the basic phone etc that's running.
Clever eh ?
That's some amazing forward thinking Microsoft did. It obviously didn't occur to them that someone might come along and release a device with a faster processor and a load of RAM.
Find yourself a process manager program, not the HTC taskmanager. While typing this I had a quick look and I am running 28.
Click to expand...
Click to collapse
Is there any solution to break this limit (32 processes)..
Not seen one. If you do plz give me a shout ! Don't even know if it'd be possible. To me it seems like it could be a Kernel level issue.
How can I see all running processes?
blowy666 said:
How can I see all running processes?
Click to expand...
Click to collapse
install dotfred's taskmanager.
I use everapp.. http://www.modaco.com/content/pocke...app-v0-2-application-persistence-under-wm6-x/
it installs a service which runs when u boot up ur phone and u just add w/e programs u want to everapp and it'll keep them running in the bg..great for opera 10 which never stays open for me
try everapp, http://www.modaco.com/content/pocke...app-v0-2-application-persistence-under-wm6-x/
Hi i have tried on Omnia Pro B7610 to avoid auto-closing of apps but the result is not satisfactorie, as everapp is also stopped and besides i cant launch the app (excel or word) from the shorcut after the taskmanager autoclose these. If you have some usefull information regarding this issue i will appreciate it.

optimizing multitasking

hi guys!
is it possible to improve the multitasking performance? I often use twitter (moTweets) and Opera and Palringo simultainously, which unfortunatly always causes an automatic shutdown of all the applications. Running just one app at the same time is quite annoying. Is it possible to optimize this? (ROM: DeepShining, Manila 2.5)
thanks for your thoughts!
Opera 10 is a RAM killer.
Try Advanced Config 3.3 (you should be able to find it here or if you google it), go to HTC Task Manager - AutoKill - Disabled. HTC Task Manager will stop automatically close tasks to free up memory. Or decrease the default threshold. This may cause your device to get laggy or even freeze, but it worth a try.
slimslim said:
Try Advanced Config 3.3 (you should be able to find it here or if you google it), go to HTC Task Manager - AutoKill - Disabled. HTC Task Manager will stop automatically close tasks to free up memory. Or decrease the default threshold. This may cause your device to get laggy or even freeze, but it worth a try.
Click to expand...
Click to collapse
Hi, I tried all kind of tweaks, but nothing really works. As soon as I open mail or a twitter client, the browser shuts down itself quickly. Maybe there is a specific rom, that is very handy for multitasking?
Uninstall opera 10
I don't know why people insist on using that version but it effectively renders your tp2 a non multitasking device with all the resources it eats up. 9.7 or even 9.5 is way better for the tp2 (and faster imo). version 10 seems to have been written for a desktop type of device for the amount of ram it consumes.
People are delusional and want to use it thinking its good. but its really not.
I´m using Opera Mobile 10 beta2 without any issues, yes it eats RAM, but I have plenty so no lags here.
I have tested several browsers and Opera is the best so far, so it´s ok if needs more RAM to run
orb3000 said:
I´m using Opera Mobile 10 beta2 without any issues, yes it eats RAM, but I have plenty so no lags here.
I have tested several browsers and Opera is the best so far, so it´s ok if needs more RAM to run
Click to expand...
Click to collapse
I dont have a problem running opera 10 either. Its when I try to run Opera 10 and something else that I run into issues. Apperently you and I are using the same device with the same specs. I did everything suggested in your opera thread and still it eats up around 90% of the resources. If I try to open say two tabs and another program, thats when the memory issues begin. Also, it seems enourmously slower than the previsous version even on wifi. The load bar seems to sit at 50% for ever and a day while the same site on 9.7 is loaded fully in a few seconds. I firmly beliive 10 comes with a placebo effect built in.
The UI is nice, but the browser is not for a rhodium by any means. Not unless you want to turn off tf3d or run JUST the browser.
Same here, using 10 b2, no problems at all, is my main browser. Also using SPB MobileShell or Titanium helps freeing memory.
I'm using Opera 10 beta 2 and palringo both at the same time no issues, also pocketwiter with no issues so possibly is it the twitter app that is causing the problems?
I m having the same issue with both 9.7 and 10 beta 2. I cannot let Opera and IE both running even when the autokill is set to off.
I think it's not the opera's problem cause I cannot let TVUplayer and core player running together either.
TVUPlayer should be running in the background dealing with the stream data while the core player is playing in the foreground but TVU always got killed in the background.
I think TP2 doesn't have enough ram for multitasking when manila is running.
I'm fairly certain this is a ROM problem. I've experienced the same thing with all ROMs that have Sense 2.5. My applications kept getting autokilled.
This happens rarely with WinMo 6.5+Sense 2.1 ROMs. But sometimes, it does and it's very irritating.
This is one of the main reasons why I've "downgraded" back to stock WinMo 6.1 ROM. My applications never gets autokilled now. I've consistently done the following things simultaneously with no problems:
-Listen to music using the Music tab in TF3D
-Browse web using Opera 9.5
-Chat using MSN Messenger
-All while having the following applications opened: Messaging, Notes, Resco File Explorer, Calculator, Excel Mobile
ohyeahar said:
I'm fairly certain this is a ROM problem. I've experienced the same thing with all ROMs that have Sense 2.5. My applications kept getting autokilled.
This happens rarely with WinMo 6.5+Sense 2.1 ROMs. But sometimes, it does and it's very irritating.
This is one of the main reasons why I've "downgraded" back to stock WinMo 6.1 ROM. My applications never gets autokilled now. I've consistently done the following things simultaneously with no problems:
-Listen to music using the Music tab in TF3D
-Browse web using Opera 9.5
-Chat using MSN Messenger
-All while having the following applications opened: Messaging, Notes, Resco File Explorer, Calculator, Excel Mobile
Click to expand...
Click to collapse
+1 on the stability and smoothness of 6.1! I honestly can't remember the last time I ran into a memory shortage, at least not to the point where anything autokilled. I often leave opera (10b3) open just to save myself the initial load time whenever I want to look something up real quick (which is often), and it's never kept me from having all the other stuff running that I usually have open:
WMP
Total Commander
File Explorer
messaging (always with active use)
calculator
and often google maps as well
The point of all this is...the cause of the issue for the OP (and many others) is just the resource consumption of the later models of WM and TF3D~Sense
How many of these threads really must exist?
It's PROCESSES, not ram... Unless you guys are doing something asinine, my Tilt 2 right now has 88M ram free, I never see less than 40M free, and I run a LOT of stuff, PocketWeather, GPSToday, a cell location upload program, plus FlexMail, Palringo, S2U2, all the while doing stuff like Twitter, FIM, PIE, Opera, whatever.
What gets you is processes. Look at some tool which will show you how many current running processes there are, I'd think any task manager can, I use MemMaid. 31 is the maximum for Windows Mobile, and I have heard when it exceeds 28 it starts killing.
My Tilt 2 had something like 25 processes at boot at first, with a few programs installed.. I had to do a bit of tweaking, but now I have it down to 22 with all of the above normal stuff running, and now I rarely have a problem with programs exiting.
khaytsus said:
How many of these threads really must exist?
It's PROCESSES, not ram... Unless you guys are doing something asinine, my Tilt 2 right now has 88M ram free, I never see less than 40M free, and I run a LOT of stuff, PocketWeather, GPSToday, a cell location upload program, plus FlexMail, Palringo, S2U2, all the while doing stuff like Twitter, FIM, PIE, Opera, whatever.
What gets you is processes. Look at some tool which will show you how many current running processes there are, I'd think any task manager can, I use MemMaid. 31 is the maximum for Windows Mobile, and I have heard when it exceeds 28 it starts killing.
My Tilt 2 had something like 25 processes at boot at first, with a few programs installed.. I had to do a bit of tweaking, but now I have it down to 22 with all of the above normal stuff running, and now I rarely have a problem with programs exiting.
Click to expand...
Click to collapse
Are you sure about this.. i donth think it's the case.. it is because of the memory.. because i use fdcsoft task manager.. it shows that there are 15 processes running... but still if i open opera, palringo, gsplayer,sms and a new tab .. programs will start closing .. so if you calculate i only have 15 + 4 processes.. it's waaaay less than 31.. are there any hidden processes which i am not seeing??.. which task manger are you suing to get the no of processes??
I've also noticed that under 40 MB RAM, Opera Mobile won't even start... currently I have 17 processes runing in fdc (two of tem being Opera and fdc - just opened, so basically only 15)
depakjan said:
Are you sure about this.. i donth think it's the case.. it is because of the memory.. because i use fdcsoft task manager.. it shows that there are 15 processes running... but still if i open opera, palringo, gsplayer,sms and a new tab .. programs will start closing .. so if you calculate i only have 15 + 4 processes.. it's waaaay less than 31.. are there any hidden processes which i am not seeing??.. which task manger are you suing to get the no of processes??
Click to expand...
Click to collapse
15 seems very low with programs running, so I'm thinking you aren't seeing the total number of processes. As I said, I use MemMaid
I use DF Task Manager & Memmaid Both have different benefits.
I also have the same issues. If I load Opera it closes everything else.
With nothing running except Manilla I onlky have 60Mb left of the original RAM. I have experimented with SPB. I if use this I start with 90Mb free.
I have tried all sorts of Manila tweaks and memory hacks to free up memory from manilla.
Nothing works.
Looks like I might have to find a ROM with 6.1 instead of 6.5.5 .
Just did a test. nothing but WM6.5, Manilla & Opera 10 running. 18Mb left. something wrong with this picture!!!
Try changing the pagepool to like 12. But you're going to have to do this before a flash. Read up on it if your interested.

[REQUEST] Disable Windows Mobile Memory Management/Secure Apps from it

Dear experts,
Since I'm using custom Roms (with 6.5 or 6.5.x), I was asking myself why for god's sake my Browser was supposed to close in the background while I was downloading a big file or why my Windows Live Messenger is always being closed while I'm not having the focus on its window ...
Well I'm now at the point to know that Windows Mobile loves kicking Applications out of the RAM, especially when having a high memory consumption ... BUT why does it do this to apps that obviusly are supposed to be also running in the background (messenger) and also, why does it start closing applications even with more than 10% of my Ram left? I thought Ram was used to store programs in it, not to keep it empty and clean ...
So, is there ANY way to disable this "feature" that kills the possibility of multitasking? Or at least any chance to prevent Windows from always killing WLM and Opera? I already found "EverApp", but it doesn't work too nicely ... The added programs are still being closed and I cannot reopen then, as they are still present inside my memory ...
Thanks in advance!
Edit: And I totally wouldn't mind having the errors related to disabled memory management, as I have cleanram and a task manager to do that myself and would prefer it to have it that way
I am looking for a solution to this as well.
I am using an HD2 with 576MB enabled, and IMO it's unreasonable for WM (6.5.5) to close application ad libitum if I keep open:
1) tomtom
2) navicomputer
3) mortplayer
4) acr base (a background process that automatically record received and made calls)
With 576MB total ram, even with the memory taken by the OS, it's unlikely for the ram to be unsufficient to run these tasks at the same time... instead, it should be able to run at least other 2 application and have yet more to spare.
Asking the developer of the call recording software to make it into a service could be a way (and I already did), yet I cannot really have navicomputer made into a service, let alone mortplayer, and those got closed by WM as well while I was driving (imagine the trouble I had to go to start them again while holding the steering wheel, lucky me it was in a semi-traffic-jam).
Isn't there any setting to reduce the occurence of this behaviour? Has the page pool value have something to do with it in any way?
EDIT: just digged some more in the concept of pagepool. So I know what it is and how it works. Yet the mistery deepens, afailk the default pp on the leo is 15mb, some cooks set it to 22-24mb, yet very far from the ~270mb free program memory I get after boot... starting tomtom, navicomputer, mortplayer, and having acrbase in background amounts to less than 15MB of ram, go figure if it makes any sense that with 276mb starting free ram WM should close any of these apps... maybe it's all the other way, and I should have a bigger pagepool to accomodate all those applications at the same time?
pagepool is for system processes (i.e. inaccessible to you). increasing pagepool would only result in *less* memory available for your user processes, such as tomtom, navicomputer, etc.
unfortunately i have been looking for a solution to this problem for many months and it is, as far as I can tell, impossible to solve. this is, imho, the worst thing about windows mobile. they did not correctly design the core operating system and created this ugly, ugly hack to prevent the system from crashing when it runs out of memory, and as a side effect it closes your programs without saving any of their data.
an equally ugly workaround is to use XTask, and "hide" the processes that you do not want closed. you see, if they are not visible in task manager, then windows mobile does not auto-close them. they are still running and in the process list, just not the task manager list. in order to hide a process in xtask, you open up the task manager list, long-press on the task you wish to hide, and go to Other->Hide. In order to make a process visible again, you have to find it in the Process list, click on it to view its windows, and long-press on the main window of that process and choose Show. You have to do this very quickly because windows closes background tasks and not the active task, so when you open XTask, it becomes the active task and the one you are trying to hide becomes backgrounded. you have about 5 seconds to hide it before it closes. its a very convoluted process but it works. i can get my music started in kinoma, hide the task, and then open up Garmin. As long as garmin stays in the foreground everything can rock along indefinitely.
Yes, that's sounds literally obnoxious, a workaround which would be just right for a setup with an htc alpine running wm 6.5 maybe... absolutely not acceptable for devices such as rhodium or leo which have plent of resources.
I stillw onder though, I have no idea about total/free resources on tpro2, yet with ~280MB free ram, and only 15mb worth of applications in ram loaded subsequently, how can windows mobile "decide" it needs to close either one of them?
I'd like to think it was just something weird going on with that particular session, that maybe got solved after a reboot, yet I have mno way to confirm it, as I didn't need to load the same amount of applications since then
I actually have the opposite problem on my HD2 running Miri's roms -apps don't close themselves down at all most of the time, which means when I have about 5 "windows" worth of programs open (ignoring other stuff I have running as a processes), or 1 Opera Mobile 10 window my HD2 starts behaving weird and gives me errors everytime I try to start up another app unless I shutdown said memory intensive app.
Might be because I use Ameba to close down any apps I'm not using (always)... or maybe because I've set the glyph cache to 524kb like suggested in the HD2 tweak article on Pocketnow.
ephestione said:
Yes, that's sounds literally obnoxious, a workaround which would be just right for a setup with an htc alpine running wm 6.5 maybe... absolutely not acceptable for devices such as rhodium or leo which have plent of resources.
I stillw onder though, I have no idea about total/free resources on tpro2, yet with ~280MB free ram, and only 15mb worth of applications in ram loaded subsequently, how can windows mobile "decide" it needs to close either one of them?
I'd like to think it was just something weird going on with that particular session, that maybe got solved after a reboot, yet I have mno way to confirm it, as I didn't need to load the same amount of applications since then
Click to expand...
Click to collapse
The storage manager doesn't necessarily decide to close things based on free program memory (of which you clearly have a ton), but also based on free virtual memory. You only get 32 MB per process, and if you load a bunch of dll's for resource heavy applications, you can run low on virtual memory. This is a good read on the issue. You can run virtualmemory.exe with some of your apps running to see if this is the problem.
def bookmarking this thread! i had similar questions!
aussiebum said:
I actually have the opposite problem on my HD2 running Miri's roms -apps don't close themselves down at all most of the time, which means when I have about 5 "windows" worth of programs open (ignoring other stuff I have running as a processes), or 1 Opera Mobile 10 window my HD2 starts behaving weird and gives me errors everytime I try to start up another app unless I shutdown said memory intensive app.
Might be because I use Ameba to close down any apps I'm not using (always)... or maybe because I've set the glyph cache to 524kb like suggested in the HD2 tweak article on Pocketnow.
Click to expand...
Click to collapse
I'd actually LOVE to have your same "problem"
Since WM is all about "having control", at least more than what you get with other "commercial" phones, I would prefer very much to decide which apps to keep open, which ones to *manually* close to free resources.
Just like I do with my desktop pc (did, actually... since 4GB of ram are truly hard, for my use, to fill up to the critical point even starting a ton of programs at the same time)
Farmer Ted said:
The storage manager doesn't necessarily decide to close things based on free program memory (of which you clearly have a ton), but also based on free virtual memory. You only get 32 MB per process, and if you load a bunch of dll's for resource heavy applications, you can run low on virtual memory. This is a good read on the issue. You can run virtualmemory.exe with some of your apps running to see if this is the problem.
Click to expand...
Click to collapse
thank you for the enlightening reference, I was actually curious to know the real reason behind this!
EDIT: (some minutes later) really interesting read, even without the need to dive into the huge two-page article linked from that page. Now at least I *know* the cause of this, and regarding this Leo I feel like having bought a ferrari which can only be fueled with a second grade combustive which can only output 50HP when in reality the engine is capable of 200. Something which is the contrary of what I was expecting from a WM device when compared to its fashion and more commercial equivalent so dear to some.
Which leads me to be curious about aussiebum's situation, where instead he appears to be able to keep opening programs without any automatic-close behaviours. It may still very well be that in the occasion where I had autoclosing problems with only a handful of apps open and running, there was something gone wrong that was solved with a reboot, I have yet to find the time and willingness to recreate the setup
so there wont be any solution for this quite anoying bug/feature?
-.-
HD2
I have a stock TMOUS HD2 and it seems to have a max open programs set to 7 somewhere and it doesnt matter how memory intensive the program is. it does get mighty slow though!
Have any of you tried AutoClosePatch ? I made that for a similar problem on the Omnia II, I have heard of people using it on the HD2 with success (i.e., it being useful). I've never really run into this problem on the HD2 itself, though.
http://www.chainfire.eu/articles/68/AutoClosePatch_1_1_released/
Chainfire said:
Have any of you tried AutoClosePatch ? I made that for a similar problem on the Omnia II, I have heard of people using it on the HD2 with success (i.e., it being useful). I've never really run into this problem on the HD2 itself, though.
http://www.chainfire.eu/articles/68/AutoClosePatch_1_1_released/
Click to expand...
Click to collapse
Thank you for pointing us to yet another pearl of usefulness of your code
I will test it and I think I should be able to report the result in at least a week.
If the 15MB lower limit and 20MB upper limit do work on Leo as well, I think I will be able to start more applications together than I will ever need
EDIT: didn't make my leo explode, yet it didn't have the desired effect, alas. I could apparently keep starting apps one after another, then at a certain point I always got a system error notification about not being there enough free ram, and that for anything I tried starting no matter what it was, not even WM task manager. Even if I tried bringing back on top the already started apps by clicking on their icons gave the same error.
I uninstalled, restarted, and tried without it, and set battclock showing the free MBs of ram available. Well, after boot I have 270MB free, believe me or not I couldn't get lower than 214MB free, it kept closing down applications. That is just plain, utterly, abominously, scandalously STUPID.
Chainfire said:
Have any of you tried AutoClosePatch ? I made that for a similar problem on the Omnia II, I have heard of people using it on the HD2 with success (i.e., it being useful). I've never really run into this problem on the HD2 itself, though.
http://www.chainfire.eu/articles/68/AutoClosePatch_1_1_released/
Click to expand...
Click to collapse
Gonna try this to...hope with more sucess.
>edit< ....unbelievable. IT WORKS...was searching months for a working app/tweak. Thanks chainfire...Donation is coming (=
--> 6MC52681G3154311A
I might have managed to get my HTC HD2 from closing my application. I have downloaded Advanced Configuration Tool There is a section in this application called HTC Task Manager. In there I disabled Auto Kill. Only time will tell I guess.
Davearia said:
I might have managed to get my HTC HD2 from closing my application. I have downloaded Advanced Configuration Tool There is a section in this application called HTC Task Manager. In there I disabled Auto Kill. Only time will tell I guess.
Click to expand...
Click to collapse
Restored a backup, to ensure that chainfires tweaks arent present.
Ure way didn't work for me.
After the 6th and 7th opend app, taskfacade & than s2p closes.
Test that:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\LowMem]
"ProgramMem"=dword:0
j4n87 said:
Gonna try this to...hope with more sucess.
>edit< ....unbelievable. IT WORKS
Click to expand...
Click to collapse
dang, you were luckier than me.
How did you test it exactly? Up until what free ram amount could you go to?
As I said in my previous post, I can apparently open as many apps as I want until the point I get the system insufficient memory error, and once there I cannot start anything at all, not even a task manager
Ham3r said:
Test that:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\LowMem]
"ProgramMem"=dword:0
Click to expand...
Click to collapse
I don't even have that key... so I suppose it's not for leo's purpose
Well, you have to keep in mind, AutoClosePatch only helps when the problem is actually the free memory.
An explanation what may also be going on is here: http://www.modaco.com/content/i8000...ying-the-virtual-memory-monster/#entry1250151
What is comes down to is that the _virtual_ memory management may run into "no available memory" even though there is more than enough _actual_ memory available, and can be dependant on the amount of DLLs and executables loaded. It is a tricky subject to fully understand, but there are a myriad of reasons why this error can occur (and AutoClosePatch only fixes one, that nevertheless is often the problem). Most of these "other" reasons are due to how WM (or our base version of CE, rather) is built. Most of these issues are fixed in later versions, of course (we are now two revisions of CE farther), but unfortunately we won't see that until WP7, which, well....
Chainfire said:
Well, you have to keep in mind, AutoClosePatch only helps when the problem is actually the free memory.
[CUT]
Click to expand...
Click to collapse
whoops, yes, silly me; thanks for reminding me of that fact, I actually have delved a little into the problem of 32mb virtual memory limit under CE 5 core, which alas is the base for 6.5.x as well (and which is a different matter than "free ram"), and for an optimistic while I thought your utility could overcome that, forgetting you clearly stated in your blog that it addresses only the free physical ram issue.
But since I get auto-closing problems starting from more than 210MB *free* ram, it's definitely a virtual memory issue, so technically your patch doesn't interfere with that.

Categories

Resources