# Making nginx "feel" faster?

**URL:** <https://www.ruby-forum.com/t/making-nginx-feel-faster/131346>\
**Category:** NGINX\
**Created:** [March 8, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346 "2008-03-08T16:07:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phillip\_B\_Oldham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Post date:** [March 8, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346/1 "2008-03-08T16:07:38Z")

</div>

Hi guys

I’m working on a mediatemple server (US) from the UK and it looks like  
there’s a limit with the bandwidth from the server. Sites on that box  
are slow, whether they’re dynamic or not. nginx has 8 worker threads  
(with 8 php-fastcgi threads waiting), keepalive is set to 3, static  
files are being told to cache, and gzip is enabled.

Are there any other tweaks I can do to nginx to make the responses feel  
faster? Maybe reduce the chunk size or something?

Cheers,  
Phill

---

<div class="post-metadata">

**Author:** ![Phillip\_B\_Oldham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Post date:** [March 8, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346/2 "2008-03-08T21:26:52Z")

</div>

On Sat, Mar 08, 2008 at 02:51:56PM +0000, Phillip B Oldham wrote:

> Hi guys
> 
> I’m working on a mediatemple server (US) from the UK and it looks like  
> there’s a limit with the bandwidth from the server. Sites on that box  
> are slow, whether they’re dynamic or not. nginx has 8 worker threads  
> (with 8 php-fastcgi threads waiting), keepalive is set to 3, static  
> files are being told to cache, and gzip is enabled.

You do not need worker per each php-fastcgi process.  
Single worker is enough for this.

> Are there any other tweaks I can do to nginx to make the responses feel  
> faster? Maybe reduce the chunk size or something?

I have no idea. Have do you tried other servers: lighttpd, Apache in  
this  
environment ?

---

<div class="post-metadata">

**Author:** ![Phillip\_B\_Oldham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Post date:** [March 10, 2008, 10:18am UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346/3 "2008-03-10T10:18:07Z")

</div>

On Mon, Mar 10, 2008 at 07:52:29AM +0000, Phillip B Oldham wrote:

> Yes - lighttpd had lots of problems with 500 errors due to php processes  
> ending unexpectedly. Haven’t tried apache, but I don’t much fancy  
> playing with fastcgi with apache or re-compiling php.

But what about response feeling ?  
Did lighttpd send static faster ?

---

<div class="post-metadata">

**Author:** ![Phillip\_B\_Oldham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Post date:** [March 10, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346/4 "2008-03-10T12:04:01Z")

</div>

The response felt worse, to my memory. We dropped it very quickly  
because of the 500 errors due to the php issue: they were making our  
site totally unusable.

I thought there might’ve been some tweaks we could do to reponse packet  
size or something to help speed things up. If not its not a problem -  
we’ll probably just move server to one based in the UK so we don’t have  
the trans-atlantic jump.

---

<div class="post-metadata">

**Author:** ![Phillip\_B\_Oldham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Post date:** [March 10, 2008, 9:01am UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346/5 "2008-03-10T09:01:18Z")

</div>

Yes - lighttpd had lots of problems with 500 errors due to php processes  
ending unexpectedly. Haven’t tried apache, but I don’t much fancy  
playing with fastcgi with apache or re-compiling php.

Igor S. wrote:

> > 
> 
> environment ?

–

_Phillip B Oldham_  
The Activity People  
removed\_email\_address@domain.invalid [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

_Policies_

This e-mail and its attachments are intended for the above named  
recipient(s) only and may be confidential. If they have come to you in  
error, please reply to this e-mail and highlight the error. No action  
should be taken regarding content, nor must you copy or show them to  
anyone.

This e-mail has been created in the knowledge that Internet e-mail is  
not a 100% secure communications medium, and we have taken steps to  
ensure that this e-mail and attachments are free from any virus. We must  
advise that in keeping with good computing practice the recipient should  
ensure they are completely virus free, and that you understand and  
observe the lack of security when e-mailing us.
