Enlarge Program Memory / Fight Memory Leak? - JAMin, XDA Neo, S200 ROM Development

Hello,
I have the following problem:
There is a very useful app called "vbb info", it searches for the best connection using bus/train whatever.. however this app demands almost all of my programm memory.
If I restart my device there is enough space to run it, but after a couple of hours using the prophet the program tells me, that there is not enough memory to continue.
After soft-resetting the device it works again!
I have tried "Hibernate" and "Close- App" so far but it doesn't release enough space to run the app without restarting!
So my question is: Is there another app to free space or is there a way to enlarge the space?
Im using "Shadow Touch Editon 2"
Greetings from germany
Bauer

It seems that VBB Info isn't coded really good if it needs such a huge amount of RAM! Oo

Related

Memory allocation

I have a problem with my O2. In <setting>, <system>, <memory>, I see that the "memory in use" in "programs" side keeps increasing, while I never installed any programs. And "memory in use" in "storage" is OK (no increase). I already tried to use "remover" but there are some files (e.g. MSGQUEUE...) cannot be removed. Any solution? What's the problem?
I join in on this problem. I looked up files bigger than 64K, but the biggest one is CompatcFlashBAckuUpNew (28,7MB). I guess that's just my calender (about 1 or 2 appointments per day) and my Contacts (about 200, but only name and tel.nr.!). Can someone help us out? Where can we get a good manual, where things like memorymanagement for dummies is thouroughly explained? The manual on the pda itself is not enough to me!
Now let me try to give you some answers....
I see that the "memory in use" in "programs" side keeps increasing, while I never installed any programs. And "memory in use" in "storage" is OK (no increase).
Click to expand...
Click to collapse
Storage is the memory on your device where all you´re additonal Software appears. Also your files like notes and all this. (when you don´t put it to a storage card.
Programs is the memory that you have free for running programs All running Programs need a little bit of memory, so that is why this side increases....
Just go two taps in front to see the chapter Running Programs. Close them you didn´t use actualy and you will get more free memory....
CompatcFlashBAckuUpNew (28,7MB).
Click to expand...
Click to collapse
This is like the name shows a Backup from your Data in the file system. I´m sure you picked up at least one time the program SDbackup. I´m also sure, that this File is on your Storage Card...
HTH
Stefan
LumpiStefan,
Thanks for the fast reply.
1. You are probably right on the point that the CompactFlashBackUpNew is on the sdcard (wiht sdbackup). Doing 'find' files larger than 64KB it only lists files with a little icon of a red box in a little white box beneath it - that probably means that it's on de sdcard. So that shouldn't be the problem. Thanks.
2. There is no additional software installed. When I stop all running programs on the 'Running Program List', I have a total main memory of 31.21MB. Free storage memory = 0.93MB and Free program Memory = 1.21MB. The only removable program is the keyboard driver.
greetings,
Lionel
Don´t know where this came from.....
Probably you´re syncing your emails with your PC and also syncing the attachements. This may be an possibility why your Memory is so low. Have you tried to save the attachements to the storage Card?
I´m using my xda for a while now, haveing also about 200 Contacts and installed the Tomtom-Software. My totaly free memory is about 17 MB...
Regards
Stefan
Many thanks Stefan,
I can now be sure that something is wrong with the memory. I've been wondering about this for a few months now. I have no more mail synched with my xda and before the attachments were indeed saved to storage card. I'll just do a hard reset and start all over again.
greetings,
Lionel
Thanks Stefan,
I managed to fix my problem, but if I explore the content of files, I can see big files which I don't know how to erase??? (e.g. MSGQUEUEDATA/MICROSOFT/...) Any solution?

Best task killer..

Can anyone suggesr me which is the best task killer available in the market..m using task killer from rhythm software..
Sent from my X10i using XDA App
gupta.anurag08 said:
Can anyone suggesr me which is the best task killer available in the market..m using task killer from rhythm software..
Sent from my X10i using XDA App
Click to expand...
Click to collapse
I'm running on the Advanced Task Killer, I do not have any issues with them. What's your problem?
I tried 2 3 task killers and all were showing different 'available memory'
Sent from my X10i using XDA App
Yeah, ATK is the best task killer app I've been using
gupta.anurag08 said:
I tried 2 3 task killers and all were showing different 'available memory'
Sent from my X10i using XDA App
Click to expand...
Click to collapse
It is because different task killer have different security policy, which allow them to show the system apps or not. So, in the lower security policy, you can see more running apps and gain more memory after kill them
i do have a question. why are you using a task killer?
I'm not having a dig at people that use them, but more trying to educate people that they are not required
"free memory" is not indicative of a healthy system in linux based machines.
please remember the way in which linux based OS's (which Android is) handles memory. Basically, if you have a heap of free memory it is simply wasted, the OS is not running any more efficiently. It is actually slower.
Here is a quick overview. Written for the desktop computer perspective, but translates over to a mobile phone OS quite well.
"Traditional Unix tools like 'top' often report a surprisingly small amount of free memory after a system has been running for a while. For instance, after about 3 hours of uptime, the machine I'm writing this on reports under 60 MB of free memory, even though I have 512 MB of RAM on the system. Where does it all go?
The biggest place it's being used is in the disk cache, which is currently over 290 MB. This is reported by top as "cached". Cached memory is essentially free, in that it can be replaced quickly if a running (or newly starting) program needs the memory.
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. If it's not found in the cache, the hard disk needs to be read anyway, but in that case nothing has been lost in time."
Read more here - http://www.linuxhowtos.org/System/Linux Memory Management.htm
So u mean to say that we shud not use task killers?
Wat if i exit a game in btw then wat happens..will it get automatically killed??
Sent from my X10i using XDA App
gupta.anurag08 said:
So u mean to say that we shud not use task killers?
Wat if i exit a game in btw then wat happens..will it get automatically killed??
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Nope, that is the reason why i have to use task killer
For me, it help me save much of battery
Since I stopped using a task killer my battery is better.
Don't use a task killer for a week and watch the difference.
gupta.anurag08 said:
So u mean to say that we shud not use task killers?
Wat if i exit a game in btw then wat happens..will it get automatically killed??
Sent from my X10i using XDA App
Click to expand...
Click to collapse
yes and yes!
if your phone requires the resources, it will kill tasks that are no longer required. its all automatic. let it do it itself and you will have a much happier phone
AND better battery life, because the android OS is not continually restarting processes that your task killer deems unnecessary. I would trust the actual OS over a 3rd party app. It is designed that way for a reason (see my previous post).
mrtim123 said:
i do have a question. why are you using a task killer?
I'm not having a dig at people that use them, but more trying to educate people that they are not required
"free memory" is not indicative of a healthy system in linux based machines.
please remember the way in which linux based OS's (which Android is) handles memory. Basically, if you have a heap of free memory it is simply wasted, the OS is not running any more efficiently. It is actually slower.
Here is a quick overview. Written for the desktop computer perspective, but translates over to a mobile phone OS quite well.
"Traditional Unix tools like 'top' often report a surprisingly small amount of free memory after a system has been running for a while. For instance, after about 3 hours of uptime, the machine I'm writing this on reports under 60 MB of free memory, even though I have 512 MB of RAM on the system. Where does it all go?
The biggest place it's being used is in the disk cache, which is currently over 290 MB. This is reported by top as "cached". Cached memory is essentially free, in that it can be replaced quickly if a running (or newly starting) program needs the memory.
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. If it's not found in the cache, the hard disk needs to be read anyway, but in that case nothing has been lost in time."
Read more here - http://www.linuxhowtos.org/System/Linux Memory Management.htm
Click to expand...
Click to collapse
The idea is absolutely right if memory is being used for apps you are likely to open frequently. ATK allows you to unselect the apps you want to keep running. That way you can unselect the ones you use the most and then use the widget to kill everything else.
I notice when I press the home screen many apps don't kill them selfs and after a while I have loads of apps running and the system starts to lag, specially when I try to run something else.
There are advantages in both approaches and I find a mixed combination (available with ATK) makes it best, although the user need to use some common sense to do it right. Killing everything means the system will be more responsive but regularly used apps will take longer to start up. Not killing means the apps you use a lot "startup" faster when you use them repeatedly (as in fact they never stop running) but after a bit the system will lag when using other apps and may need to use pagefile/swap to atone for the lack of free RAM. That causes page faults which make the system even slower.
The iphone developers aren't complete idiots for killing every app. They have a priority for system responsiveness and they did achieve it at the cost of background running apps. I like the possibility to choose what I want to keep running and kill the apps I'm not likely to use again and it's one of the reasons I picked android.
A little Offtopic to both ifanboys and ihaters:
I never owned any apple product as I think of them as over priced. That said I think the iphone has great merit and I doubt very much we would have Android if the iphone didn't pave the way. Besides I jailbreak my brother's 3G and made it multitask enabled. Now it runs apps in background and there is little diference between it and my android. Except for the extra 200€ it cost, the lower hardware specs and expensive service provider contract my brother pays for a mandatory 24 months, while my X10 cost ~65% initially and came free of any contract.
well said, PCO
pco.vaz said:
I notice when I press the home screen many apps don't kill them selfs and after a while I have loads of apps running and the system starts to lag, specially when I try to run something else.
Click to expand...
Click to collapse
Thats what I and others have found, which is why some people choose to use one, myself included. Someone posted a link to an article last week with similar information posted here about the OS handling itself, but the comments section of the article were full of comments similar to what pco and myself have said, so it's all down to personal preference whether or not you choose to use one.
I did use a task killer for a while, then stopped. Personally my phone is better without. I have nothing except weather that updates automatically, I do it manually when I need it.
It is one of those things, just like on a laptop, everyone has different configurations and usage patterns that results will vary.
Sent from my X10i using XDA App
Don't apps exit when you keep hitting the back button? And for games doesn't hitting exit shut down the app?
I thought its a feature that apps don't close when you hit the home button?
gavriel18 said:
Don't apps exit when you keep hitting the back button? And for games doesn't hitting exit shut down the app?
I thought its a feature that apps don't close when you hit the home button?
Click to expand...
Click to collapse
The browser for instance doesn't. Same with many other. I think it's up to each individual developer to program that behavior for his app.
I got Visual task switcher and I notice lots of apps just stay running forever.
Task killer caused probs for me. A daily switch off doesnt hurt, but have run mine for 7 days and been ok. Even a bberry cant do that!
Sent from my X10i using XDA App
Guys, don't use home button to exit apps.
Will just send them in background.
Use the back button... this won't exit (most of) the apps but will put them in a "sleep" state so, next time when you will use it, it will load faster.
So, again, home button will put the app in background, still running.
Test it with an audio player for ex.
Or a browser... send it in background with home button and the player will still play or the browser will still have that page loaded.
With back button, after all views are "closed" the app will close too (well, put in sleep state).
I use ATK only to kill the apps i use once in a while ... the rest of the stuff, is always in memory.
My X10 has usually about 25Mb free
Actually I used ATK to kill application that need to connect to internet, and in my case there is extra charge payment. But after i used ATK I don't notice that the battery live is longer. So I ever ask someone in my thread about after ATK kill applications and so forth....
And somebody told me to quit using ATK and now I realize that the battery last longer than before.
But one thing still bother me is:
Setting - Wireless control - mobile network - mms & data (no checklist)
means: I can not access internet and receive or send mms either.
Actually I only need MMS, not internet.
May be somebody can help me solve this problem.
Thanks.
But my conclusion:
NO NEED ADVANCE TASK KILLER.
After I uninstall ATK, my phone still running smooth and the battery last longer.
May be we just need best Cache cleaner. But I still trying some of that.
@pco.vaz
I don't want to be mean, but you are wrong.
Even those iOS versions that are not multitasking enabled keep apps in memory. Leaving an app on an iPhone resets its UI state and halts its processes, but parts of the app are left in the memory. You can see the difference in loading speed if you decide to reopen it.
There were apps that could show memory usage and clean it on the App Store, but Apple removed them. You can still get them through Cydia and see for yourself how memory management on iTouch devices actually works. Basically the iPhone goes as low as 3-4 megs of free memory and handles it in smiliar way as Android.
On both Android and iOS, apps that are in background are paused after a while and do not use processor cycles. Memory they keep occupying is overwritten if needed by another process.
I do not recommend using task killer to people who do not know what they are doing exactly. Killing even simple processes often causes phone instability and drains battery faster, as others have already said.
If you feel your phone is stalled, perform a simple reboot. There are apps that run in background (in most cases you are warned about this) or are poorly coded that could cause this behavior. Other than that, inbuilt application manager is able to force close apps pretty well, if you need to kill a single app causing problems

Edit startup application or better, edit init.d/rc

Hi Guys,
I'll be short, I have abandoned task killing and by using swap and a2sd to free some phone disk space, my device is now faster and happier.
I installed watchdog, and I notice that newsRob, a great app I use maybe 1 time in one month sometime pops up and sucks over 60% of my cpu.
So I want to delete this app from startup:
Is it any way to do this, for example by editing init.d or something like that?
On other forums I found people using Startup cleaner 2.0, is that the real deal or it just kills the app automatically?
Tnx in advance for your help
NOT DEVELOPMENT RELATED MOVED APPS

Root S3 to make more free ram available??

If I root my S3 is it possible to make more ram available to me?
With all apps closed I have 650/780 being used so that only leaves me with 130mb of ram.
uf21 said:
If I root my S3 is it possible to make more ram available to me?
With all apps closed I have 650/780 being used so that only leaves me with 130mb of ram.
Click to expand...
Click to collapse
Jesus. There's a huge panic now because the variant has 2 gigs of ram...
http://www.androidcentral.com/ram-what-it-how-its-used-and-why-you-shouldnt-care
You actually have more free, but the android has a lot of it saved for caching, etc. For example, Facebook takes 40 mb, but when I open it only like 5 or 10 mb of the ram shown as "available" is taken away because parts of it are actually open already.
But yes, if you root it, and a developer adjusts the Minfree to a large amount you will have more free but your phone will probably be slower.
Folks need to keep in mind, that keeping RAM free as you would with a Windows based OS, is NOT ideal in Android. Android uses RAM completely differently and it is perfectly okay for your phone to make use of RAM, even for apps you are not currently using.
There's a fair amount of documentation out there about this - do some Google-fu to deep dive further.
Actually I ask because when I was trying to send a picture in whatsapp it kept sayin "try again" but when I closed all tasks in multitask the picture did send. So I'm guessing it is a ram problem.
Also take it easy on Mr. This is my first android phone, I've been using iphone since the 3g and don't know nothing about android..... yet
Sent from my GT-I9300 using XDA
You don't really want to much free ram. If there is to much free ram it means apps are not going in to cache witch will mean really slow app loading times. 200-300mb free is ample for new apps to run, if the OS needs more then its auto memory management will come in to play to free up more if needed, android is a very smart peace of kit
Sent from my HTC One X using Tapatalk 2
if anyone were to choose pre-caching order for faster load times ( usually just by seconds than non-pre-cached) to no random force closes because there is more free memory, they would chose more free memory.
but since the experts have already said android memory doesn't work the same way like windows does, then the best would be a balance between cache and free memory. right? right. that's where official updates and dev fixes come in.

[Q] RAM

How do I free up RAM for my Samsung Note II LTE GT-N7105 on stock Android 4.3, rooted?
I am an Android retarded user looking for a patient teacher who will walk me through the Android RAM mysteries and answer a few question and, in exchnage, I can teach about the secret world of Traditional Neapolitan coffee infusion: home roasting, grinding, preparation and... savouring or, alternatively, Home Theatre! Your pick!
Smiles!
On average, at startup,
- Clean Master shows:
> 50% RAM
> 70% Device Storage
> 20% SDcard External Storage.
- Titanium Back shows:
> 500MB free RAM (of 2.11GB)
> 4GB free Internal+Media (of 10.9GB)
> 50GB free ExtSDcard (of 63.8GB)
Starting with these numbers, the device freezes after a bit of usage of the Swipe (Nuance) App. But I recently played with a 78 year old banker's GT-N7105, which was 20 times faster than mine, while running the same Swipe keyboard App: "My nephew geeks around a forum called xda-developers!"
1. In general, what's the relationship between installed Apps and RAM usage? Sometimes when I kill an app it frees up a bit of RAM, sometimes a lot and sometimes nothing at all.
2. Do installed (but not opened) Apps take up RAM space just by sitting in my Apps drawer? Should I uninstall all the Apps which I downloaded because "one day I might need it" and never used them or are they harmless (RAM wise) if I don't open them?
3. Do Apps which have been launched and now sit in the background take up RAM (as in Windows)?
4. Is there any difference between "fereezing" and "un-installing" an app as far as device operation speed is concerned?
5. Do I need to make sure that Apps don't start up if I don't need them (Google Play Services, Google Play Store, Goggle Translation, YouTube, Video Player, S Voice, Picasa Uploader, Nearby Service, Nearby Devices, SNS)?
6. If they eat up RAM, how do I make sure that they don't self start? Android Assistant App?
7. If background open Apps eat up RAM, is there a way to kill them automatically once I open a new one without loosing the cahced data which i might be using?
Thanks in advance for your time and expertise.
ascanio1 said:
How do I free up RAM for my Samsung Note II LTE GT-N7105 on stock Android 4.3, rooted?
I am an Android retarded user looking for a patient teacher who will walk me through the Android RAM mysteries and answer a few question and, in exchnage, I can teach about the secret world of Traditional Neapolitan coffee infusion: home roasting, grinding, preparation and... savouring or, alternatively, Home Theatre! Your pick!
Smiles!
On average, at startup,
- Clean Master shows:
> 50% RAM
> 70% Device Storage
> 20% SDcard External Storage.
- Titanium Back shows:
> 500MB free RAM (of 2.11GB)
> 4GB free Internal+Media (of 10.9GB)
> 50GB free ExtSDcard (of 63.8GB)
Starting with these numbers, the device freezes after a bit of usage of the Swipe (Nuance) App. But I recently played with a 78 year old banker's GT-N7105, which was 20 times faster than mine, while running the same Swipe keyboard App: "My nephew geeks around a forum called xda-developers!"
1. In general, what's the relationship between installed Apps and RAM usage? Sometimes when I kill an app it frees up a bit of RAM, sometimes a lot and sometimes nothing at all.
2. Do installed (but not opened) Apps take up RAM space just by sitting in my Apps drawer? Should I uninstall all the Apps which I downloaded because "one day I might need it" and never used them or are they harmless (RAM wise) if I don't open them?
3. Do Apps which have been launched and now sit in the background take up RAM (as in Windows)?
4. Is there any difference between "fereezing" and "un-installing" an app as far as device operation speed is concerned?
5. Do I need to make sure that Apps don't start up if I don't need them (Google Play Services, Google Play Store, Goggle Translation, YouTube, Video Player, S Voice, Picasa Uploader, Nearby Service, Nearby Devices, SNS)?
6. If they eat up RAM, how do I make sure that they don't self start? Android Assistant App?
7. If background open Apps eat up RAM, is there a way to kill them automatically once I open a new one without loosing the cahced data which i might be using?
Thanks in advance for your time and expertise.
Click to expand...
Click to collapse
Ugggg I hate this app lately! Just spent ten minuets answering all your points fully and it gave me stupid permission error! Even wrote a nice analogy about ram and libraries...forgive me if I'm brief now
Sum it up
Poorly made apps or ones that need to stay in the background to operate fully or spy on you stay in ram, many don't, dump bad and seldom used apps, stay away from task killers, if you need one use watchdog, see what's actually using cpu, better battery stats or cpu spy can help too. Freezing is fine, v6supercharger can help you, setting background process limit in developer settings can help
You have a nice snappy phone, get rid of junk and use nice roms and you'll have no issues
Secret world of traditional neapolitan coffee infusion sounds intriguing
Sent from my SGH-T699 using XDA Premium 4 mobile app
i would suggest installing and using greenify, since u already rooted.
post #3 of that thread is worth reading, probably will answer most, if not all of your question regarding android ram usage
@an0nym0us_
Cool advice, thanks! I installed and I will try it now.
@an0nym0us_
Cool advice, thanks! I installed and I will try it now.
@demkantor
I only got the jist of it but I didn't really understand... any chance to try again, when you have more time on your hands?
There are 3 aspects that make up coffee flavour: the beans' quality, roasting and preparation.
Beans (origin, ripeness, homogeneity, dryness) and roasting (tempreature, duration) are, for now, out of your reach. But preparation isn't.
Most infusion's preparation depends on 3 basic parameters:
- temperature
- time
- contact surface.
Threfore brewing time and temperature and the beans' grind size (and also the grinding method) will influence the coffee taste: the greater the time, temperature (up to 95°C) and surface the greater the organoleptic proprieties' transfer will occurr. Which does not necessarily mean the better taste... more on that in the next lesson.
Organoleptic properties are the aspects of food or other substances as experienced by the senses, including taste, sight, smell, and touch, in cases where dryness, moisture, and stale-fresh factors are to be considered.

Categories

Resources