Menu

iPhones very hot

Maxxer
2014-06-23
2015-08-12
  • Maxxer

    Maxxer - 2014-06-23

    Hi. I've an installation with the latest zpush and backend working fine. In the begining I had set SYNC_FILTERTYPE_1MONTH, because it was used by phones only. Then since when we introduced OLK I changed it to SYNC_FILTERTYPE_ALL, in order to be able to have ALL the mails in Outlook.
    Since then the iPhones syncing to that z-push started getting "mad" and syncing a lot, the phones become hot.

    Anyone experiencing similar behavoir? SYNC_FILTERTYPE_ALL is the default setting for z-push so I expect it to be widely used.
    I double checked on the phone, the requested data is set to two weeks.
    I even issued a resync, sadly with no luck.

    Any idea what could it be?
    thanks

     
  • LiverpoolFCfan

    LiverpoolFCfan - 2014-06-23

    The problem I believe is related to GetItemEstimate requests. Even though the Sync requests send over a limit (2 weeks), ever since z-push 2 was released and allowed SYNC_FILTERTYPE_ALL, it implemented the GetItemEstimate request as a call to GetMessageList with no cutoffdate.

    For the zimbra backend implementation, this results in repeated calls to GetMessageLists to cycle through all messages in the folder 500 at a time. In the case of a very large mailbox, this can result in the response not being generated by z-push within the time allowed by the client to expect a response. The device will treat it as a temporary problem, and will re-issue the GetItemEstimate request again, which will timeout again, over and over.

    So, the device never gets to shutdown the communications and as a result it gets hot and runs down the battery.

     
  • Maxxer

    Maxxer - 2014-06-23

    Talking on IRC it seems I'm the only one having this issue. I tried doing a "remove" for those users, I'll wait for some feedback by the customer.
    Right now "top" reports pretty good ping times, like 15 minutes, and wbxml log is mostly silent.
    thanks for the feedback, I'll report back

     
  • Jérémy

    Jérémy - 2015-08-12

    I have the problem too. Many smartphones are hot, Android and iOS.

    12/08/2015 16:45:45 [18101] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:45 [18101] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:46 [18032] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:46 [18032] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:46 [ 6625] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:46 [ 6625] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:47 [ 4181] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:47 [ 4181] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:47 [ 5617] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:47 [ 5617] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:48 [ 1567] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:48 [ 1567] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:49 [ 2683] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:49 [ 2683] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:49 [18123] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:49 [18123] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:50 [ 2855] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:50 [ 2855] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:50 [18235] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'
    12/08/2015 16:45:50 [18235] [INFO] [jeremy] ExportChangesDiff->InitializeExporter(): Found '2' changes
    12/08/2015 16:45:51 [ 2829] [INFO] [jeremy] Version='2.2.1-1939' method='POST' from='86.218.0.0' cmd='Sync' getUser='jeremy' devId='android1425471587327' devType='Android'

    Sometimes I have this :
    12/08/2015 16:33:30 [18123] [WARN] [jeremy] SyncAppointment->Check(): Parameter 'organizername' and 'organizeremail' should be set for a meeting request

     
    • LiverpoolFCfan

      LiverpoolFCfan - 2015-08-12

      You should open a new ticket for a new issue.

      In this case it seems like your state file(s) might be corrupted, or not updating correctly as it keeps trying to sync the same items.

      You could try resyncing that device with

      z-push-admin.php -a resync -d android1425471587327 -u jeremy

      and see if it resolves it.

      If it doesn't then you will need to turn up debug level logging to see if you are getting other errors.

       
    • LiverpoolFCfan

      LiverpoolFCfan - 2015-08-12

      Also, make sure you are not out of disk space on the drive where z-push is storing it's state files.

       

Log in to post a comment.