zoukankan      html  css  js  c++  java
  • Windows下用pssuspend工具暂时停止一个进程

    最近某模块爆出一个潜伏两年多的内存泄露问题,某个服务长期运行后会进入“Hold” 住的状态达10分钟左右。如何在实验环境下模拟出进程被“Hold” 住的状态呢?

    我们知道Linux下可以用gdb工具attach到该目标进程达到预期效果,那么Windows下是否也有类似的工具呢?答案是:pssuspend工具。

    pssuspend

    Windows Sysinternals工具套件中的“ps tool” 系列中的一员。Tool如其名,它是用来暂时挂起/恢复一个进程的。

    它的使用格式为:

      pssuspend [-r] [\\远程机器ip [-u username] [-p password]] <process name | processid>

    三个参数:

         -r  恢复进程,用于恢复一个已经挂起的进程

         -u  用户名 -p 密码  验证为另一个用户(一般用于远程机器控制)。

    简单用法:

        1. 暂停一个本地的abc进程: pssuspend abc

        2. 恢复abc进程: pssuspend -r abc

      

  • 相关阅读:
    Mysql任务调度
    使用 IntraWeb (18)
    使用 IntraWeb (17)
    替盛大代发的招聘启示
    使用 IntraWeb (16)
    使用 IntraWeb (15)
    使用 IntraWeb (14)
    使用 IntraWeb (13)
    使用 IntraWeb (12)
    使用 IntraWeb (11)
  • 原文地址:https://www.cnblogs.com/besharp/p/2392525.html
Copyright © 2011-2022 走看看