HTC Mail has a significant memory leak - Droid Incredible General

I have reason to believe that HTC Mail has a significant memory leak or bug which is causing all of the "Phone storage is getting low" messages. I've had the phone for 2 weeks as of this thursday. my setup is 4 pop3 email accounts configured during the initial setup in HTC Mail. I've noticed during the two weeks that the HTC Mail app has been steadily ballooning in size. it starts out small enough, just a few megs, but after a day or so jumps to 40-50megs. After that jumps to 80megs, 90megs, 100megs, 110megs etc.
At around 110-115 megs it triggers the "phone storage low" messages, and soon thereafter the phone essentially becomes non-functioning. the problem is that as far as i can tell, there's no way to reduce the file size of this HTC mail app once this process has started. i've deleted every shred of email, all inboxes, all sent, all trash all everything from every mail folder for every account - no reduction in app size. then i set about actually deleting the email accounts themselves one by one - no reduction in app size.
i trashed every shred of email from the system, and the HTC mail app still hovered around 110megs (and the phone storage low indicators continuing). after researching the issue online and piecing 2+2 together i realized that the only solution is to wipe the phone. the issue there is that there are no guarantees that the issue wouldn't resurface again (actually it's quite likely).
so after wiping the phone last night, i did NOT setup HTC mail, but rather switched to K9 (just using gmail exclusively is also an option). so far zero issues. obviously 12 hours or so is too small a sample size to make definitive conclusions, but after all of the research i've done i'm confident the "phone storage is getting low" errors will not return.
bottom line: HTC mail seems to have a very significant memory leak or bug that causes it to blow through its allocated memory at an alarming pace, and there is very little that can be done to stop it once it's started. i would strongly recommend to those of you with the above issues to NOT use HTC mail after wiping the phone...

Don't delete the accounts. Just go into Account Settings > Send & Receive Settings > and reduce the number of days under "Download Options".
Problem solved.

aeleth said:
Don't delete the accounts. Just go into Account Settings > Send & Receive Settings > and reduce the number of days under "Download Options".
Problem solved.
Click to expand...
Click to collapse
Can anyone verify this? As a tech in a vzw retail location I've seen this a couple times and haven't thought to look at the HTC Mail. I've seen this on the Eris a few times and only once or twice on the Incredible.

I just clear the mail cache.. It lasts a few months each time I do this

... besides ...
How long are you going between reboots? If you want a decent charge, you have to power the thing off at some point.

Related

HTC Mail Bug (Phone Storage Low - Error message)

Have any of you heard of this?
forum.androidcentral.com/droid-incredible/12215-htc-mail-memory-leak-bug-phone-storage-getting-low.html?highlight=mail
androidforums.com/support-troubleshooting-incredible/80143-htc-mail-memory-leak-bug-phone-storage-getting-low.html?highlight=phone+storage+low
I had to deal with this yesterday, reset my phone to factory defaults. No matter what I did, the Phone Storage Low error message would not go away. My HTC Mail app was telling me it was using over 100 MB in storage. No SMS or Email could be sent/received, no application run and just Force Close, and nothing could be downloaded. Eventually, the phone just kept rebooting when I tried to run programs. So, I found those threads, reset the phone, and all works again.
I can't post links, so you guys can peruse those two forums for what I'm talking about. You guys are the pros at developing, so I thought I'd ask someone at xda.
Same problem. Ended up doing a factory reset and restored everything BUT, for my Exch acct, I purchased the Moxier Mail app. It's superb. Great integration, calendaring, etc. Easy config. All the goodies.
I still use the HTC Mail app, however, for 1 POP3 and 1 IMAP accounts, but have lowered the per-message download size and have set download to just get the past 3 days (at the bottom you can always grab more if needed.) In my business I'm responding immediately to mail, then filing or deleting it, so 3 days works for me.
Ultimately though it seems that there's a monster memory leak (a la DW Horizon magnitude leak) in HTC Mail. Hopefully we'll see a patch, though I must say that a week into Moxier I don't think I'll be switching away from it for Exch. And oh, multiple Exch accts on the Sense UI would be nice at some point, too. Just sayin'
My expereince:
I was up to 30+ MB and getting concerned so I deleted EVERYTHING in HTC mail (including emptying the trash folder). So there is NO data for this app to do anything with except basic setup info. Still had 26 MB in the app. Deleted the mail account. Still have 26 MB. Can't get rid of it.
Stopped using it and have been using K9 (free) for about 10 days. Took a little getting used to, but I like it.
And just ran across this: http://www.zdnet.com/blog/google/is-your-droid-incredible-low-on-disk-space/2163?tag=nl.e539
Just got this message this morning. To my surprise found that same article on ZDNet. I have maybe 5 apps installed..But yes, im using HTC mail.
Guess its a memory leak of some sort. I use this phone for work and probably get 50-100 emails a day. I did however get the message to disappear by going to my TRASH folder in my HTC mail and deleting the 500 or so messages in there.
Had phone more than a month now and have not had this issue. I only use HTC mail for exchange and use K-9 for all my other pop, imap accounts except gmail which I use for that.
I was greatly disappointed in Moxier in that it didn't have some of the basic features found in HTC Mail, messed up their widgets by putting their name in the title of each one, etc... For the price, simply didn't think it was worth the money and I got the impression they had no desire to fix or improve it. they don't even have a decent trial version to really get a handle on what it could possibly do or work arounds for the apparent lack of basic features.
touchdown was a no-go the first day as it has serious display issues on the DI.
However, I've not had any problems with HTC mail yet... get 100-160 messages a day.
krelvinaz said:
Had phone more than a month now and have not had this issue. I only use HTC mail for exchange and use K-9 for all my other pop, imap accounts except gmail which I use for that.
However, I've not had any problems with HTC mail yet... get 100-160 messages a day.
Click to expand...
Click to collapse
Yea, I have had my phone since 1st day of release. Never had a problem until this morning. So weird. Maybe I will try K-9 as my work email is setup POP.
After seeing a couple threads on this I'm wondering if the simple fix is to use a 3-day download setting (or less) in HTC mail.
rfarrah said:
After seeing a couple threads on this I'm wondering if the simple fix is to use a 3-day download setting (or less) in HTC mail.
Click to expand...
Click to collapse
That is what i used from day one with HTC Mail. So, dont think that theory will work. I actually factory reset the phone last night and am going to try HTC Mail again with all the same settings but not use the widget.
Yeah, ever since I had that first message and had to reset to factory defaults I've left my settings default (except for 100KB messages).
Mail size limit: 100kb
Download Feq: 15 minutes
Download Past mail: 3days
My HTC Mail is still only using around 4MB, and it's been two weeks since that episode.
I've had my phone since Apr 28th and never have had the issue. I only had it set to 10kb, as arrives and 3 days, and I only used it for Exchange mail. All my pop accounts are on K9 and gmail is on gmail.
Over the weekend, I found out about the working version of touchdown for the dinc and started playing with it on Friday. Went ahead and bought it Sunday after beating it up a bit. There are enough features in it that makes it worth the coin.
Glad I didn't run into this issue, but might have over time.
rfarrah said:
After seeing a couple threads on this I'm wondering if the simple fix is to use a 3-day download setting (or less) in HTC mail.
Click to expand...
Click to collapse
I got the message a month after getting the phone. I had it set to save all emails and it basically bricked it and had to do a hard reset. It was stuck looping between the Verizon boot and the Incredible screen. A week later it did it again and Verizon told me I had too many emails and changed it to only hold 3 days worth. Worked for a couple weeks and the message came back yet again...This time Verizon thought maybe I had a defective phone and sent me a new one. So far a week with ALL emails saved and no issues, but I'm not holding my breath.
3 days worth of emails is kinda pointless for me...
Memory issues
I started seeing memory issues as described here today, first it was affecting DL from Market, late in theday I could not open texts.
I do NOT use HTC mail. But I did notice that my Contacts Storage was over 95 meg big. Probably a lil too big. Probably thumbnail/facebook integration? Anyhow I reformated phone storage, and then cleared data on contacts, now it is down to 2 meg. I re-DL contacts from Verizon sync
Not sure what this means, I love the Incredible, but can't stand bugginess... And Droid 2 comes out today...
Anyone else seen this behavior that was NOT part of the mail program?
So far I haven't seen this. (knock on wood) Then again I don't use HTC Mail either. I like to keep things slimmed down since I had that Moto Q with the shrinking memory. Yeah! The slimmer things got with that the smaller my storage got. Hopefully this will be fixed before I ever see the problem.

[Q] Email not auto checking?

Have a weird problem. Got the Epic on release day, set up my two emails that I want to be able to check from the phone, a POP3 account and a Gmail (that is not associated to the phone to sync).
Both are set to auto check for new mail every 5 mins. Everything worked great for about a day, but then stopped.
Neither email account is auto checking for mail regardless of the frequency I set it to. 5 mins, 10 mins, hourly, etc.
If I go into the inbox however for one of the email accounts it seems to instantly check for new mail and then all the messages show up.
Any thoughts?
Thanks in advance.
Ok, after doing some Googling and coming across a comment on some random site I did a little test.
I have two email accounts configured, and both were set to check every 5 minutes. It seems that the stock email app has some kind of issue initiating more than one email check at a time, so if you have multiple accounts and have them set to the same check frequency, it breaks. I left one account at 5 minutes, set the other to 10 minutes, and they both were able to receive test messages I sent.
How retarded.
Hopefully there will be a fix for this at some point.
Mine is doing this too! however i do have them on different times. i haven't got a notification i got email i have to click email then it loads the messages?
Any way to fix this?
Exactly what mine was doing but putting the frequency check times at different times 5 min & 10 min seemed to have fixed it.
I just sent two more test emails to make sure it wasn't a fluke and will report back if it did indeed fix mine or just happened to work once after I had rebooted the phone.
Hmm,..previous test was a fluke maybe affected by having gotten an SMS around the same time...
Mine is still broken.
I have found that the email app must stay running in the background in order to sync additional mailboxes other than the default gmail account. Make sure any task killers are configured to ignore the email app. Using the Home key to exit mail works for me. YMMV!
Sent from my SPH-D700 using XDA App
I don't have any task killers installed, but I do exit the mail program with the back button.
I'll try starting it up, and then just exiting using the home button to see if that changes the behavior.
I'll report back the results.
ddialogue said:
I have found that the email app must stay running in the background in order to sync additional mailboxes other than the default gmail account. Make sure any task killers are configured to ignore the email app. Using the Home key to exit mail works for me. YMMV!
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
i let it run and didn't end it and it still didn't work i just have my email. i just forwarded my aol to gmail and now i dont have have to worry about it.
im having the same issue... This could be a deal breaker for me
Also the damn battery takes 4 hours to fully charge
Ok, leaving the email app running in the background by using the home key to exit it vs the back key made no difference. Still doesn't refresh the inbox until you open the email app up and go into it.
This sucks.
Anyone?
Sent from my SPH-D700 using XDA App
Sorry, posted in wrong thread! had 2 open and picked the wrong one.
badblowntie said:
My Battery life sucks also, am trying a few things now to see if anything makes a difference. I removed Fring, did the on/off airplane mode thing, and am running the Juice Plotter to see if anything changes. only 4 to 5 hours of average use that my Hero could handle kills this battery!
Click to expand...
Click to collapse
How is this relevant to the topic?
i have 2 yahoos and a gmail and they are all updating fine. who is the provider of this email service?
One is a Gmail account the other a POP3 that had no issues over the last 5-6 years on WinMo using Sprint, nor on Android on my old Touch Pro, so that isn't the issue.
After roaming around the net a bit, it seems this a fairly widespread issue with no known fixes yet.
I also have this issue, and its quite frustrating. I have email accts for hotmail, gmail, yahoo, and aol. The only one that gets mail properly is the hotmail account, since it's set up using ActiveSync. The others often don't show as getting new email for about a day or so unless I manually go into each account. Only then will it realize there are new messages.
I too am having the same problem. My default e-mail is a comcast account set up to check every 5 mins. My 2nd acct is a gmail acct set to check every 30 mins. Coming to this phone from a blackberry and my curve would get the e-mails faster than my PC's outlook would.
I rooted my wife's EVO the day she got it bc she hated all the pre-loaded sprint bs. I'm in the same boat with my epic, but i'm hesistant to root it and load an Android 2.2 rom because i want to wait for bugs like this to be fixed.
I'm also getting a pop-up error msg on my epic about 4-5 times per day that says something along the lines of "unable to connect to network", even though i have service on the top "taskbar". The pop-up gives me the option to retry or cancel. Either selection doesn't seem to do anything. I have wi-fi, 4g, gps, and bluetooth turned off for battery life. I don't know if this could correlate to the e-mail syncing problem so I figured i'd toss it out there.
You know, the frustrating thing is I sit here and wait for months for this phone to come out and then they have all these problems with it. My wife's HTC EVO hasn't had a single problem since day 1 and she got it on release day too. The only thing good i can say about this epic compared to the evo (with exception of the slide out keyboard) is the battery life is marginally better on standby.
Subscribing to see what the fix is...
A lot of sites are rumoring there being some type of OTA update near the end of September. Some say it will just e fixes and patches for 2.1 for things exactly like this, others are crossing their fingers that it may be Froyo.
Either way, as long as it fixes this issue I'll be happy...so we'll just have to cross our fingers, wait and see.
lately my e-mail checking has been getting worse, sometimes not even syncing certain items. i went into settings and compared the send receive port #'s to the ones set up in my outlook, and the settings were all wrong as well as the port #'s. I changed them all to match my outlook and now everything is working fine for the moment. time will tell if this was the problem.
I'd be surprised if that fixes it for you.
I know that isn't the issue with mine. All of my manually configured server settings are correct and it still does it.
Crossing my fingers this will be patched/updated at some point, but until then I have MailDroid installed which is getting new mail notifications perfectly. I don't really like MailDroid as much as the integrated client, so whenever MailDroid lets me know I have an email, I just go into the stock email client and manually refresh to read/reply/etc.

Sgs lags only when using Samsung email

Hi,
As the title says. .can u guys try it out. .im running on foryo now but the same thing was on 2.1...
It only lags when i configure an email account in the email client. ..once deleted NO LAG. .
Btw what's up with the gps fuss. .mine is working perfectly infact its best gps and wifi in a phone i owned.
Sent from my GT-I9000 using Tapatalk
SGS also lags when browsing through different memos in Memos application. It's hilarious!
u didn't get what im saying it only lags after configuring an email account. ..ex ur memo browsing might not lag if u remove ur email account. .
Sent from my GT-I9000 using Tapatalk
Well, I don't have seperate email accounts configured, only Gmail.... so don't know about that.
Either you've never had a gps-enabled phone before, or your previous phones have been useless, as my experience is that my old G1 has better gps than my SGS - it locks MUCH faster and is 100% accurate, whereas the SGS never gets within 10m of my location and once I start moving it just goes haywire - MY Tracks shows me driving through fields and houses 90% of the time and occasionally I've done handbrake turns in someones front garden apparently.
;8827033 said:
Either you've never had a gps-enabled phone before, or your previous phones have been useless, as my experience is that my old G1 has better gps than my SGS - it locks MUCH faster and is 100% accurate, whereas the SGS never gets within 10m of my location and once I start moving it just goes haywire - MY Tracks shows me driving through fields and houses 90% of the time and occasionally I've done handbrake turns in someones front garden apparently.
Click to expand...
Click to collapse
I don't know but i never faced an issue like that and the fix is pretty fast compared to my touch pro and omnia 2
Sent from my GT-I9000 using Tapatalk
Lag also without email-accounts
Since upgrading to FroYo 2 weeks ago i haven't bothered to enter my email-accounts. (only gmail)
But it still lags!
dspjern said:
Since upgrading to FroYo 2 weeks ago i haven't bothered to enter my email-accounts. (only gmail)
But it still lags!
Click to expand...
Click to collapse
You can add my name to this list. I've never used Samsung's crappy E-mail app, yet my phone lags constantly.
Back to the drawing board, eh?
adel6 said:
Hi,
As the title says. .can u guys try it out. .im running on foryo now but the same thing was on 2.1...
It only lags when i configure an email account in the email client. ..once deleted NO LAG. .
Btw what's up with the gps fuss. .mine is working perfectly infact its best gps and wifi in a phone i owned.
Sent from my GT-I9000 using Tapatalk
Click to expand...
Click to collapse
I have experienced the same thing, i mainly experience the lag in the email app itself though. System Panel shows a steady 30% cpu usage when just looking at the email screen(s), and a steady continious +50% cpu when in the Accounts & Settings of the email accounts, so there is something odd. It seems to relate to Exchange accounts, but i'm not sure.
I read somewhere that a K9-mail user had a problem, downloading 20-25 messages took 10 minutes. After applying Voodoo Lagfix, this dropped to 2 seconds... So maybe the email app is really hammering the internal SD card for no good reason, which would explain the high CPU .
I've never used Samsung's crappy E-mail app
Click to expand...
Click to collapse
Correct me if I'm wrong, but isn't the e-mail app on the Galaxy S identical to the "stock Android" one?
I use the GMail app myself and I have no problems with it. The Memo app turned painfully slow after the 2.2 update, but fortunately I don't use it
pwhooftman said:
I have experienced the same thing, i mainly experience the lag in the email app itself though. System Panel shows a steady 30% cpu usage when just looking at the email screen(s), and a steady continious +50% cpu when in the Accounts & Settings of the email accounts, so there is something odd. It seems to relate to Exchange accounts, but i'm not sure.
I read somewhere that a K9-mail user had a problem, downloading 20-25 messages took 10 minutes. After applying Voodoo Lagfix, this dropped to 2 seconds... So maybe the email app is really hammering the internal SD card for no good reason, which would explain the high CPU .
Click to expand...
Click to collapse
I haven't bothered investigating cpu usage and such, but I can confirm that the email client profits tremendously from a lag fix (OCLF, in my case, using two Exchange accounts).
As stated in Post #11, i had the same problems. After Setting back to Factory Defaults and installing Voodoo Lagix last night, my conclusions are:
- the problem is introduced/highly aggrevated by installing Froyo 2.2 over Eclair 2.1, which i did through Kies with the registry hack two weeks ago.
- a format of the Internal SD Card, followed by a reset to Factory Defaults, solves the problem to a point the email app is useable again (albeit no speed monster). Also, this solved other ittermittent force closes which i was suffering from mostly in Agenda related apps. Of course you will loose all apps and data doing this.
- Applying Voodoo lagfix solved the speed issues almost completely. You can still tell the email app isn't the best programmed app of the bunch, but its perfectly workable. Installing Voodoo was a breeze following the step by step instructions found through project-voodoo.org.
It does seem a little more responsive after removing te email account.
I will try the voodoo lagfix. But I'm hoping for an updated version of FroYo.
Try this app for email including exchange, it was provided by seven for Samsung, but it was not put on all Galaxy S's, seems to work quite well.
http://forum.xda-developers.com/showpost.php?p=8731758&postcount=25
Sent from my GT-I9000 using my ASS!
Running JP6 with voodoo. The default mail app works nicely with two accounts. One exchange and one imap.
No lags even with a few days uptime.
Exchange email accounts drain battery fast on Scandinavian Froyo update
To illustrate something is amiss with the Scandinavian Froyo update, that Samsung pulled afterwards:
If you set up Exchange email accounts, setting the Email retrieval update interval to anything else than 'Never' results in a continious 10% CPU load, draining the battery two times faster than in Eclair 2.1
I set it to 'Never', or have Tasker kill the Email app x seconds after Display Off
Determined by using System Panel app.
Edit: flashed JPA firmware (which is believed to be the official Froyo update coming 11-11), problem still exists
Test with K9 and default Android Email app on i9000
Did a test on my i9000. Stock 2.1 no lag fix. Bought SIM-Free so only has Samsung's tweaks and no mobile operator branding.
I9000XXJM1
ECLAIR.XWJM2
TEST A. Default Email application
1. Used Email app (default one that comes with Android):
Added two Gmail accounts / IMAP, SMTP, SSL.
No unacceptable lag other than that encounted without the usual lag-fix.
2. Added 1 non-Gmail account / IMAP/ SMTP-AUTH, TLS
System became nearly inoperative. Swiping between home screens took 2 seconds. Using most apps, caused the screen to remain black for between 2 and 30 seconds. In one case using Xscope (browser, which was now impossible to use - unresponsive and 3 mins to draw a page) caused the screen to remain black for approx 3 mins. Contact, Messenger and Phone apps took a max of 2 seconds to open, but always opened. Outbound call quality degraded to the point the called party complained. I did not notice an app crash.
TEST B. K9 Mail application
1. Used K9-Mail app :
Added two Gmail accounts / IMAP, SMTP, SSL.
No unacceptable lag other than that encounted without the usual lag-fix.
2. Added 1 non-Gmail account / IMAP/ SMTP-AUTH, TLS
System became nearly inoperative. Swiping between home screens took 2 seconds. Using most apps, caused the screen to remain black for between 2 and 30 seconds. In one case using Xscope (browser, which was now impossible to use - unresponsive and 3 mins to draw a page) caused the screen to remain black for approx 3 mins. Contact, Messenger and Phone apps took a few seconds to open. Outbound call quality degraded to the point the called party complained. I did not notice an app crash. System load hit 39, which is very overloaded for a 1 CPU device. Often it was between 10 and 20.
I suspect the I/O but I did not see iostat in busybox; the stdout from top was badly formatted on the SGS display so I could not read the I/O column.
Notes:
i. Test B Result 2 is almost a copy and past of Test A Result 2. This is because the results were pretty much the same.
ii. System load (vmstat and top) I did not check system load with Test A. I only did this when I used K9-Mail.
iii. System was rebooted each time after an IMAP account was configured.
iv. I have since removed the non-Gmail IMAP accounts. It was hell. I almost beat the SGS into the wall.
v. Important: the non-Gmail IMAP account has the following in the mailbox:
Inbox 658 messages totalling 68.4Mb.
vi. K9-Mail configured to fetch full headers and messages <2kB hourly, and only the fetch the Inbox.
vii. NON-Gmail IMAP server capacities:
* OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL=1 STARTTLS AUTH=PLAIN] Dovecot ready.
No problem here - Google use Dovecot.
viii. A factory reset was done between the two tests. (Settings -> Privacy -> Factory data reset)
viiii. GMAIL IMAP accounts contained approx 20 Emails each in the Inbox. I await more SPAM for testing purposes.
UPDATE.
I had 1,000 Emails sent to me on Gmail. Then reran Test A Part 1, and had the Email app load 114 of these. The SGS stated to lag. I opened one of the messages (containing only 1 line of ASCII email), and the Email partially opened the Email, splutted, stopped, hung, screen went black. Eventually, I closed the app down. Even the Active Applications widget (and the programme it lauches) is slow (and red).
I went onto Gmail and deleted the 1,000 Emails, and synced the Email app with Gmail IMAP server. Messages read 0, and the SGS was back to normal speed without lag-fix.
I soubt very much that any one is using a normal Email account with the SGS Email app. I suspect most are using Gmail with the Gmail application. I cannot comment on the lag fix (I await CyanogenMod for mine), but the SGS cannot be used with a non-Gmail account without a lag fix : useless for me since I only use Gmail for the Market ; Like many people, work provides the Email account. Clearly, Samsung test team did not test their wonderful RFS with normally sized IMAP accounts. Nice one, Samsung. 10 out of 10 for cocking it up.
As for GPS its something like thsi:
- Where are the sats?
Oh there they are.
Please don't move for 30 seconds.
Found some!
Oh feck, you've moved.
Now where are those pesky sats?
What was I doing? Oh sats!
Setting Exchange to'"Push" seems to solve it
I came across this and lo and behold, excessive CPU usage goes down to fairly normal 1-3% CPU while asleep by setting Email retrieval for Exchange accounts to "Push"
Edit: at least, it did for a while. Now its back to previous behaviour. I'm still investigating
Series of tests reveal that email client performs different in certain circumstances
I made a lot of testruns of about one hour to determine the effect of setting up Email Exchange clients on CPU usage and therefore battery life:
Starting point:
- Build Froyo.XWJPA
- Smallband I9000XXJPP
- Voodoo lagfix
- One Gmail account set up, syncing contacts, Gmail, Picassa, Agenda
- Tests run against two separate Exchange Server 2003 servers SP2
- CPU load determined with SystemPanel app
1. Installed Exchange account #1 without security policies. Email retrieval set to "Push".
- Email process used 0% CPU, system CPU floating around 3%
2. Set Exchange account #1 to retrieve email every hour
- Email process used 1,1% CPU, system CPU floating around 10%
3. Set Exchange account #1 back to "Push"
- Email process used 0% CPU, system CPU floating around 3%
4. Set Exchange account #1 to retrieve every 5 minutes
- Email process used 1,5% CPU, system CPU floating around 10%
4. Added Exchange Account #2 with security policy, Email retrieval set to "Push"
- - Email process used 0,5% CPU, system CPU floating around 10%
5. Set Exchange account #2 to retrieve email every hour
- Email process used 1,5% CPU, system CPU floating around 10%
So, what seem conclusions from this test:
1. One Exchange account set to `Push` doesn´t affect battery life much. 'Push' is generally considered the most battery effective.
2. One Exchange account set to some time interval does affect CPU considerably, therefore batterylife also. It's irrelevant what interval is set. The reason the total system CPU goes to around 10% seems to be that the process name ´system´ starts using several % CPU as soon as the email process does. Based on the experience that the email client is slow with an exchange account without a lagfix leads me to the conclusion the email app is performing large amounts of I/O in this setting. This link (comment 14) seems to confirm this. Experiences here (comment 15 & 16) are similar.
3. Adding another Exchange account with security policy enforced increases CPU, no matter at what interval this second account is set. This could be related to the bug found on Motorola Droid that when the Maximum inactivity time out in the Activesync properties on the Exchange server are set to a higher value than the highest supported value on the phone, the email app keeps the phone in a wake lock.
So, i just have my exchange accounts set to Never. For one account, automatic retrieval is useless anyways because mail gets delivered to subfolders (which do not sync or get pushed automatically). Fot the other, i'll just have to open the email app every now and then and let it fetch mail at that moment.
This problem doesn't seem to be limited to the Galaxy S, Motorola Droid is mentioned also in above threads.
Improved Email
I can advise everyone to look into "Improved Email" at http://www.mwebster.us/
It has the ability to sync specific subfolders, hide subfolders, apply color of your choice to the account, open up the email app in folder view, etc
Tip: first delete exisiting Exchange account and setup a new account from within the improved email app

MAJOR battery drain from Mail app

Dear all
I've only had my SGSII a week or so but have been very unimpressed with the battery life I've been achieving - not even a full working day.
I've been trying to work out what's going on, but this morning things really seemed to come to a head. I'd charge overnight but within an hour and a half of disconnecting the phone almost half the charge had gone & the back of it felt very warm to touch.
Looking at the battery stats and using the Watchdog program it looks like the Samsung Email app is to blame. I also saw the phone was marked as 'awake' much of the time, presumably due to a partial wakelock from the Mail app (battery history in Gingerbread doesn't seem to actually have partial wakelock as a category but this certainly looks like it). I've got three accounts setup in it - 2x Microsoft Exchange and 1x IMAP. Refresh times were initially push (MSEx 1)/manual (MSEx 2)/15 min (IMAP). I've tried changing them all to 15 min or to manual but it doesn't seem to improve matters. In case it is of relevance, the MSEx ones are imposing device & storage encryption as part of their policies (I've no choice in this).
Relevant screenshots below - would be grateful for any thoughts as to how and improve matters!
What firmware are you on? I believe the later ones fix the email app slightly, although I haven't seen any drain as bad as yours.
Another option, if you don't mind flashing a custom ROM, would be to install VillainROM 1.4, and use the Villain Tweaks app to get the vanilla Android e-mail app. It's what I've done, and it seems to work well!
Thanks for the reply. I'm just on the stock ROM that came with the phone (XWKE7) - both update on the phone and Kies don't report any further update being available for me (UK SIM-free unbranded).
I tried rooting this morning and used TB to freeze some of the Samsung rubbish (hubs, etc.) - however none of this made any difference to battery usage.
I wasn't sure how the stock email app handled MS Exchange accounts that required encryption? The Samsung Mail app isn't that bad, I particularly liked the split pane view - it seems really badly coded though if it's causing this!
Short of a total ROM replacement any other thoughts from anyone?
delete the data from the app
settings/applikations/all/email/ delete or wipe user data (all data).
make a new Mailaccount.
spline1 said:
delete the data from the app
settings/applikations/all/email/ delete or wipe user data (all data).
make a new Mailaccount.
Click to expand...
Click to collapse
Thanks - had been looking for this but couldn't find anything under 'Mail' - found it under 'Email' as you mention As soon as I deleted the data it recognised the device encryption policy had been removed and this triggered a decryption of system and external storage. I'll monitor battery usage for a few hours then reinstate the IMAP account and monitor things again before finally restoring the ActiveSync account.
OK definitely some progress so far - only IMAP account added just after charging stopped and battery usage has dramatically improved...
Now going to try adding an MS Exchange account!
OK, so far so good - MS Exchange account added back in and left on overnight...
I wonder if the mistake was when first setting up the account picking the special Samsung 'premium account' option??
OK - I'm now suspicious that it is manual sync setting that is causing the issue - re-added a second Exchange account and put it all to manual - phone almost totally drained in a couple of hours, with the sharp drop occuring just after I added that:
Have tried removing just that account and hope that will do the trick. If so, will then try adding it again but setting a sync time rather than leaving it on manual.
I've switched to touchdown for my corporate ms exchange account (push) instead of the samsung app.
Battery life gone from 7 hours to about 16 hours. I can't believe the native app is so thirsty. (KE7 stock)
Sent from my GT-I9100 using XDA App
What's interesting was that I was getting around 16+ hours too with the stock app having an MS Exchange account (on push peak times and 15 min other times) an IMAP on 15 min and a few Gmail accounts. It seemed to be adding the 2nd Exchange account on manual sync that sucked the battery life again. Am going to try readding it but paradoxically leaving it on a more frequent sync setting to see how that does.
If i remember correctly, it was observed that the mail app (non gmail) and wifi interact to cause a lovely wakelock, and that it happens with stock and samsung.
Maybe try something like k-9 mail?
Intersting - it certainly seems to behave like a wakelock. As I say though with one account on push and one in 15 min it was working fine - it was only when I tried to add a second exchange account on manual that I started to run into problems. Pretty poor coding on Samsung's part though regardless! Does anyone know the best way to raise these sort of issues with them?
Get in touch with Seven as well they produce the email app. I have mine on push with exchange and no bad battery drains, also I run manual when in the office once again no heavy drainage. I am on VR though.
Sent from my GT-I9100 using XDA App
alanjrobertson said:
Does anyone know the best way to raise these sort of issues with them?
Click to expand...
Click to collapse
In USA, they just introduced this
http://www.facebook.com/SamsungMobileUSA?sk=app_158125230916392
but obviously I doubt we can use this for SGS2 that is not out in the US yet.
You can however say that you are traveling, in the States right now
Thanks for the suggestions, folks - will try them. The @SamsungUK twitter account never seems to reply to any Tweets, but will see if they have a comparable FB page. Have found Seven's website so will get in touch with them too.

[Q] exchange email destroying my battery...and life

I know there are already numerous topics on this, and some temp Fixes, but I am about to just get rid of this phone, android, its so frustrating....and yes, i do need exchange email for my job,....this is whats going:
I'm seriously beyond annoyed at this point, exchange email is destroying my battery life on my nexus 4 running stock 4.2.2 (30% to 40% of battery consumption) ... I have done all the little "fixes" and troubleshooting that you can possible do to try to fix this and have spent hours searching online for any fixes, and all I have found is people having the same issue as me.....this is what I have done already:
I've removed the exchange email,
re-booted
re-added
cleared cache
clear data
re-booted
disabled
enable
set days to sync to 1 days, 3 days, automatic, etc....
check frequency to push, never, 1 hour etc....
I've disabled auto-sync data
enabled
i went to my outlook 365 web settings and under phones i deleted the nexus 4 profile..
in the exchange email settings on my phone i have used "m.outlook.com" for my server name
and the generic server name pulled from the outlook 365 web address recommended by the IT guy at my job
i have used and removed the Port "443"
the only thing i haven't done is throw the phone against the wall
oh and I have done factory reset TWICE! and that fixes the issue temporarily until this starts occurring again, oh and did i mention it gets super hot over 101°....the weird thing is I have the same exchange email setup on my nexus 7 and it barely hits 3% of battery usage, so why is my nexus 4 suffering from exchange email battery drain, and my nexus 7 doesn't? Unfortunately i work in a job where i need PUSH email on due to the industry i work in (merchants/e-commerce) my job offered to get me a company iPhone and I don't want to carry 2 phones, especially an iPhone.....anyone know any magical secret to fixing this? Or is this a 4.2+ bug that has no solution at this point....
Are you using a custom kernel? If not flash one. I recommend trinity, but test and choose which works best for you. Lower the CPU some to reduce the heating with any various app. I'm using trickster mod.
I have stock email set but I have it to manual updating. I get roughly 7-8 hours screen hours screen on time with WiFi around 5 with mobile data. Hope this helps some.
benman715 said:
Are you using a custom kernel? If not flash one. I recommend trinity, but test and choose which works best for you. Lower the CPU some to reduce the heating with any various app. I'm using trickster mod.
I have stock email set but I have it to manual updating. I get roughly 7-8 hours screen hours screen on time with WiFi around 5 with mobile data. Hope this helps some.
Click to expand...
Click to collapse
No i am running stock android 4.2.....Thanks for the advice, but I do not want to flash, root, etc... my stock nexus 4. I shouldn't have to in order to fix something that comes stock in android 4.2. I would prefer to just run the stock android and let Google deal with updates, I know android phones are awesome at customization, but I am one who likes stock android as is (nexus devices) I dont like tweaking with custom roms, no matter how stable they are, cause I always read threads on people always having issues with apps not being compatible, radio issues, manual updates on roms, etc...but I completely understand the benefits of custom roms and kernels, as you pointed out above. thanks again but this is not going to solve my issue.
I reckon I understand your feeling although the whole reason I got this device is for customization. With newer phones boot loaders being locked down and a drag to work with, this thing is great.
If you keep it stock thats fine but to save batter youd probably have to cut down a lot. Turn screen brightness all the way off, disable auto sync, disable apps you dont use so they dont run in the background. Turn off GPS and location settings unless they're in use. Stay on WiFi / 2G when not using data. Kinda a drag yano?
benman715 said:
I reckon I understand your feeling although the whole reason I got this device is for customization. With newer phones boot loaders being locked down and a drag to work with, this thing is great.
If you keep it stock thats fine but to save batter youd probably have to cut down a lot. Turn screen brightness all the way off, disable auto sync, disable apps you dont use so they dont run in the background. Turn off GPS and location settings unless they're in use. Stay on WiFi / 2G when not using data. Kinda a drag yano?
Click to expand...
Click to collapse
exactly, I mean i get the pros and cons for both stock and flashing, rooting etc....but I am no dev, and i know some of the stuff is easy to do, but I get OCD about having to worry if the kernel or ROM is up to date, will all my favorite apps work, what if I brick my phone etc....i just like the nexus devices where it is bone stock.....
as for all the other settings for saving the battery, I already do all the battery saving tips, but its funny cause they dont seem to affect the battery as much as the email exchange...i should have posted a pic...
Weird indeed. I'm using three e-mail accounts on my phone with hourly updates and it doesn't kill the battery. I still get 4 hours of screen on time (need to charge once in 24 hours usually). Did you set it so that it doesn't download attachments, pictures etc?
drbrainsol said:
Weird indeed. I'm using three e-mail accounts on my phone with hourly updates and it doesn't kill the battery. I still get 4 hours of screen on time (need to charge once in 24 hours usually). Did you set it so that it doesn't download attachments, pictures etc?
Click to expand...
Click to collapse
I am using the exchange email (yellow and white icon) that comes stock in android 4.2, and I have it set to Push notification which is suppose to help with battery, and i have turned off that setting that says "auto download attachments on WIFI only" but that setting is for WIFI only which doesnt make sense cause even with it off, when I am on regular 4G data, its still killing battery.....
I give up...maybe with all the current complaints on this issue, google may send out a new update.....
gmonterrosa82 said:
I am using the exchange email (yellow and white icon) that comes stock in android 4.2, and I have it set to Push notification which is suppose to help with battery, and i have turned off that setting that says "auto download attachments on WIFI only" but that setting is for WIFI only which doesnt make sense cause even with it off, when I am on regular 4G data, its still killing battery.....
I give up...maybe with all the current complaints on this issue, google may send out a new update.....
Click to expand...
Click to collapse
i wish i could help, but i'm using my Nexus 4 the exact same as yours (100% stock) and i've not had any of those problems (my Exchange Service is sitting at 3%), so it may not be as widespread as you think.
good luck with this though.
Question to the OP. Are you adding your exchange through the email app or in settings > accounts > corporate?
Sent from my Nexus 7 using xda premium
Lucke said:
i wish i could help, but i'm using my Nexus 4 the exact same as yours (100% stock) and i've not had any of those problems (my Exchange Service is sitting at 3%), so it may not be as widespread as you think.
good luck with this though.
Click to expand...
Click to collapse
its weird i know, but if you spend as many hours, days, searching the internet like I have, you will find how many many people are having this issue on android 4.1 and above.....My head hurts from reading so many threads with my exact issue, and people giving some temp fixes, and some fixes that didnt even work....its frustrating,
but i will say i just re-added my exchange email and chose 1 month of emails to download rather then "automatic" and so far its creeping up to 2% but getting hot.....its at 92 degrees
El Daddy said:
Question to the OP. Are you adding your exchange through the email app or in settings > accounts > corporate?
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
ah, good question, so I have tested both methods, adding it through the "corporate" option, and adding it through "email" option, both gave me identical issues....do you know which method I should be using? I mean i already tried both, and both were draining my battery but if I can just focus on just one method then it wont drive me crazy.....The only difference I notice is, when you do it through "corporate" it goes straight into the exchange settings, when you go through the "email" method it will ask you after entering the email address and password, "POP3, IMAP, and exchange...i chose exchange, and then it goes into the default exchange settings area just like the email option....
gmonterrosa82 said:
ah, good question, so I have tested both methods, adding it through the "corporate" option, and adding it through "email" option, both gave me identical issues....do you know which method I should be using? I mean i already tried both, and both were draining my battery but if I can just focus on just one method then it wont drive me crazy.....The only difference I notice is, when you do it through "corporate" it goes straight into the exchange settings, when you go through the "email" method it will ask you after entering the email address and password, "POP3, IMAP, and exchange...i chose exchange, and then it goes into the default exchange settings area just like the email option....
Click to expand...
Click to collapse
I was just curious because I use the "corporate" method with my work account, but don't have any issues. I will see heavy battery drain if our server goes down, otherwise I don't have issues.
Another thing you could try is an app from the market. I know its probably not an ideal solution, but maybe something like touchdown will alleviate the issue.
Sent from my Nexus 7 using xda premium
El Daddy said:
I was just curious because I use the "corporate" method with my work account, but don't have any issues. I will see heavy battery drain if our server goes down, otherwise I don't have issues.
Another thing you could try is an app from the market. I know its probably not an ideal solution, but maybe something like touchdown will alleviate the issue.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
yeah i am currently using the corporate method, and it still sucks battery.....but you know what I have notice, which may be a clue, the internet at my job is really really slow, our outlook emails take forever sometimes to send, receive, etc....so I am going to assume this is probably affecting my email on my phone as well....so I just set my exchange email to "never" check instead of "push" and i have told my job that their slow internet is killing my phones battery lol
Been using this phone and the stock email client for exchange since launch and have used multiple roms & kernels. Never had any battery drain issues and things were only getting better...until Monday of this week. That's when all hell broke loose. Full battery drained in record time. Overheating, barely responsive and overall just not being a good phone. Tried going back to stock and some other rom / kernel combos. Even tried a sim from a different carrier, the problem persists.
A couple days prior to phoneageddon I was prompted to setup the email app as a device administrator (See ScreenShot) a hand full of times. I usually only see this whenever I setup the account, after a wipe and whatnot. Since phoneageddon I have noticed that whenever the exchange services starts to act up, I know that sometime soon I will be prompted again. Whether or not this is related or not is unknown.
I just so happen to be an Exchange Admin at my company and know that no policy changes have been made in past couple weeks and that Windows patches were installed on the 1st.
We have ~2000 mobile devices of different flavors connecting to our mail system and so far no one else has reported a problem. Until this is resolved I have gone back to using TouchDown, no problems what so ever.
I will try to reproduce the problem fresh tomorrow or this weekend sometime and grab the logs from the server to post on here. I went through them once before and nothing stood out.
hideous said:
Been using this phone and the stock email client for exchange since launch and have used multiple roms & kernels. Never had any battery drain issues and things were only getting better...until Monday of this week. That's when all hell broke loose. Full battery drained in record time. Overheating, barely responsive and overall just not being a good phone. Tried going back to stock and some other rom / kernel combos. Even tried a sim from a different carrier, the problem persists.
A couple days prior to phoneageddon I was prompted to setup the email app as a device administrator (See ScreenShot) a hand full of times. I usually only see this whenever I setup the account, after a wipe and whatnot. Since phoneageddon I have noticed that whenever the exchange services starts to act up, I know that sometime soon I will be prompted again. Whether or not this is related or not is unknown.
I just so happen to be an Exchange Admin at my company and know that no policy changes have been made in past couple weeks and that Windows patches were installed on the 1st.
We have ~2000 mobile devices of different flavors connecting to our mail system and so far no one else has reported a problem. Until this is resolved I have gone back to using TouchDown, no problems what so ever.
I will try to reproduce the problem fresh tomorrow or this weekend sometime and grab the logs from the server to post on here. I went through them once before and nothing stood out.
Click to expand...
Click to collapse
wow sounds similar to me, its just unacceptable, and the IT guy here just informed me that he hasnt changed anything on his end, so it cant be the servers fault for the massive draining of battery on my phone, he told me all the other users with iphones, are set up the same, PUSH, and automatic email downloads, and none of them are reporting any massive battery draining.
Currently my phone is set to PUSH and 1 week of emails to download, and its already at 19% battery usage for exchange services and 18% email.....this blows...
I wonder why this is happening
Ran the stock email client with logging enabled over the weekend and was unable to reproduce the issue. So the fix is... Enable logging!
BTW, if your Exchange admin allows it, you should be able to access the Exchange Control Panel and start logging for your device yourself. Check with your Admins first!
**While you shouldn't be able to anything to destructive in the ECP, you take full responsibility for what may happen.**
How to access the Exchange Control Panel - See ScreenShot:
Log into your company's webmail (OWA)
Click Options (Top Right of screen)
Click 'See All Options'
-OR -
Directly by replacing /OWA with /ECP at the end of the URL. From this: https://email.YOURCOMPANY.com/OWA to this https://email.YOURCOMPANY.com/ECP
Once there, click Phone, find your current device in the list and click start logging.
-----
DO NOT FORGET TO STOP THE LOG!
-----
To stop logging follow the same instructions, but this time the 'Start Logging' button will say 'Retrieve Logs'. It will then email you the log file.
I was getting a 3-5mb log for 24 hours with everything working normally.
It's probably not a good idea to blindly post the log on the internet as it could have personal / company information within. Either sanitize it or if you would trust a random nerd on XDA, PM me and I can help.
hideous said:
Ran the stock email client with logging enabled over the weekend and was unable to reproduce the issue. So the fix is... Enable logging!
BTW, if your Exchange admin allows it, you should be able to access the Exchange Control Panel and start logging for your device yourself. Check with your Admins first!
**While you shouldn't be able to anything to destructive in the ECP, you take full responsibility for what may happen.**
How to access the Exchange Control Panel - See ScreenShot:
Log into your company's webmail (OWA)
Click Options (Top Right of screen)
Click 'See All Options'
-OR -
Directly by replacing /OWA with /ECP at the end of the URL. From this: https://email.YOURCOMPANY.com/OWA to this https://email.YOURCOMPANY.com/ECP
Once there, click Phone, find your current device in the list and click start logging.
-----
DO NOT FORGET TO STOP THE LOG!
-----
To stop logging follow the same instructions, but this time the 'Start Logging' button will say 'Retrieve Logs'. It will then email you the log file.
I was getting a 3-5mb log for 24 hours with everything working normally.
It's probably not a good idea to blindly post the log on the internet as it could have personal / company information within. Either sanitize it or if you would trust a random nerd on XDA, PM me and I can help.
Click to expand...
Click to collapse
Hey sorry I am a little confused about the part that says "DO NOT FORGET TO STOP THE LOG!"
So am I suppose to stop the logging at a certain point? And what is the logging suppose to do?
I went into the control panel in the web outlook, and now I am logging.....And sadly the exchange service and email are slowly creeping up to 10% battery usage, and its getting higher and higher as we speak....
I set it to default settings as i did before (Check frequency to Automatic Push) and days to sync always default to "one Month"
and its at 12% now.....this is so frustrating...and the IT guy was not helpful, he said its nothing on his end, which i can understand because this was never an issue on my phone before. now its just massive battery usage....I give up I am going to just create a bookmark shortcut and access the web outlook 365 and have to manually check every once and a while
gmonterrosa82 said:
Hey sorry I am a little confused about the part that says "DO NOT FORGET TO STOP THE LOG!"
So am I suppose to stop the logging at a certain point? And what is the logging suppose to do?
I went into the control panel in the web outlook, and now I am logging.....And sadly the exchange service and email are slowly creeping up to 10% battery usage, and its getting higher and higher as we speak....
I set it to default settings as i did before (Check frequency to Automatic Push) and days to sync always default to "one Month"
and its at 12% now.....this is so frustrating...and the IT guy was not helpful, he said its nothing on his end, which i can understand because this was never an issue on my phone before. now its just massive battery usage....I give up I am going to just create a bookmark shortcut and access the web outlook 365 and have to manually check every once and a while
Click to expand...
Click to collapse
AFAIK the logging will continue until you tell it to stop. Which means the file size will continue to grow.
You should stop logging after you have been having issues for a while and take a look.
hideous said:
AFAIK the logging will continue until you tell it to stop. Which means the file size will continue to grow.
You should stop logging after you have been having issues for a while and take a look.
Click to expand...
Click to collapse
Well I stopped it, I never got any report, or any attachments of any report...
I probably didnt do it correctly, however I am still getting high battery usage, Right now it shows Exchange service at 23% and the email usage at 21%.... phones temperature is at 92 degrees, very hot!
I just removed the account, and disabled the email service, cleared data, force stop, and it still shows that its draining the battery lol
wow I give up, My job will have to provide me with an iphone.....so i will have 2 phones YAY!

Categories

Resources