你设定的Java的可用内存是多少??我觉得你应该不要过多干预Java的GC过程,60%可能不是个好选择。

解决方案 »

  1.   

    定的Java的可用内: 无限制60%只是打个比方,我会找一个相对比较好的比值.intelliJ ide 感觉就是这样做的。
      

  2.   

    大家对下边的答案感觉对不对?maxMemory  :134217728   java最大可用内存
    freeMemory :7814704     当前????内存
    totalMemory:16728064    当前使用的内存
      

  3.   

    maxmemory是指总的可用物理内存减掉系统所占用的内存所得;
    freeMemory() 
              Returns the amount of free memory in the Java Virtual Machine.maxMemory() 
              Returns the maximum amount of memory that the Java virtual machine will attempt to use.totalMemory() 
              Returns the total amount of memory in the Java virtual machine.
      

  4.   

    我就是英文不好啊!free  Memory()   free 是 自由的,还是可用的,还是可释放的???