$(function(){initLicenseInfo()});function initLicenseInfo(){var a=base_path+"sys/common/getSystemInfo.do";var b={};$.post(a,b,function(h){var j=h.rows[0];var e="";e+="
";e+='用户名 | ';e+=""+j.UserName+" | ";e+='连接地址 | ';e+=""+j.URL+" | ";e+=' 连接池最大连接数 | ';e+=" "+j.MaxActive+" | ";e+=' 连接池当前数量 | ';e+=""+j.PoolingCount+" | ";e+="
";e+="
";e+=' 活跃连接数量 | ';e+=" "+j.ActiveCount+" | ";e+=' 执行sql数量 | ';e+=" "+j.ExecuteCount+" | ";e+=' | ';e+=" | ";e+=' | ';e+=" | ";e+="";$(".libsys-html").html(e);e="";var c=j.disk;e+="";e+='CPU使用情况 | ';e+=""+j.cpu+" | ";e+=' 总内存 | ';e+=""+j.memery.total_memory+" | ";e+=' 空闲内存 | ';e+=" "+j.memery.free_memory+" | ";e+=' 使用率 | ';e+=" "+j.memery.rate+" | ";e+="
";e+="";e+='JAVA版本 | ';e+=""+j.JavaVersion+" | ";e+='系统启用时间 | ';e+=''+j.StartTime+" | ";e+="
";for(var d=0;d";e+='磁盘 | ";e+=""+g.name+" | ";e+='总空间 | ";e+=" "+g.total_space+" | ";e+='可用空间 | ";e+=""+g.free_space+" | ";e+=' | ";e+=" | ";e+=""}$(".disk-html").html(e);chartFunByServerm(j)},"json")}function chartFunByServerm(a){cpuChartHandler(a);diskChartHandler(a)}function diskChartHandler(j){var g=echarts.init(document.getElementById("diskChart"),"macarons");var d=[];var c=[];var b=[];var h=j.disk;for(var e=0;e{b} : {c} ({d}%)"},legend:{orient:"vertical",x:"left",data:["总内存","空闲内存"]},calculable:true,series:[{name:"内存使用情况",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:b,name:"总内存"},{value:d,name:"空闲内存"}]}]};a.setOption(c)};