我正在使用8 GB RAM的Windows 2003服务器(64位).如何增加堆内存最大值?我正在使用该-Xmx1500m标志将堆大小增加到1500 Mb.我可以将堆内存增加到物理内存的75%(6 GB堆)吗?
我一直想知道Runtime.getRuntime().totalMemory(),Runtime.getRuntime().freeMemory()和Runtime.getRuntime().maxMemory()的确切含义是什么 .
我的理解是,Runtime.getRuntime().totalMemory()返回我的进程使用的总内存.那是对的吗?
如何freeMemory()与maxMemory()?