我们可以在Javamelody中设置基于阈值的电子邮件通知吗?

时间:2011-12-27 22:32:47

标签: java jira

我正在为Jira使用Javamelody插件,并且想知道我是否可以设置CPU /磁盘等阈值,并在交叉时通过电子邮件通知,系统配置文件的PDF作为附件

1 个答案:

答案 0 :(得分:0)

您可以设置一个监视器来监视Javamelody写入的RRD文件的内容。你可以在这里找到它们(其中/ opt / jira是你的$ JIRA_INST目录,_host-atlassian01是你的主机名):

$ ls /opt/jira/temp/javamelody/_host-atlassian01/*.rrd | grep -v [2-9]
/opt/jira/temp/javamelody/_host-atlassian01/activeConnections.rrd
/opt/jira/temp/javamelody/_host-atlassian01/activeThreads.rrd
/opt/jira/temp/javamelody/_host-atlassian01/cpu.rrd
/opt/jira/temp/javamelody/_host-atlassian01/fileDescriptors.rrd
/opt/jira/temp/javamelody/_host-atlassian01/gc.rrd
/opt/jira/temp/javamelody/_host-atlassian01/httpHitsRate.rrd
/opt/jira/temp/javamelody/_host-atlassian01/httpMeanTimes.rrd
/opt/jira/temp/javamelody/_host-atlassian01/httpSessionsMeanAge.rrd
/opt/jira/temp/javamelody/_host-atlassian01/httpSessions.rrd
/opt/jira/temp/javamelody/_host-atlassian01/httpSystemErrors.rrd
/opt/jira/temp/javamelody/_host-atlassian01/jspHitsRate.rrd
/opt/jira/temp/javamelody/_host-atlassian01/jspMeanTimes.rrd
/opt/jira/temp/javamelody/_host-atlassian01/jspSystemErrors.rrd
/opt/jira/temp/javamelody/_host-atlassian01/loadedClassesCount.rrd
/opt/jira/temp/javamelody/_host-atlassian01/sqlHitsRate.rrd
/opt/jira/temp/javamelody/_host-atlassian01/sqlMeanTimes.rrd
/opt/jira/temp/javamelody/_host-atlassian01/sqlSystemErrors.rrd
/opt/jira/temp/javamelody/_host-atlassian01/systemLoad.rrd
/opt/jira/temp/javamelody/_host-atlassian01/threadCount.rrd
/opt/jira/temp/javamelody/_host-atlassian01/tomcatBusyThreads.rrd
/opt/jira/temp/javamelody/_host-atlassian01/tomcatBytesReceived.rrd
/opt/jira/temp/javamelody/_host-atlassian01/tomcatBytesSent.rrd
/opt/jira/temp/javamelody/_host-atlassian01/usedConnections.rrd
/opt/jira/temp/javamelody/_host-atlassian01/usedMemory.rrd
/opt/jira/temp/javamelody/_host-atlassian01/usedNonHeapMemory.rrd
/opt/jira/temp/javamelody/_host-atlassian01/usedPhysicalMemorySize.rrd
/opt/jira/temp/javamelody/_host-atlassian01/usedSwapSpaceSize.rrd