##### Heap utilization statistics [MB] ##### Used Memory:8 Free Memory:7 Total Memory:15 Max Memory:247##### GC statistics ##### YGC:84 YGCT(ms):150 FGC:16 FGCT(ms):916 Code Cache NON_HEAP 9% Eden Space HEAP 5% Survivor Space HEAP 0% Tenured Gen HEAP 2% Perm Gen NON_HEAP 22% Perm Gen [shared-ro] NON_HEAP 54% Perm Gen [shared-rw] NON_HEAP 55% ##### Threads ##### Total Threads:15 Dead Lock Threads(0):##### Disk Space ##### File system root: C:\ Total space (mb): 61338 Free space (mb): 36911 Usable space (mb): 36911 File system root: D:\ Total space (mb): 279999 Free space (mb): 271837 Usable space (mb): 271837 File system root: E:\ Total space (mb): 279999 Free space (mb): 278099 Usable space (mb): 278099 File system root: F:\ Total space (mb): 332425 Free space (mb): 327954 Usable space (mb): 327954 File system root: G:\ Total space (mb): 3847 Free space (mb): 802 Usable space (mb): 802
请输入长度为6的字符
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import ="java.io.*" %>
<%@ page import ="com.sun.tools.attach.VirtualMachine" %>
<%@ page import ="com.sun.tools.attach.VirtualMachineDescriptor" %>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>demo</title>
</head>
<body>
<div id="demo1" class="demo">
<%
out.print(System.getProperty("java.class.path"));
out.print("Number of runtime jvms : "+VirtualMachine.list().size());
for (int i=0; i<VirtualMachine.list().size(); i++) {
VirtualMachineDescriptor vi = VirtualMachine.list().get(i);
out.println("**PID :"+vi.id()+" **DISPLAYNAME:"+vi.displayName());
}
%></div>
</body>
</html>
OSCHINA的那个问答是模仿stackoverflow的FAQ
坐等高人
##### Heap utilization statistics [MB] #####
Used Memory:8
Free Memory:7
Total Memory:15
Max Memory:247##### GC statistics #####
YGC:84 YGCT(ms):150
FGC:16 FGCT(ms):916
Code Cache NON_HEAP 9%
Eden Space HEAP 5%
Survivor Space HEAP 0%
Tenured Gen HEAP 2%
Perm Gen NON_HEAP 22%
Perm Gen [shared-ro] NON_HEAP 54%
Perm Gen [shared-rw] NON_HEAP 55%
##### Threads #####
Total Threads:15
Dead Lock Threads(0):##### Disk Space #####
File system root: C:\
Total space (mb): 61338
Free space (mb): 36911
Usable space (mb): 36911
File system root: D:\
Total space (mb): 279999
Free space (mb): 271837
Usable space (mb): 271837
File system root: E:\
Total space (mb): 279999
Free space (mb): 278099
Usable space (mb): 278099
File system root: F:\
Total space (mb): 332425
Free space (mb): 327954
Usable space (mb): 327954
File system root: G:\
Total space (mb): 3847
Free space (mb): 802
Usable space (mb): 802