Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Maximising Performance For Concurrent Connections

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


imagenesis at gmail

Jun 28, 2009, 7:16 AM

Post #1 of 3 (359 views)
Permalink
Maximising Performance For Concurrent Connections

Hello, I have run some preliminary benchmarks and I am failing requests at
100 concurrent connections (approx 900 out of 5000 requests). At 200
concurrent connections, ab fails with the error message:
apr_socket_recv: Connection reset by peer (104)

After around 80 connections. I am doing something like:

./ab -n 1000 -c 200 "
http://example.com/adserver.php?action=myaction&mysql_where_variable1=adsize_300&mysql_where_variable2=g
"

The script is connecting to a local mysql server. The mysql server has:

max_user_connections=500
max_connections=1000

Any ideas? I have set the

PHP_FCGI_CHILDREN=20
export PHP_FCGI_CHILDREN

But could not get multiple spawned fastcgis to bind to the same socket. I'll
try to figure this out. I'm assuming there is only own fastcgi worker
serving requests. I'll update this in a few hours. Thank you!


stefan at konink

Jun 28, 2009, 7:19 AM

Post #2 of 3 (345 views)
Permalink
Re: Maximising Performance For Concurrent Connections [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello wrote:
> Hello, I have run some preliminary benchmarks and I am failing requests
> at 100 concurrent connections (approx 900 out of 5000 requests). At 200
> concurrent connections, ab fails with the error message:
>
> apr_socket_recv: Connection reset by peer (104)
>
> After around 80 connections. I am doing something like:
>
> ./ab -n 1000 -c 200
> "http://example.com/adserver.php?action=myaction&mysql_where_variable1=adsize_300&mysql_where_variable2=g
> <http://example.com/adserver.php?action=myaction&mysql_where_variable1=adsize_300&mysql_where_variable2=g>"
>
> The script is connecting to a local mysql server. The mysql server has:
>
> max_user_connections=500
> max_connections=1000
>
> Any ideas? I have set the
>
> PHP_FCGI_CHILDREN=20
> export PHP_FCGI_CHILDREN
>
> But could not get multiple spawned fastcgis to bind to the same socket.
> I'll try to figure this out. I'm assuming there is only own fastcgi
> worker serving requests. I'll update this in a few hours. Thank you!

The problem is most likely the php max request stuff.


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkpHfAAACgkQYH1+F2Rqwn30gQCgk/lCyJok5MbIiy5fMvzbBQXK
l5YAoIdsm5hud/UqV7g+Ui6cvX8S9WMf
=RAdg
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee


alvaro at alobbs

Jun 28, 2009, 8:37 AM

Post #3 of 3 (346 views)
Permalink
Re: Maximising Performance For Concurrent Connections [In reply to]

On 28-jun-09, at 16:16, Hello wrote:

> PHP_FCGI_CHILDREN=20
> export PHP_FCGI_CHILDREN
>
> But could not get multiple spawned fastcgis to bind to the same
> socket. I'll try to figure this out. I'm assuming there is only own
> fastcgi worker serving requests. I'll update this in a few hours.
> Thank you!

You have to define the PHP_FCGI_CHILDREN in the Information Source
configuration. Cherokee only uses the variables defined in its
configuration; environment variables are ignore when spawning
interpreters, actually.

As soon as you define variable (raise the variable value) in the PHP
Information Source, everything should start working as you expected.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.