[root@web03 memtest]# cat meminfo.jsp <% Runtime rtm = Runtime.getRuntime(); long mm = rtm.maxMemory()/1024/1024; long tm = rtm.totalMemory()/1024/1024; long fm = rtm.freeMemory()/1024/1024;

out.println("JVM memory detail info :<br>"); out.println("Max memory:"+mm+"MB"+"<br>"); out.println("Total memory:"+tm+"MB"+"<br>"); out.println("Free memory:"+fm+"MB"+"<br>"); out.println("Available memory can be used is :"+(mm+fm-tm)+"MB"+"<br>"); %>

相关文章:

  • 2021-12-12
  • 2021-10-18
  • 2022-01-14
  • 2022-02-27
  • 2021-07-04
猜你喜欢
  • 2021-10-23
  • 2021-12-09
  • 2022-12-23
  • 2021-10-08
  • 2021-07-01
  • 2021-09-15
  • 2021-08-27
相关资源
相似解决方案