# Monitoring a process

**URL:** <https://www.ruby-forum.com/t/monitoring-a-process/131191>\
**Category:** Ruby\
**Created:** [March 6, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/monitoring-a-process/131191 "2008-03-06T20:18:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mihai](https://www.ruby-forum.com/u/mihai)\
**Post date:** [March 6, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/monitoring-a-process/131191/1 "2008-03-06T20:18:55Z")

</div>

I want to monitor a process in windows and find the cpu and memory  
usage. How can i do that?

---

<div class="post-metadata">

**Author:** ![mihai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mihai](https://www.ruby-forum.com/u/mihai)\
**Post date:** [March 7, 2008, 4:11am UTC](https://www.ruby-forum.com/t/monitoring-a-process/131191/2 "2008-03-07T04:11:14Z")

</div>

Bu Mihai wrote:

> I want to monitor a process in windows and find the cpu and memory  
> usage. How can i do that?

I don’t know if there’s a higher-level API, but the raw “PerfMon”  
counters are stored in the Registry and can be grabbed using a Registry  
reader.

---

<div class="post-metadata">

**Author:** ![mihai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/35a633/32.png) [@mihai](https://www.ruby-forum.com/u/mihai)\
**Post date:** [March 7, 2008, 6:53am UTC](https://www.ruby-forum.com/t/monitoring-a-process/131191/3 "2008-03-07T06:53:34Z")

</div>

Bu Mihai wrote:

> I want to monitor a process in windows and find the cpu and memory  
> usage. How can i do that?

See sys-proctable.

I think the gem is broken at the moment. If you have a problem, go to  
[http://www.rubyforge.org/projects/sysutils](http://www.rubyforge.org/projects/sysutils), download the sys-proctable  
zip file and install it manually.

Regards,

Dan
