windows-server-2008 – 如何监视基于Windows的JVM的内存使用情
发布时间:2020-12-14 00:10:52 所属栏目:Windows 来源:网络整理
导读:我有一个在 Windows 2008中作为JVM运行的应用程序.我想监视它的内存使用情况,并在内存使用率达到特定阈值时发送电子邮件.是否有免费的实用程序或方法来执行此操作? Win2008 OS可以发送性能计数器阈值条件的警报. Part 1 # PerfmonLaunch Performance Monito
我有一个在
Windows 2008中作为JVM运行的应用程序.我想监视它的内存使用情况,并在内存使用率达到特定阈值时发送电子邮件.是否有免费的实用程序或方法来执行此操作?
Win2008 OS可以发送性能计数器阈值条件的警报.
Part 1 # Perfmon Launch Performance Monitor (perfmon.msc) Create a new User Defined Data Collector Set Choose to create manually after naming Select Performance Counter Alert Click Add - choose the Object,Counter and Instance to monitor. Process/Java.exe/Working Set Specify the alert threshold Choose "open properties for this data collector set" Specify a start schedule if the server is on a reboot schedule Change the sample interval. Alert repeats at this interval when value it above threshold Under Alert task,give it a name (like sendMail) Start the Data Collector Set Part 2 # Schedule Tasks Open up scheduled tasks (compmgmt.msc/configuration/task scheduler) Create a task,not a basic task Name it the exact same name you did in the above section (like sendMail) Check "user is logged in or not" so that it runs all the time. Change username if necessary. Create a new email action under the Action tab Enter all the info for from,to,subject,etc. Enter the SMTP server. You will be prompt for the password to run the task when you are not logged on. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读