nim-uikit-android
nim-uikit-android copied to clipboard
java.lang.OutOfMemoryError: Failed to allocate a 8208 byte allocation with 2263008 free bytes and 2209KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
at java.nio.HeapByteBuffer.
你好,请问什么场景下造成的?或者有更多的堆栈信息吗
这是在友盟上看到的,没有更多的信息
从堆栈上看,Failed to allocate a 8208 byte allocation只是申请一个8K的空间,对应的SDK代码是进行将一些缓存信息保存到本地,申请的使用的空间并不大,这个地方只是一个导火索,主要还是APP层面的内存占用要排查一下,在这个时候只剩下2M的内存空间了。当然,这个地方我们后续会继续优化,尽量更高效的使用内存