# Webrick cpu usage?

**URL:** <https://www.ruby-forum.com/t/webrick-cpu-usage/140156>\
**Category:** Ruby\
**Created:** [June 11, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/webrick-cpu-usage/140156 "2008-06-11T13:25:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [June 11, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/webrick-cpu-usage/140156/1 "2008-06-11T13:25:05Z")

</div>

Hey!

My application runs on a webrick server.  
When i open the browser and access the application, the cpu usage is  
around 40%.  
While i stay on a page and do nothing, the usage doesn’t go down again.  
When i close the browser, it drops to around 5%.

Why does the server use that much cpu time, even when not processing  
requests?  
Is there a way to lower cpu usage?

thx

---

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [June 12, 2008, 5:39am UTC](https://www.ruby-forum.com/t/webrick-cpu-usage/140156/2 "2008-06-12T05:39:26Z")

</div>

On Wednesday 11 June 2008 06:24:50 Christian K. wrote:

> My application runs on a webrick server.  
> …  
> Why does the server use that much cpu time, even when not processing  
> requests?

That depends very much on your application. Maybe your browser is  
holding a  
connection open. Maybe it really is still processing that request.

Have you tried a simple “Hello world” in Webrick?

---

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [June 12, 2008, 8:09am UTC](https://www.ruby-forum.com/t/webrick-cpu-usage/140156/3 "2008-06-12T08:09:20Z")

</div>

David M. wrote:

> That depends very much on your application. Maybe your browser is  
> holding a  
> connection open. Maybe it really is still processing that request.
> 
> Have you tried a simple “Hello world” in Webrick?

The funny thing is, the cpu load stays on a high level only on vista.  
Under XP SP2 the load immediately drops(0-3%) when the server finished  
processing the request. Are the any known issues with webrick and vista?

thx … ck
