This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memory leaks?

Hi
I've noticed, that after killing processes of Connect it restarts automatically and takes about 50-60 MB of RAM on my phone just after restart. But after couple of hours, memory usage grows to 150, 200, or even 400MB (that is my record).
Is it normal?
Just after restart, Connect starts immediately. But when background processes take 100-200 MB of RAM, it takes about 40-60 seconds to run it.
My phone: Sony Xperia Z Ultra, Android 5.1.1
  • Former Member
    0 Former Member over 9 years ago
    I encounter the same issue! I looked here in the past to see if any posts about it showed up.

    For me Garmin Connect normally runs with 35-60 MB Ram. After some time or due to some unknown interaction, the RAM rises to ~150 MB (up to 260). It totally hogs my phone down: everything becomes very slow and apps have to redraw or get killed. Quite annoying!

    I haven't been able to pin point the reason for this memory leak. I end up manually killing the app and restarting it. Sometimes that leads to Garmin Connect asking for notification access again (although it is already given; I have to uncheck en recheck to make smart notifications work again).

    For reference: I have a Moto G 2013 (1GB RAM) running KitKat 4.4.4 rooted
  • Same problems here. I'm using a Motorola Droid Turbo. While updating to Lollipop has solved bluetooth connectivity problems, I have a memory leak as well. I rarely see memory usage below 50mb, but I have seen over 500 mb. Most of the time it takes multiple launches to get the app to open.
  • I've just wrote a tasker's task to kill Connect with a shortcut on my desktop. It auto restarts after that with 30-50 MB memory usage. I need to run it every couple of hours.

    Garmin devs - are you aware of the problem? Is there any work-in-progress to solve that?
  • Former Member
    0 Former Member over 9 years ago
    For me the problem is fixed since the 3.20 firmware (Vivoactive). I don't see any memory build-up anymore. The Connect app uses about 55mb most of the time.
  • I've got 3.30 on my Vivoactive and the latest Android app. Connect Mobile is still able to eat my 200-400 MB of RAM.
  • Former Member
    0 Former Member over 9 years ago
    Yes, we are aware of some memory issues and are working to track them down. At least one leak will be addressed in the next release.
  • I encounter same problem with Zenfone 2 and latest Garmin Connect release. It started with relaunch of Connect app. After two days after restart Garmin service uses 600-700MB memory and while you try to start the app you get just a black screen and nothing happens. I really hope for a speedy fix from Garmin team as it is really boring to restart the phone every week.
  • Exactly the same thing on my Nexus 5! 630 MB of RAM usage (latest version).



  • Former Member
    0 Former Member over 9 years ago
    A few questions that will help us track down leaks:

    What Garmin device are you using with Connect Mobile? What Android version? How do you typically use the app? What parts of the app do you use the most?

    Thanks
  • What Garmin device are you using with Connect Mobile? What Android version? How do you typically use the app? What parts of the app do you use the most?


    wow, thanks for actually caring :-) currently using android 6.0.1 (build MMB29K, stock android for nexus 5, not rooted), i always have my 920XT connected (Software version 6.10.. This is actualy the most part i'm using about the app.. it runs in the background and syncs my activity reports (workouts as well as steps).. and handles notifications (hangout messages, calls are forwarded to my 920xt). I think last time I actually did not open the app until i discovered it uses an insane amount RAM. Unfortunately i have since killed the app.. (i'm pretty sure it was running continuously for weeks) - since my last post it is now running at a 100MB, which is still quite a bit (But I did use the app yesterday to do a bit of activity editing for like 10 minutes). I guess in a few weeks i can give you more useful memory footprint when it is back at 600 :-P but right now this is what my meminfo returns:

    Herbys-i7:platform-tools herbert$ ./adb shell dumpsys meminfo com.garmin.android.apps.connectmobile -d
    Applications Memory Usage (kB):
    Uptime: 231740686 Realtime: 429887809

    ** MEMINFO in pid 15523 [com.garmin.android.apps.connectmobile] **
    Pss Private Private Swapped Heap Heap Heap
    Total Dirty Clean Dirty Size Alloc Free
    ------ ------ ------ ------ ------ ------ ------
    Native Heap 21515 21460 0 0 58880 24599 34280
    Dalvik Heap 39885 39812 0 0 49091 32850 16241
    Dalvik Other 3636 3636 0 0
    Stack 668 668 0 0
    Ashmem 2 0 0 0
    Gfx dev 6384 6384 0 0
    Other dev 8 0 8 0
    .so mmap 391 152 8 0
    .apk mmap 63 0 8 0
    .dex mmap 344 8 336 0
    .oat mmap 498 0 96 0
    .art mmap 1969 1448 320 0
    Other mmap 10 8 0 0
    EGL mtrack 15360 15360 0 0
    Unknown 180 180 0 0
    TOTAL 90913 89116 776 0 107971 57449 50521

    App Summary
    Pss(KB)
    ------
    Java Heap: 41580
    Native Heap: 21460
    Code: 608
    Stack: 668
    Graphics: 21744
    Private Other: 3832
    System: 1021

    TOTAL: 90913 TOTAL SWAP (KB): 0

    Objects
    Views: 1515 ViewRootImpl: 0
    AppContexts: 62 Activities: 5
    Assets: 10 AssetManagers: 6
    Local Binders: 36 Proxy Binders: 38
    Parcel memory: 23 Parcel count: 94
    Death Recipients: 1 OpenSSL Sockets: 0

    SQL
    MEMORY_USED: 216
    PAGECACHE_OVERFLOW: 22 MALLOC_SIZE: 419

    DATABASES
    pgsz dbsz Lookaside(b) cache Dbname
    4 20 14 0/18/1 /data/user/0/com.garmin.android.apps.connectmobile/databases/gcm_swings.db
    4 2688 254 819/225/25 /data/user/0/com.garmin.android.apps.connectmobile/databases/gcm_cache.db

    Asset Allocations
    zip:/data/app/com.garmin.android.apps.connectmobile-2/base.apk:/assets/fonts/Roboto-Regular.ttf: 159K
    zip:/data/app/com.garmin.android.apps.connectmobile-2/base.apk:/assets/fonts/Roboto-Light.ttf: 113K
    zip:/data/app/com.garmin.android.apps.connectmobile-2/base.apk:/assets/fonts/Roboto-LightItalic.ttf: 163K
    zip:/data/app/com.garmin.android.apps.connectmobile-2/base.apk:/assets/fonts/Roboto-Italic.ttf: 158K
    Herbys-i7:platform-tools herbert$