Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的应用程序运行时,任务管理器显示 10MB 的 RAM 使用量。我想分析它,但是当我创建 hprof 转储时,它只显示总共 2MB。谁能指出我正确的方向,其他 8MB 来自哪里?
您可以使用 DDMS 获得更准确的结果。这种差异可能来自不同的查询。已用内存和保留(但可用)内存之间存在差异。也许TaskManager(我不太相信)显示了空白空间,而hprof也显示了保留空间。