# Server performance is...let's just say less than perfect

**URL:** <https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314>\
**Category:** Deployment\
**Created:** [January 8, 2008, 5:43am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314 "2008-01-08T05:43:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 5:43am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/1 "2008-01-08T05:43:54Z")

</div>

I deployed an app to a Linode 360 VPS, and have notices a huge  
fluctuation in performance, ie 50req/sec down to 2req/sec. Seeing as it  
was at 50 at one time I can’t see the reason being in the code.

I just wanted to find out if you people have had experiences like this  
and may have a solution. I don’t really know where to start in find a  
solution for this, is it something I can fix, or is it the VPS server?

Thanks

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 5:48am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/2 "2008-01-08T05:48:42Z")

</div>

How much memory is allocated to your VPS? Are the same controllers  
fluctuating, or are they different controllers?

Thanks,

Jesse P.  
Blue Box Group, LLC  
p. 800-613-4305 x 801

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 5:55am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/3 "2008-01-08T05:55:37Z")

</div>

-I have 360MB of mem with a 512MB swap.  
-All the requests that I am testing that return the huge variance is on  
the same controller action.  
-I don’t have an caching mainly because it is not a site for a large  
number of people.  
-I am using Debian 4.0 as an OS

If that will shed any more light on things

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 5:58am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/4 "2008-01-08T05:58:04Z")

</div>

How man Mongrels are you running within that config?

Are you monitoring them with Monit?

What’s the average memory consumption of mongrel in your app?

Thanks,

Jesse P.  
Blue Box Group, LLC  
p. 800-613-4305 x 801

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 6:05am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/5 "2008-01-08T06:05:04Z")

</div>

On Jan 7, 2008, at 8:43 PM, Chris O. wrote:

> Thanks-’  
> As far as I know linode uses User Mode Linux for it’s VPS’s. User  
> mode linux runs in userspace so VM’s running under this system can be  
> affected by the ‘bad neighbor’ affect a lot easier then say a Xen  
> based VPS. So someone else on the same box is probably sucking up the  
> resources when you see slow times.

Either that or you may just be swapping a lot. 360Mb is not a lot for  
a rails app vps and if you are hitting swap it will kill performance  
badly.

Cheers-

- Ezra Z.  
– Founder & Software Architect  
– removed\_email\_address@domain.invalid  
– [EngineYard.com](http://EngineYard.com)

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 6:13am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/6 "2008-01-08T06:13:47Z")

</div>

Where is a good recommended host? I know Ezra’s stuff is probably a  
little too expensive for me :), but in couple months I will hopefully  
be looking for something that can handle a decent load.

I always hear about slice host, but I figured that Linode offered the  
same, or so I thought, and it was cheaper, so it won out for me.

I need some place that if the situation arises that upgrading will not  
be an issue, no matter how much the upgrade is.

Thanks for the advice guys.

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 6:16am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/7 "2008-01-08T06:16:45Z")

</div>

Chris,

Email me off list and I can get you a quote. Also check out  
[RailsMachine.com](http://RailsMachine.com).

Thanks,

Jesse P.  
Blue Box Group, LLC  
p. 800-613-4305 x 801

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 6:04am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/8 "2008-01-08T06:04:56Z")

</div>

Jesse P. wrote:

> How man Mongrels are you running within that config?
> 
> Are you monitoring them with Monit?
> 
> What’s the average memory consumption of mongrel in your app?
> 
> Thanks,
> 
> Jesse P.  
> Blue Box Group, LLC  
> p. 800-613-4305 x 801

3 mongrels

I just have a tails -f on ssh right now. I will check out Monit though.

Here is my mem…I admit I am a little short on it.  
total used free shared  
buffers cached  
Mem: 356008 339348 16660 0 40568  
135320  
-/+ buffers/cache: 163460 192548  
Swap: 524280 0 524280

I will definately keep a closer eye on the correlation of the memory  
available and performance.

I don’t know why the memory would vary that much. Right now the site has  
just been released, so it is only me that is hitting it.

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 8:03am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/9 "2008-01-08T08:03:00Z")

</div>

Jesse P. wrote:

> Chris,
> 
> Email me off list and I can get you a quote. Also check out  
> [RailsMachine.com](http://RailsMachine.com).
> 
> Thanks,
> 
> Jesse P.  
> Blue Box Group, LLC  
> p. 800-613-4305 x 801

You wouldn’t happen to have an email address would you? 🙂

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 6:24am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/10 "2008-01-08T06:24:30Z")

</div>

Jesse P. wrote:

> Chris,
> 
> Email me off list and I can get you a quote. Also check out  
> [RailsMachine.com](http://RailsMachine.com).

Will do

> > I know Ezra’s stuff is probably a little too expensive for me  
> > @Ezra:  
> > If you guys had a plan that was affordable, had no support and didn’t  
> > even come close to what you normally offer, but made it easy to flip  
> > over to the big guns if the time came, I would be all over that  
> > like…(good metaphor here)

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 8:32am UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/11 "2008-01-08T08:32:29Z")

</div>

removed\_email\_address@domain.invalid

Thanks,

Jesse P.  
Blue Box Group, LLC  
p. 800-613-4305 x 801

---

<div class="post-metadata">

**Author:** ![chrisolsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Post date:** [January 8, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/server-performance-is-lets-just-say-less-than-perfect/125314/12 "2008-01-08T16:27:48Z")

</div>

I would highly recommend BlueBoxGroup. We went from SliceHost to them  
and  
are using a Big5 load balancer that is making our lifes so much easier.

AEM

On Jan 7, 2008 10:13 PM, Chris O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ## Thanks for the advice guys.
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Adrian Esteban Madrid  
Lead Developer, Prefab Markets  
[http://www.prefabmarkets.com](http://www.prefabmarkets.com)
