[ 
https://issues.apache.org/jira/browse/CB-12634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mindteck updated CB-12634:
--------------------------
    Attachment: dgijajid.png
                fcfbdbgc.png
                edgefied.png
                dgbbbbai.png
                fjjjehid.png
                adcjcead.png
                jbadeibh.png

Hello,

Our configuration:

  * *Cordova version 6.3.1 *
  * *Cordova Android platform version 5.2.2.*


We are running the Cordova app on Android 4.4.2.

We are using following memory profiling tools:

  * *Chrome developer tools*
  * *System Monitor Android App*
  * *System Info for Android*

Same scenario we have observed with a  Cordova Test Application (Default 
app when we create a Cordova project for Android)
In our Test Application, we have a button which initiates web page 
(chromium browser) . On Button click whenever the Cordova web page is 
loading it is taking close to ~42MB of memory. Now if we exit from the 
cordova page and back to android native screen that MB is not fully 
recovered. If we continue this type of testing i.e, entering and exiting 
from the cordova page continuously is causes a huge memory leak in our 
app. On each click we have found ~1MB memory is increased when Cordova 
page is reloaded.

_*Queries:*_

 1. Default browser of Cordova is *Chromium*. Is there any other way to
    change the default browser for Android Applications?
 2. Android 4.4.2 version is using the *chromium version 30.0.0.0*. Does
    this version of Chromium version have any leaks?
 3. We are using "_*sendPluginResult*_" API in a repeated interval (say
    after every 200ms) to send the data from "Native JAVA" side to the
    "JAVA Script" side. Do you think it may cause any huge memory
    consumption?
 4. Please suggests if there are any other *Memory Profiling tools* 
    which can be used in our environment.



-- 
Thanks,*
Argha Banerjee*/
Senior Software Engineer, Analytical /

Millennium City Information Technology Park,
Tower II, Sector V, Salt Lake,
Kolkata 700091, India

Tel. +91 33 2367 4337 Ext: 119
Mobile: +91 9051154155
Email: [email protected]
_Website: www.mindteck.com <http://www.mindteck.com/>



/*Disclaimer: *//This message is for the named recipient(s) above and 
may contain confidential, proprietary or legally privileged information 
of MINDTECK. If you have received this message in error, please 
immediately delete all copies of it, and notify the sender. Do not 
disseminate this message to anyone if you are not the intended recipient./



> Huge memory usage in Cordova android platform
> ---------------------------------------------
>
>                 Key: CB-12634
>                 URL: https://issues.apache.org/jira/browse/CB-12634
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Browser, CordovaLib
>            Reporter: Mindteck
>         Attachments: adcjcead.png, dgbbbbai.png, dgijajid.png, edgefied.png, 
> fcfbdbgc.png, fjjjehid.png, jbadeibh.png
>
>
> Our application consist of following components:
> 1. Android Native code + Java Jar
> 2. CordovaLib + Own created Cordova plugin
> 3. JavaScript, HTML, CSS
> In our android screen we have a button which initiates web page (chromium 
> browser) where we need to draw some graphs and digits on a certain interval. 
> Those data are receiving in Android native end from a remote device & we are 
> passing those data to the web page through cordova plug-in.
> On Button click we are initiating Cordova plug in along with web page.
> whenever  the plugin is initiating  and the Cordova web page is loading it is 
> taking close to 50MB of memory. 
> Now if we exit from the cordova page and back to android native screen that 
> 50MB is not fully recovered. If we continue this type of testing i.e, 
> entering and exiting from the cordova page continuously is causes a huge 
> memory leak in our app. 
> Questions:
> 1. Is it the usual behavior in cordova? 
> 2. As multiple Threads are running in CordovaLib framework, so when we are 
> exiting from cordova screen what is the status of those internal Threads? Are 
> those threads still running in the background even if we are exiting from 
> cordova webview to android native page?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to