android - GC_FOR_ALLOC freed 6346K, 7% free , paused 143ms, total 143ms(android - GC_FOR_ALLOC 释放 6346K, 7% free , paused 143ms, total 143ms)
问题描述
我正在使用 OSMdroid 库开发离线 mapView.我的 tilesource 加载了瓷砖,但呈现稳定退出.但事实是在我的日志消息中,我不断收到此错误:
GC_FOR_ALLOC 释放 6346K,7% 空闲,暂停 143ms,总共 143ms
我不确定如何调试它?任何想法,我是否有任何内存泄漏?
这不是错误,而是垃圾收集器运行的信息.
如果您看到很多这样的情况,这可能意味着您进行了很多分配或内存不足.您应该尝试提高程序的内存性能.
有一个很好的关于调查 Android 中 RAM 消耗的来源信息:
https://developer.android.com/tools/debugging/debugging-memory.html一个>
还有一份关于在 Android 中管理内存消耗的一般策略的文档:
http://developer.android.com/training/articles/memory.htmlp>
I'm developing an offline mapView using OSMdroid Library. My tilesource loads the tiles but renders quit steadily. But the fact is in my log messages, I keep getting this error:
GC_FOR_ALLOC freed 6346K, 7% free , paused 143ms, total 143ms
I'm not sure how to debug this? Any ideas, do I have any memory leaks?
This is not an error, but an information that Garbage collector has run.
If you are seeing a lot of those, it might mean that you are making many allocations or have little memory. You should try to improve your program's memory performance.
There is a good source information about investigating RAM consumption in Android:
https://developer.android.com/tools/debugging/debugging-memory.html
There is also a document about general strategies for managing your memory consumption in Android:
http://developer.android.com/training/articles/memory.html
这篇关于android - GC_FOR_ALLOC 释放 6346K, 7% free , paused 143ms, total 143ms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:android - GC_FOR_ALLOC 释放 6346K, 7% free , paused 143ms, total 143ms


基础教程推荐
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iOS4 创建后台定时器 2022-01-01