根据resin的功能,在health.xml中可以像以下示例一样进行编写。
请按照环境进行设置。
●设置示例:此示例是在SMTPS上的通知。
将Tenured堆和PermGen堆的监视情况用邮件发送。
如果可用空间低于1MB,默认设置将会通知。
----------------------------------------------------------------
<mail name="healthMailer">
<smtp-host>smtps.domain.jp</smtp-host>
<smtp-port>465</smtp-port>
<user>userid</user>
<password>passwd</password>
<from>from@domain.jp</from>
<properties>
mail.transport.protocol=smtps
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback=false
</properties>
</mail>
<health:SendMail mail="${healthMailer}">
<to>to@domain.jp</to>
<health:Or>
<health:IfHealthCritical healthCheck="${memoryTenuredHealthC
heck}"/>
<health:IfHealthCritical healthCheck="${memoryPermGenHealthC
heck}"/>
</health:Or>
<health:IfNotRecent time="30m"/>
</health:SendMail>
----------------------------------------------------------------
※因为是resin的功能设置,关于设置方法等详细信息请通过以下进行确认。
https://www.caucho.com/resin-4.0/reference.xtp#health:SendMail (英語)
-- 适用对象 ---------------------------------------------------------------
iAP/Accel Platform/所有更新版本
-------------------------------------------------------------------------------
FAQID:412
使用resin-admin可以进行监视堆内存,是否有根据内存使用量进行通知的功能。