Can optimize this for more performance?


This is a part of my default nginx installation for wordpress blog.

> #Specifies the value for maximum file descriptors that can be opened by this process.

workerrlimitnofile 51200;



use epoll;

worker_connections 51200;




include mime.types;

default_type application/octet-stream;

servernameshashbucketsize 128;

clientheaderbuffer_size 32k;

largeclientheader_buffers 4 32k;

clientmaxbody_size 8m;

sendfile on;

tcp_nopush on;

keepalive_timeout 60;

tcp_nodelay on;

fastcgiconnecttimeout 300;

fastcgisendtimeout 300;

fastcgireadtimeout 300;

fastcgibuffersize 64k;

fastcgi_buffers 4 64k;

fastcgibusybuffers_size 128k;

fastcgitempfilewritesize 256k;

gzip on;

gzipminlength 1k;

gzip_buffers 4 16k;

gziphttpversion 1.0;

gzipcomplevel 2;

gzip_types text/plain application/x-javascript text/css application/xml;

gzip_vary on;

Guys do you think that any adjustments can made for more performance? :)

:roll: :roll:

Also im getting little bit of delay like 1sec after clicking a page to load. But after that page instantly loads up. Does that lag caused by some misconfiguration on that conf? Is there any way to improve page loading time by changing values on the top? Guys please help me! :)


1 Reply

does the delay happen also trying to execute a simple script or just phpinfo() for example?

if not.. the delay must be because it really needs that time to send the page. you should have to find where is the bottle neck.. maybe in the database server. Nginx is very fast.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct