windows查看java内存使用情况_windows-server-2008 – 如何监视基于Windows的JVM的内存使用情况,如果它过高则会触发警报?...

在Windows Server 2008上运行的JVM应用如何进行内存监控并设定超限警报?通过Performance Monitor创建用户定义的数据收集器集,设置性能计数器警报,监测Process/Java.exe/Working Set。当内存使用超过阈值时,利用计划任务触发电子邮件警告,确保系统在无人值守时仍能发送通知。
摘要由CSDN通过智能技术生成

我有一个在

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.

相关文章

总结

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。

如您喜欢交流学习经验,点击链接加入交流1群:1065694478(已满)交流2群:163560250

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值