Welcome! Log In Create A New Profile

Advanced

Re: Stressing nginx

Maxim Dounin
March 16, 2010 09:00AM
Hello!

On Tue, Mar 16, 2010 at 08:38:41AM -0400, stormdust wrote:

> Anyone around to peek on the logs to try and point me to a good direction?
>
> It seems the errors occurred when the concurrency happens between requests to the mono process:
>
> (mono log)
> [2010-03-15 11:27:10Z] Debug Accepting an incoming connection.
> [2010-03-15 11:27:10Z] Debug Accepting an incoming connection.
> [2010-03-15 11:27:10Z] Debug Record received. (Type: BeginRequest, ID: 1, Length: 8)
> [2010-03-15 11:27:10Z] Debug Accepting an incoming connection.
> [2010-03-15 11:27:10Z] Debug Record received. (Type: Params, ID: 1, Length: 529)
> [2010-03-15 11:27:10Z] Debug Record received. (Type: BeginRequest, ID: 1, Length: 8)
> [2010-03-15 11:27:10Z] Debug Record received. (Type: Params, ID: 1, Length: 0)
> [2010-03-15 11:27:10Z] Debug Record sent. (Type: EndRequest, ID: 1, Length: 8)
>
> He signals the End Request to other requests it seems. I
> continue to pursue if this is a nginx problem or a mono problem
> :(

nginx sends FCGI_BEGIN_REQUEST and FCGI_PARAMS records in single
chunk, it is impossible that they may be intermixed during sending to
mono.

Most likely the problem is that mono assumes that request id
must be unique across multiple transport connections. This is
incorrect assumption per FastCGI specs, see here:

http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S3.3

% The Web server re-uses FastCGI request IDs; the application keeps
% track of the current state of each request ID on a given transport
% connection.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Stressing nginx

stormdust March 11, 2010 07:29AM

Re: Stressing nginx

Maxim Dounin March 11, 2010 08:12AM

Re: Stressing nginx

stormdust March 12, 2010 04:08PM

Re: Stressing nginx

stormdust March 15, 2010 01:00PM

Re: Stressing nginx

stormdust March 15, 2010 01:07PM

Re: Stressing nginx

stormdust March 16, 2010 08:38AM

Re: Stressing nginx

Maxim Dounin March 16, 2010 09:00AM

Re: Stressing nginx

stormdust March 22, 2010 07:37AM

Re: Stressing nginx

rahul2k6.nitjsr August 21, 2012 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready