CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

asset-pipeline not supporting for concurrent requests more than 45 #94

Closed aditya- closed 10 years ago

aditya- commented 10 years ago

Dear Team,

I have installed larvel framework in the following environment and enabled asset-pipeline

Environment:

Server Software:        nginx/1.5.6
operating system:      Ubuntu 13.04  (Linux 3.8.0-26-generic)
Fastcgi:                    php-fpm
php version:             PHP 5.5.6-1+debphp.org~raring+2 (cli) (built: Nov 21 2013 14:39:09) 
mysql                      5.5
ab :                         ApacheBench, Version 2.3
Asset pipeline : 1.2 version

i have configured domains as fastcgi_pass 127.0.0.1:9005 in my nginx domain configuration .. Actually its working and opening fine .. i use apache-jmeter to capacity of application and server .. surprisingly i am getting 40 concurent successful logins (40 users accessing at the same time) at the same time .. but after 40 users application.js not loading ... its giving 404 not found error .. do i need to add any nginx configuration for codeseleve .. i am using 1.2 version ...

please let me know how to configure codeselve in nginx which accept large number of requests ..

Here is my nginx domain configuration

server {

        server_name new.bluecampus.com;

        root /usr/share/nginx/www/grey_portal/public;
        index index.php index.html index.htm;

        location / {
                 try_files $uri $uri/ /index.php?$args;
        }

        location ~ \.php$ {

                # With php5-fpm:
                include /etc/nginx/fastcgi_params; #Here you need to point your nginx instalation directory
                #fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_pass 127.0.0.1:9005;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

        }

}
aditya- commented 10 years ago

@kdocki can you please answer

kdocki commented 10 years ago

I have not run into this issue before so I don't know why you would get a 404 after 40 requests though. That is very strange. I may try some benchmarks of my own to see what happens.

aditya- commented 10 years ago

@kdocki please check

aditya- commented 10 years ago

checked?

kdocki commented 10 years ago

@aditya- what does your ab command look like? I tested ab with -c 50 no problem...

kdocki commented 10 years ago

@aditya- any update? I've not been able to reproduce this on our nginx server. If you did have an issue and found out how to resolve it can you please make a note about it here for others to see as well? Thanks...

kdocki commented 10 years ago

@aditya- Can you try out the suggestion on the page? Please re-open if you find there is still an issue. Thanks!

Make sure you are using cache stuff... https://github.com/CodeSleeve/asset-pipeline#can-i-use-nginx

aditya- commented 10 years ago

@kdocki sorry for late replay .... 50 connections is very less .. try like this :

2500 requests from 500 connections

give like this (after login to server) :

server@server-T610:~$ ab -n 2500 -c 500 -g log-record.txt http://alps.portal.test.com

aditya- commented 10 years ago

@kdocki please look at this issue