Possible cause for the system server CPU spike at bootup? - Touch Pro2, Tilt 2 Android Development

I'm wondering if I have found the cause of the notorious problem with the system server taking up 100% of the CPU at bootup. It seems to correlate with gmail accounts, or exchange accounts syncing at bootup.
To try and figure out what what causing the problem I started with a fresh install of FRX03 (using the latest kernel, 1253) and slowly added back my programs and settings, rebooting as I added things. Only after configuring my gmail account for the first time did I experience the lag. I then changed my gmail to not sync anything and the lag issue went away. I then added my exchange account and the lag issue came back.
After configuring my exchange account to sync on a schedule instead of push mode I've been able to reboot five times with absolutely no lag. I did experience the lag isue one time, but prior to changing my account settings I had to reboot four or fives times just to get the phone working.
For anyone having the issue, please try disabling sync on your exchange and gmail and let me know the results.

toadlife said:
I'm wondering if I have found the cause of the notorious problem with the system server taking up 100% of the CPU at bootup. It seems to correlate with gmail accounts, or exchange accounts syncing at bootup.
To try and figure out what what causing the problem I started with a fresh install of FRX03 (using the latest kernel, 1253) and slowly added back my programs and settings, rebooting as I added things. Only after configuring my gmail account for the first time did I experience the lag. I then changed my gmail to not sync anything and the lag issue went away. I then added my exchange account and the lag issue came back.
After configuring my exchange account to sync on a schedule instead of push mode I've been able to reboot five times with absolutely no lag. I did experience the lag isue one time, but prior to changing my account settings I had to reboot four or fives times just to get the phone working.
For anyone having the issue, please try disabling sync on your exchange and gmail and let me know the results.
Click to expand...
Click to collapse
I don't use gmail, so i don't sync it. I use hotmail and it syncs everything 15 minutes. I experience lag for about 1 min after booting and after that it works just fine.

Hrm, never heard a theory that it's based on GSync.
I think it's related to netloc - I've heard when GSM guys disable it, the bug all but goes away.
CDMA, unfortunately netloc doesn't work... so it's always off for me, and I definitely experience the bug.
Calling voicemail always clears it up for me.
Some have said opening Google Maps/Places fixes it too, but it doesn't for me - I'm wondering if it's GSM guys that is working for... I'd bet my left kidney.

The calling voicemail trick works for me too, but sometimes the phone is so hosed that my phone dialer crashes and I have to reset. I'll report back the next time I have time to reboot.

And just like that I'm experiencing the problem again.
*facepalm*
Oh well!

arrrghhh said:
I think it's related to netloc - I've heard when GSM guys disable it, the bug all but goes away.
Click to expand...
Click to collapse
netloc = network location?
I cleared the data for network location in application settings and then rebooted and the problem didn't happen so maybe that is it. I keep doing that regularly and see if it continues to work.

arrrghhh said:
Some have said opening Google Maps/Places fixes it too, but it doesn't for me - I'm wondering if it's GSM guys that is working for... I'd bet my left kidney.
Click to expand...
Click to collapse
For me the Google maps trick works.. takes longer then calling voicemail tho, cause it's a drag to navigate to google maps when everything is in slowmotion, and all I want is fastforward...
Takes a couple of times before it finds my location btw, first few clicks say location not available. But voicemail always does the trick

vmail does the trick
usually when it boots up into No Service, i wait for the 3g signal to come in before dialing. actually put a direct contact just for dialing hahaha

Naadi900 said:
For me the Google maps trick works.. takes longer then calling voicemail tho, cause it's a drag to navigate to google maps when everything is in slowmotion, and all I want is fastforward...
Takes a couple of times before it finds my location btw, first few clicks say location not available. But voicemail always does the trick
Click to expand...
Click to collapse
Are you on GSM?

I have this issue again with top showing system_server is constantly consuming around 50% CPU, this coupled with user CPU processes leaves my CPU pegged above 95%. As a result my phone is terribly slow and batt drains fast. I'm on Android stock unrooted 6.01 with a Galaxy note 4.
Sent from my SM-N910V using Tapatalk

Related

[Q] Android mail eating battery! Please help!

This may have been addressed, but a search didn't reveal anything exactly like this. Please bear in mind that I'm an Android newbie!
I bought the Incredible 2 last Thursday. No rooting, nothing weird, still mostly stock. This morning it's running very slow, screen transitions jerky, etc. and even text based email takes minutes to open. I messed around in settings, and notice that Mail (com.htc.android.mail) is using 48% of my battery, more than twice what the screen is using! I force close, and the phone speeds right up, lag is gone, screen transitions smooth but, minutes later, Mail comes back on line and the phone goes to crap.
I've used more that 1/2 my battery in two hours. I notice that the uptime is 1 hr 58 minutes, and the awake time is 1 hr 44 minutes, so I assume that the mail app is also preventing the phone from sleeping.
Any advise will be greatly appreciated!!
This may sound obvious, but did you try resetting your phone? Turn fastboot off (settings > applications > click fastboot so it is unchecked) then kill mail, and before it has a chance to restart hold the power button, then shut down. The restart option might work, but for things like this I prefer a good old fashioned power down, power up. Anyways, power your phone back on by pushing the power button for two seconds or so. Then see how it goes. This is an error that I have not heard about, but a reset is a universal problem solver. If it doesn't work, tell us what kind of email accounts you have set up (pop, imap, exchange) and how many, and also the settings for checking the mail.
Hopefully the restart will fix it though.
Sent from my Incredible 2 with Xda app
Thanks! My limited Android knowledge told me to try a restart, but I actually didn't know how on the Incredible 2!!
Anyway, the problem went away for a couple hours, then came back!
I use a POP server for my work email, and gmail for personal. I really don't understand this, as nothing has changed since yesterday, but the phone has slowed to a crawl!
Try a third party email app. I don't know of any offhand as I only use gmail on my phone. My gmail account checks my imap account on another host so it's all together, and I can distinguish which account is which on the emails through gmail tags.
Umm I think this will require a factory reset, because you can't uninstall stock mail nor freeze it without root
Sent from my ADR6350 using XDA App
You can temp root, and freeze the stock mail app if that is the way you decide to go. Instructions found here http://forum.xda-developers.com/showthread.php?t=1068544. But that sounds more like something faulty with the software, because like I said, I have never heard of that happening before. I would take it back to Verizon, complain incessantly, and point out that you could have fixed it yourself if the phone had an unlocked bootloader
Do you have them set to check mail constantly, push, or are they on a delay? Can you use imap for work instead of pop? I have four accounts set up on mine, including an exchange, and three imap accounts. The fact that it just started happening leads me to believe something broke in the system, though. A factory reset and re-flash may indeed fix the problem. Also, do you have good 3g coverage most of the day? Check your time without signal under battery status in settings. Click on cell standby and it should give it to you. Or are you using wifi most of the day?
Sorry for the rambling questions, just writing stuff out as I think of it. Trying to narrow down what the problem could be.
Thanks, again.
I'm using the mail settings that the school requires, so can't change them. Currently set only to update when the app is opened.
I generally get good cellular reception at work, and I have wifi as well. I've been trying it with or without wifi today, with no changes. I'll try a reset and see if that helps.
I just mentioned trying another app because I don't see these problems and I do not have the stock mail app configured in any way.
RobWoodall said:
Thanks, again.
I'm using the mail settings that the school requires, so can't change them. Currently set only to update when the app is opened.
I generally get good cellular reception at work, and I have wifi as well. I've been trying it with or without wifi today, with no changes. I'll try a reset and see if that helps.
Click to expand...
Click to collapse
Factory reset should probably fix it
Sent from my ADR6350 using XDA App
RobWoodall said:
This may have been addressed, but a search didn't reveal anything exactly like this. Please bear in mind that I'm an Android newbie!
I bought the Incredible 2 last Thursday. No rooting, nothing weird, still mostly stock. This morning it's running very slow, screen transitions jerky, etc. and even text based email takes minutes to open. I messed around in settings, and notice that Mail (com.htc.android.mail) is using 48% of my battery, more than twice what the screen is using! I force close, and the phone speeds right up, lag is gone, screen transitions smooth but, minutes later, Mail comes back on line and the phone goes to crap.
I've used more that 1/2 my battery in two hours. I notice that the uptime is 1 hr 58 minutes, and the awake time is 1 hr 44 minutes, so I assume that the mail app is also preventing the phone from sleeping.
Any advise will be greatly appreciated!!
Click to expand...
Click to collapse
I've had the Inc 1 and now the two. I've always turned off the (auto sync) this would require yyou to open your mail and manually refresh or of you use the sync all widget it works that was as well. Seems to save a ton of battery only drawback being you have to manually check it. Ie. No mail notifications. Just a thought maybe you want to give it a shot.
Thanks, everyone. Using a combination of all your advise, the problem is resolved. I factory reset the phone, then installed only my gmail account. This worked fine all of yesterday, so I finally got off my butt and learned how to use gmail to read and send my work email last night. That seems to be working well. I'm still getting email notifications, but gmail is only using 3% of my battery, as opposed to the 48% that Android mail was using.
Still don't know what caused the trouble, but I'm very pleased with the solution.
Thanks again!!
Email battery problem also on Nexus S
I have also the problem that the standard email is consuming the biggest part of the battery - mostly over 50%. I use an exchange account and a pop email, but both not synchronized automatically (manual sync interval), and I do not use them so often - max. one sync a day...
Anyone an idea how to improve this?
Please use the Q&A Forum for questions Thanks
Moving to Q&A
HTC mail has always been a battery drainer for me. I just use the Gmail app.
AgalychnisCallidryas said:
HTC mail has always been a battery drainer for me. I just use the Gmail app.
Click to expand...
Click to collapse
Or k9 mail....just set the settings to update manually...
Gmail is the only non battery hog.
Sent from my Incredible 2 using xda premium
K-9 Mail
I had also the problem (as mentioned above) with the standard android email programm and a so related short battery life. Since I deleted all email configurations there and installed K-9 mail client instead, battery life improved a lot. Before I could use my phone about 2 days, now it lasts for around 5-6 days...

No background sync or notifications for push apps

Not sure if anyone else is experiencing this, but in the hopes that they are, I'm posting this. For some reason, I'm not getting any notifications for push apps. Specifically for me, its Gmail, Google Voice, and FB Messenger. The apps aren't even syncing. I have to manually go into each app and tell it to sync.
I've had Gmail and GV sync for a little while after a ROM flash, but it never lasts more than a half hour or so.
Any ideas?
Not sure what rom u are using, or if you are using titanium to restore apps... but try settings>apps>gmail (or other apps) and choose to clear data, NOTE: you will have to re-sync accounts by going to settings>accounts and sync and enter ur info. your contacts will disappear for a short time while it re-syncs. its worked for me on previous devices after flashing a new rom, not sure if it will work here....
Check what kind of Internet connection you have: settings>wireless&networks>more>mobile networks>acces point names. The one working is net.
Any luck with this? I'm having the same issue.
I tried moving the gv app to /system/app but it didn't fix it.
Make sure you aren't disabling sync via the power widget.. it sounds obvious but it happened to someone
Sent from my Galaxy Nexus using xda premium
having the same issue, sometimes sync even work really bad when screen on, but mostly occurred when screen off. Stock kernel
joshdu1125 said:
having the same issue, sometimes sync even work really bad when screen on, but mostly occurred when screen off. Stock kernel
Click to expand...
Click to collapse
Similar problem here as well. Google Talk only seems to give me a notification when I turn the screen on. Just got my gnex last week and running stock jb now (only rooted).

GTalk and push notifications stopped working, help?

Alright, I have a truly annoying problem with Galaxy Nexus. After every month or two of use my phone loses completely the ability to connect to gTalk and push cloud to device messages. I'm not using any strange apps either and have not installed anything for a while.
My connection bars become grey and before someone suggests that this is an account issue and that 'I have lost connection to Google servers' then no: bars are only grey on Galaxy Nexus when gTalk and C2DM fail. Bars are grey but I can still access Market and Gmail and my phone still syncs Calendar and Contacts.
The only solution so far has been to completely reset the phone. Which is an epic annoyance. I've tried re-adding Google account and no success there either.
What can I do without having to reset my phone again?
So there is no solution whatsoever? It is impossible to fix this without having to reset the phone?
I ended up resetting the phone again and it is truly annoying, since this problem happens only after a month or two and nothing triggers it and the connection does not return even though sync with Google accounts works perfectly.
Might the problem be that I change my SIM card whenever I visit Finland and Google has some unknown security flag that blocks C2DM when same device is using different SIM's frequently?
Because this is insane and I feel like I can't do anything about it.
Don't have your problem, bars turn grey here every now and then but always go back to blue after a few seconds.
Two SIMs might certainly confuse the syncing. Go to Google Dashboard and make sure your phone is listed there. Only the IMEI is listed in Dashboard, though. In the Market it also lists your provider and number, I think.
Obviously you have checked all your accounts&syncing options in the ICS settings?
Rebooting and switching to airplane mode oder WiFi and back does not work either?
Valynor said:
Don't have your problem, bars turn grey here every now and then but always go back to blue after a few seconds.
Two SIMs might certainly confuse the syncing. Go to Google Dashboard and make sure your phone is listed there. Only the IMEI is listed in Dashboard, though. In the Market it also lists your provider and number, I think.
Obviously you have checked all your accounts&syncing options in the ICS settings?
Rebooting and switching to airplane mode oder WiFi and back does not work either?
Click to expand...
Click to collapse
Nope. It's happened three times now since I've owned the phone and I've not installed anything fishy, nor do I run any monitoring and task manager or battery saving apps. I basically run all Google services, as well as Twitter, Facebook and some games. I haven't recently installed anything new.
Airplane mode did not work, WiFi or Data modes had the same issue and reboots made no difference either. Internet itself works, auto sync keeps working and Calendar, Gmail and Android Market work exactly as expected. But gTalk and push notifications stop working and do not return even in 24 hours.
The only thing that I do know that I do differently from an average user is that I switch SIM card either for every weekend or every other weekend when visiting my girlfriend in Finland, since I'm using a pre-paid SIM there (that also has data connection).
I don't have any sync or push notifications problems when using either SIM and both have an unlimited data plan. But after about 1-1.5 month suddenly gTalk and push notifications stop working entirely.
As a result I am keen to think that this must be about the SIM card switching (it happened after SIM card switch or close to it), but I don't know how to fix this. Phone reset does work, so it is certainly something that has not got anything to do with my Google Account.
I even tried clearing data and force stopping all Google-related services and apps and rebooted then. It asked for my account information and whatnot again, but the connection stayed grey while other Google account related services were running without issues.
It's a serious pain to reset my phone every month or two.
I am convinced that this is a bug in Android and reported it here.

[Q] Email probs on stock GS3 after 4.1.2 upgrade

Greetngs. Manually loaded the zip the other day for 4.1.2 on my completely stock Sprint GS3. Other than the normal "holy crap" battery consumption for the first couple of cycles and the fact that I could cook a grilled cheese sandwich on it, everything's been OK except for these two problems:
1. This was the easy one. AVG AntiVirus Pro didn't like something on the update and it was stuck WFO and draining the battery in about an hour. Interestingly simply looking for running apps in the stock applications area didn't show anything. System Panel did. I deleted the AVG, reloaded it and all is well.
2. This one's not resolved. I've Googled as well as searched XDA and can't find an answer. Short version is that regardless of what my mail settings say, it's not going out for a sync to my Gmail accounts, nor AOL (I know....) and my Exchange account isn't getting "pushes" either. I've gone through the global mail settings as well as those for each account. All set to push if possible or 15 min if not. Everything is "prime" so it's not some goofy issue with being outside of prime or roaming. Roaming has all the same settings.
I can manually hit a refresh and it works fine, but it's obviously not supposed to work that way (at least it never has).
Any thoughts? Oh...and I've done a battery pull...haven't done a hard reset but I doubt that's an answer for this.
Thanks for your help.
bj
Aha! It seems as though the update turned off the "global" sync (on the scrolling drop down tool bar at the top of the screen). That said, it also defaulted all my sync options to "disabled".
Better now!
PLEASE REACH ME VIA EMAIL AT [email protected] AS OPPOSED TO PM. THANKS.

Gmail not syncing properly since system update

Hey guys,
A few weeks ago my Verizon Samsung Note 4 received an OTA update - nothing major, I believe it just added some security patches and removed some bloatware. But since then, my gmail app has not been syncing properly.
The sync is definitely still ON, because it does sync sometimes but it's very sporadic. But it's not syncing as soon as emails come in, and often it will take a couple hours for new emails to show up (which I can see if I'm home near my computer). Some mornings I'll wake up and my emails from overnight will be there, and some mornings, nothing will have synced from overnight.
And as far as I can tell, there's nothing specific that finally prompts it to sync (in other words, turning my phone on, or simply opening gmail doesn't make it sync. It just seems to be totally random).
Any ideas on how to fix this? Thanks!!
Dude I though it was me.. I been having the same problem. Anyone else having this problem and figured it out?
Same
I got the 5.1.1 update 8 days ago and exact same issue. I've been through 3 factory resets both using previous backups and starting fresh. Also used troubleshooting fixes from other posts... clearing data, clearing cache, turn sync off/on, removed/added Google account, etc. Nothing so far
Same issue here...
Strange. I've also taken the update (actually, if memory serves, there were 2 updates within a couple of weeks) and aren't experiencing the problems you all are seeing. I know, that doesn't help you any.
Hmm, well it does help to hear from others that are having the same problem, so at least I'm not driving myself crazy trying things that won't fix it! Thanks for the replies.
And of course, if anyone has any solutions, I'd still love to hear from you too . . .
I know this also is not much help, but I've sent an email to the Dev but no reply yet...
Same here in note 3 and since updating gmail app my gear 2 no longer gets notications from gmail even when gmail DOES show up on phone notifications.
Leave it to Verizon to screw everything up after finally making some big progress with the first 5.1 update. That update fixed SO MANY issues I was having with the phone. I was ready to switch to a new one, but the update made me want to keep it. Then I wake up to see this latest 2nd update was installed without it asking me, and now I am having major issues with things like Gmail not syncing, but also answering a phone call is horrendously bugged. I will have to swipe the green answer button like 8 times before it actually picks up the freaking call. My wifi will randomly stop sending and receiving any packets and my signal will just drop out completely, airplane mode doesn't fix it and it requires a hard reset. Like holy hell Verizon, what the actual freak do you guys do to your phones...

Categories

Resources