[Windows 监控]使用windows自带的工具去对某一进程实现监控,并取得这一进程对系统的资源使用情况

如何用windows自带的工具去监控某一进程对服务器资源的使用情况

通常情况下,我们会用LR去监控服务器的资源从而得到对系统并发时系统的资源使用情况。那么我们又如何使用windows自带的工具去对某一进程实现监控,并取得这一进程对系统的资源使用情况呢,如下:
1. Input the command ‘perfmon’ in the DOS console, then open the ‘Performance monitoring program’
2. Create a new data collector set from ‘Data collector Set->User Defined’
3. Input the name ‘E.g Test’and select the ‘Create manually(Advanced)’, then Click ‘Next’

4. Setting ‘What data do you want to include’ as below,Select the ‘Create data logs’ and select subitem ‘Performance counter’, then click ‘Next’

5. Setting ‘Which performance counter would you like to log?’
5.1. Click ‘Add’ to add the performance counters which is you want to moitor. E.g.
CPU,Memory,Disk, etc.

5.2. Setting the interval (Sample Interval:3, Unit: Seconds), then click ‘Next’.

6. Setting where would you like the data to be saved, then click ‘Next’

7. Select ‘save and close’, then click ‘Next’.

8. Now, you have created the data collector. But you need to set the ‘Log format’ as ‘comma separated’, and then the log will be save as ‘.csv’.

9. When you want to monitor this process, you can start this data collector. the way as below,right click the ‘test’ and click the ‘Start’.
10. After finished the test, you can obtain the log from the below path,right click the ‘test’ then click ‘properties-Directory-Example directory’. You can obtain the results as below,

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Windows操作系统下,可以通过以下几种方式来监控和自动重启进程: 1. 使用任务管理器:任务管理器是Windows系统自带工具,可以用来查看和管理当前活动的进程。打开任务管理器后,可以在“进程”选项卡中查看所有运行中的进程和它们的状态。如果某个进程意外退出或崩溃,可以通过重新启动该进程实现自动重启。 2. 使用批处理脚本:可以编写一个批处理脚本,通过命令行操作监控和重启进程。在批处理脚本中使用命令如tasklist来列出当前运行的进程,然后通过监控特定的进程ID或进程名来实现重启。可以使用如start或wmic等命令来启动或停止进程。 3. 使用第三方工具:有许多第三方工具可以帮助监控和自动重启进程。例如,有一些专门的进程监控软件可以实时监控进程的状态,并在进程异常终止时自动重启。这些工具通常提供更丰富的功能和更友好的界面,方便用户进行监控和管理。 无论使用哪种方式,需要注意以下几点: a. 了解要监控和重启的进程的相关信息,例如进程名、进程ID等。 b. 设置合适的监控频率,避免过于频繁或浪费资源。 c. 确保进程重启后能够继续正常运行,否则可能会陷入无限重启的循环中。 d. 需要合理使用权限和安全设置,以防止非法或不必要的操作。 总之,监控和自动重启进程是一个重要的系统管理任务,可以通过系统自带工具、批处理脚本或第三方工具实现。选择合适的方式取决于具体需求和个人偏好。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值