Đã hoàn thành

NGINX Expert Needed - repost

I am using

[login to view URL]

The connection is not high, only 2000,

netstat -an |grep 80 |wc -l

2000.

but the load is super high, it's over 100.

When I restart php_cgi, the load is low, but it goes high slowly.

I notice the cpu usage is low, only 3%. And the memory usage is low as well, only 2G out 12 G.

This is strange. Normally, with nginx+php_cgi, the memory usage is about 90%. The cpu usage is over 50%.

I have server using nginx+php_cgi, it can handle 7000+ connection without an issue, the load is about 10.

The only different is the version of nginx. The one on new server is latest version(nginx/1.4.1), the one I use for other project is nginx/1.0.15.

The other different is the version of centos.

here is the php_cgi config

Quote:

[ "$NETWORKING" = "no" ] && exit 0

spawnfcgi="/usr/bin/spawn-fcgi"

php_cgi="/usr/bin/php-cgi"

prog=$(basename $php_cgi)

server_ip=[login to view URL]

server_port=9000

server_user=nginx

server_group=nginx

server_childs=60

fork_child=3

pidfile="/var/run/[login to view URL]"

# do not edit, put changes in /etc/sysconfig/phpfastcgi

[ -f /etc/sysconfig/phpfastcgi ] && . /etc/sysconfig/phpfastcgi

start() {

[ -x $php_cgi ] || exit 1

[ -x $spawnfcgi ] || exit 2

echo -n $"Starting $prog: "

daemon $spawnfcgi -a ${server_ip} -p ${server_port} -u ${server_user} -g ${server_group} -P ${pidfile} -C ${server_childs} -F ${fork_child} -f ${php_cgi}

retval=$?

echo

return $retval

}

when the server has high load, there is error in the error log

Quote:

*19394689 connect() failed (110: Connection timed out) while connecting to upstream, client: [login to view URL], server:

the server config

Intel(R) Xeon(R) CPU E5620 @ 2.40GHz

memory 12G.

when you fix the issue, you should let us know what you did to the server.

sorry, the link is broken.
it's
http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/

Kĩ năng: Nginx

Xem nhiều hơn: connection timed connecting upstream nginx, p.c. connection, rhel, nginx, php cpu 100, cpu 100, spawn, pid connection, memory edit, memory centos, php cgi cpu, low expert, client centos, php cgi load, php nginx, centos load, fcgi, connect centos, centos run daemon, config nginx centos

Về Bên Thuê:
( 1 Nhận xét ) markham, Canada

ID dự án: #4587268

Được trao cho:

FandaR

Hello, I have over 9 years experiecne as an Linux admin. Please check PM

$315 USD trong 3 ngày
(19 Đánh Giá)
5.8

5 freelancer đang chào giá trung bình $318 cho công việc này

stels88

I can help you!

$526 USD trong 3 ngày
(19 Nhận xét)
4.7
ficuric

Hello, i can help you so this job :)

$250 USD trong 3 ngày
(12 Nhận xét)
4.2
MikeRRR

Hello, I have over 7 years experience as a Linux admin. Please read private message. Thank you.

$250 USD trong 3 ngày
(9 Nhận xét)
3.7
neurotech1

Experienced Sysadmin. I've worked on high load servers before, including with NGINX.

$250 USD trong 3 ngày
(0 Nhận xét)
0.0