+ "</td><td>使用率超出 " + jvm + "%,,发送邮箱提示 </td></tr>" + "</tbody>" + "</table>";
if (!Common.isEmpty(cpubool) || !Common.isEmpty(jvmbool) || !Common.isEmpty(rambool)) {
try {
EmailUtils.sendMail(prop.getProperty("fromEmail"), email, prop.getProperty("emailName"), prop.getProperty("emailPassword"), title, centent);
// 保存预警信息
ServerInfo vo = new ServerInfo();
vo.setCpuUsage(cpuUsage);
vo.setSetCpuUsage(cpu);
vo.setJvmUsage(JvmUsage);
vo.setSetJvmUsage(jvm);
vo.setRamUsage(serverUsage);
vo.setSetRamUsage(ram);
vo.setEmail(email);
vo.setOperTime(new Date());
vo.setMark(mark);
serverInfoService.add(vo);
System.err.println("发送邮件!");
} catch (Exception e) {
System.err.println("发送邮件失败!");
}