Created
July 27, 2009 16:09
-
-
Save eastmedia/156564 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
504 Gateway Time-out | |
nginx/0.6.37 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[deploy@rm-207-210-123-165 integrity]$ sudo passenger-status | |
*** Cleaning stale folder /tmp/passenger.25364 | |
*** Cleaning stale folder /tmp/passenger.25406 | |
----------- General information ----------- | |
max = 6 | |
count = 4 | |
active = 0 | |
inactive = 4 | |
Waiting on global queue: 0 | |
----------- Domains ----------- | |
/home/deploy/integrity: | |
PID: 25517 Sessions: 0 Processed: 5 Uptime: 2m 8s | |
PID: 25828 Sessions: 0 Processed: 1 Uptime: 27s | |
PID: 25736 Sessions: 0 Processed: 2 Uptime: 42s | |
PID: 25814 Sessions: 0 Processed: 2 Uptime: 28s | |
[deploy@rm-207-210-123-165 integrity]$ passenger-memory-stats | |
------------- Apache processes ------------- | |
*** WARNING: The Apache executable cannot be found. | |
Please set the APXS2 environment variable to your 'apxs2' executable's filename, or set the HTTPD environment variable to your 'httpd' or 'apache2' executable's filename. | |
-------------- Nginx processes -------------- | |
PID PPID Threads VMSize Private Name | |
--------------------------------------------- | |
24896 1 1 3.4 MB 0.1 MB nginx: master process nginx | |
24897 24896 1 3.7 MB 0.4 MB nginx: worker process | |
24898 24896 1 3.6 MB 0.3 MB nginx: worker process | |
24902 24896 1 3.6 MB 0.3 MB nginx: worker process | |
24903 24896 1 3.6 MB 0.3 MB nginx: worker process | |
### Processes: 5 | |
### Total private dirty RSS: 1.34 MB | |
--------- Passenger processes --------- | |
PID Threads VMSize Private Name | |
--------------------------------------- | |
24884 27 6.4 MB 0.4 MB PassengerNginxHelperServer /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4 /usr/bin/ruby 3 4 2 6 0 300 1 nobody 500 500 /tmp/passenger.24882 | |
24893 1 10.2 MB 7.7 MB Passenger spawn server | |
### Processes: 2 | |
### Total private dirty RSS: 8.14 MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user deploy; | |
worker_processes 4; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4; | |
passenger_ruby /usr/bin/ruby; | |
passenger_log_level 2; | |
include mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
sendfile on; | |
keepalive_timeout 5; | |
tcp_nopush on; | |
tcp_nodelay off; | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_comp_level 2; | |
gzip_proxied any; | |
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
server { | |
listen 80; | |
server_name build.eastmedia.net; | |
access_log /usr/local/nginx/logs/build.access.log main; | |
root /home/deploy/integrity/public; | |
passenger_enabled on; | |
passenger_use_global_queue on; | |
client_body_timeout 240; | |
client_header_timeout 240; | |
proxy_read_timeout 240; | |
proxy_send_timeout 240; | |
send_timeout 240; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(prior to adding proxy_* directives to nginx.conf) | |
2009/07/27 11:14:57 [error] 25049#0: *372 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 70.107.231.80, server: build.eastmedia.net, request: "POST /mdb/builds HTTP/1.1", upstream: "unix:/tmp/passenger.25033/master/helper_server.sock:", host: "build.eastmedia.net", referrer: "http://build.eastmedia.net/mdb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment