| 2. | The most common tools for this is ps and mon , but they could not run fast enough for high frequency as 60 times per minute . in this article , we will find why ps are slow , and then give a tool which will fulfill the need to monitor frequently . the tool works well because we cut some unnecessary functions and use some trick to make it faster 在高可用性集群中,可能需要对其提供服务的进程进行检测,而现有linux提供的检测工具和一些常用的工具均为管理员而非频繁检测所开发,检测开销很大,本文根据这种现实需求,在研究了现有工具效率较低的原因之后,提出了自己的解决方案,在保证准确的进程检测的同时,缩减了现有工具的功能,采用了一些技术降低了检测开销。 |