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


基础教程推荐
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01