Re: [問題]vm won't let us allocate xxx bytes 問題
※ 引述《bobyang79 (宗樺)》之銘言:
: 今天寫android 遇到vm won't let us allocate 800000 bytes
: 這應該是超過記憶體的問題~?
: 不知道有沒有大大遇到類似問題
: 查了google好像都提問的
: 沒看到有解決方法= =~
先觀察一下記憶體用量吧:
adb shell dumpsys meminfo
OUTPU Example (http://pastebin.com/tBNa9uns) :
** MEMINFO in pid 2433 [com.htc.laputa] **
native dalvik other total limit bitmap nativeBmp
size: 15532 4947 N/A 20479 32768 N/A N/A
allocated: 15417 3220 N/A 18637 N/A 0 1783
free: 114 1727 N/A 1841 N/A N/A N/A
(Pss): 5640 217 14623 20480 N/A N/A N/A
(shared dirty): 2580 2004 5612 10196 N/A N/A N/A
(priv dirty): 5580 168 7244 12992 N/A N/A N/A
Objects
Views: 0 ViewRoots: 0
AppContexts: 0 Activities: 0
Assets: 3 AssetManagers: 3
Local Binders: 3 Proxy Binders: 15
Death Recipients: 1
OpenSSL Sockets: 0
SQL
heap: 0 MEMORY_USED: 0
PAGECACHE_OVERFLOW: 0 MALLOC_SIZE: 50
Asset Allocations
zip:/system/app/HtcLaputa.apk:/resources.arsc: 3045K
Uptime: 7661274 Realtime now=14763723
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.224.172.32
推
07/07 21:44, , 1F
07/07 21:44, 1F
推
07/07 21:54, , 2F
07/07 21:54, 2F
推
07/07 22:01, , 3F
07/07 22:01, 3F
→
07/07 22:01, , 4F
07/07 22:01, 4F
→
07/07 22:02, , 5F
07/07 22:02, 5F
推
07/08 03:37, , 6F
07/08 03:37, 6F
→
07/08 03:44, , 7F
07/08 03:44, 7F
推
07/08 09:19, , 8F
07/08 09:19, 8F
→
07/08 09:20, , 9F
07/08 09:20, 9F
→
07/08 09:52, , 10F
07/08 09:52, 10F
→
07/08 09:52, , 11F
07/08 09:52, 11F
推
07/08 14:19, , 12F
07/08 14:19, 12F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章