Android Question Webview gc_concurrent

Discussion in 'Android Questions' started by mediait, Mar 28, 2015.

  1. mediait

    mediait Member Licensed User

    I have a small app that uses two webviews that can either display a fullscreen image or video. The loaded pages have a javascript timeout which calls the app and the app fades in one webview and fades out the other (which then reloads) continuously. I've had the app running upto 12 hours.

    The app also has a service running checking for internet connection.

    The problem, if it is a problem, is every couple of minutes I get
    GC_CONCURRENT freed 385K, 14% free 3211K/3716K, paused 1ms+1ms, total 16ms (different percentages and different times)

    From what I've googled this means that the heap is full and the garbage collector is freeing memory.

    Should I be concerned?

    Why is my heap only 3716K when I've seen examples of heap sizes upto 48M?

    I've placed android:largeHeap="true" in the manifest to get bigger heap size but nothing has changed in the gc_concurrent freed statement.

    Although I've had the app running long times there has been a couple of times the app has just stopped with no error or explanation.

    I have also read that the android webview component itself suffers from memory leaks. Is this true?

    I hope someone can give me some advice as I have run around in circles for quite a while.

    I am using a CS918 4.4 2Gb ram tv box.
  2. Erel

    Erel Administrator Staff Member Licensed User

    If you haven't experienced any memory crashes then you should ignore these messages.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice