打开eclipse的heap工具(已经集合了ADT),查看android模拟器或者真机中的内存使用情况,发现heap里面未加载任何进程的使用情况。怎么回事?

解决方案 »

  1.   

    是不是heap的大小不够:
    在run的run configuration里,有个argument选项,在vm argument输入框里输入: -Xms256m-Xmx1024m 则可设定jvm的heap size最小为256m,最大为1024m 
      

  2.   

    Displays some heap stats, updated during garbage collection. If, when a VM is selected, the VM Heap view says that heap updates are not enabled, click the "Show heap updates" button, located in the top-left toolbar. Back in the VM Heap view, click Cause GC to perform garbage collection and update the heap stats.在devices 栏里面 点击一下update heap 按钮就行了。如下图所示,
    点击了以后不会马上有,等下一次 gc 回收旧有了
      

  3.   

    楼主的意思可能是,在Devices 标签里面,没有任何进程,只显示出当前设备名称。
    这时上面的update heap 图标呈灰色不可用状态。不知道我说的对不对,因为我遇到的就是这种情况,无法查看当前设备进程的heap .求解!!!!