Hi, Weex Team: I am using Weex in my Android App, hybrid way. When I keep opening and closing the Weex page in my App, I found the "Java Heap Memory" is fine, but "Native Memory" keep growing util it reach about 140Mb on Nexus 6 Plus.(The max memory depends on what kind of device I use.)
After that, I tested the Playground App from https://github.com/apache/incubator-weex/tree/master/android, still have memory problem. The native memory of Playground will grow from 12mb to 100+mb, on Nexus 6 Plus, and it happened on other devices too. The way I monitor native memory is: 1. adb shell dumpsys meminfo pagekage name 2. Android Studio 3.0 Profiler ====================== My Environment is: Mac OS 10.12.5 Android Studio 2.3, Gradle 2.3.3 / Android Studio 3.0 beta, Gradle 3.0 ​Nexus 6 Plus Android 7.1.2 weex sdk: 0.11.0 / 0.12.0-rc5 ===================== The way I using weex page is creating an activity extends from AbstractWeexActivity, and init the Weex Environment in application. I've tried to debug to find out solution: e.g: 1. Calling WXSDKEngine.reload() after closing the weex page, It turns out that: Native Memory grow even faster. 2. Calling WXSDKEngine.restartBridge(), doesn't work. 3. Trying to find release memory method in WXBridge and WXBridgeManager, doesn't work. ====================== Now I am trying build and debug js engine found here: https://github.com/alibaba/weex_js_engine . There is only few document online about weex development. Maybe my way of using is weex is wrong. But I've spent hundreds of hours on this problem, hope it can be know by more people. Sincerely Chris.
