Many new features now available including 2-Factor authentication
Started by symeon.mattes, September 21, 2013, 09:13:27 PM
0 Members and 1 Guest are viewing this topic.
[some_date] [warn] mod_fcgid: process 13442 graceful kill fail, sending SIGKILL[a_date] [error] FastCGI process 32657 still did not exit, terminating forcefully[a_date] [warn] mod_fcgid: cleanup zombie process 18283[a_date] [warn] (105)No buffer space available: connect to listener on 0.0.0.0:80
[a_date] [warn] [client an_ip] mod_fcgid: read data timeout in 70 seconds, referer: myrurl[a_date] [warn] [client an_ip] mod_fcgid: stderr: \t\t\t\tORDER BY dp_date DESC, cntaccess DESC[a_date] [warn] [client an_ip] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server[a_date] [error] [client an_ip] Premature end of script headers: wp-cron.php[a_date] [warn] [client an_ip] (70007)The timeout specified has expired: mod_fcgid: can't get data from http client, referer: a_url
[a_date] [error] [client an_ip] Premature end of script headers: wp-comments-post.php, referer: a_url[a_date] [error] [client an_ip] Premature end of script headers: index.php, referer: a_url[a_date] [warn] [client an_ip] mod_fcgid: read data timeout in 70 seconds[a_date] [error] [client an_ip] Premature end of script headers: index.php
[a_date] [warn] [client an_ip] mod_fcgid: stderr: PHP Warning: Maximum number of allowable file uploads has been exceeded in Unknown on line 0, referer: a_url[a_date] [warn] [client an_ip] mod_fcgid: read data timeout in 70 seconds, referer: a_url[a_date] [error] [client an_ip] Premature end of script headers: index.php, referer: a_url
FcgidIdleTimeout 40->3600FcgidProcessLifeTime 30->7200FcgidMaxProcesses 40->64FcgidMaxProcessesPerClass 8FcgidMinProcessesPerClass 0FcgidConnectTimeout 30->300FcgidIOTimeout 70->7200FcgidInitialEnv RAILS_ENV productionFcgidIdleScanInterval 10IPCCommTimeout 7200IPCConnectTimeout 180
/usr/bin/php-cgi -c /var/www/vhosts/system/domain1/etc/php.ini/usr/bin/php-cgi -c /var/www/vhosts/system/domain2/etc/php.ini
QuoteSpecial PHP considerationsBy default, PHP FastCGI processes exit after handling 500 requests, and they may exit after this module has already connected to the application and sent the next request. When that occurs, an error will be logged and 500 Internal Server Error will be returned to the client. This PHP behavior can be disabled by setting PHP_FCGI_MAX_REQUESTS to 0, but that can be a problem if the PHP application leaks resources. Alternatively, PHP_FCGI_MAX_REQUESTS can be set to a much higher value than the default to reduce the frequency of this problem. FcgidMaxRequestsPerProcess can be set to a value less than or equal to PHP_FCGI_MAX_REQUESTS to resolve the problem.PHP child process management (PHP_FCGI_CHILDREN) should always be disabled with mod_fcgid, which will only route one request at a time to application processes it has spawned; thus, any child processes created by PHP will not be used effectively. (Additionally, the PHP child processes may not be terminated properly.) By default, and with the environment variable setting PHP_FCGI_CHILDREN=0, PHP child process management is disabled.The popular APC opcode cache for PHP cannot share a cache between PHP FastCGI processes unless PHP manages the child processes. Thus, the effectiveness of the cache is limited with mod_fcgid; concurrent PHP requests will use different opcode caches.
QuoteOne possible solution would be to set the FcgidMaxRequestsPerProcess directive in Apache's configuration to 500, thus instructing FastCGI to terminate the process at the same time as PHP does.
lsof | wc -l
netstat -nat # or netstat -nat|wc -l if it's too long ..
Quote# ab -c4 -n10000 http://linux.co.uk/This is ApacheBench, Version 2.3 <$Revision: 655654 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking linux.co.uk (be patient)Completed 1000 requestsCompleted 2000 requestsCompleted 3000 requestsCompleted 4000 requestsCompleted 5000 requestsCompleted 6000 requestsCompleted 7000 requestsCompleted 8000 requestsCompleted 9000 requestsCompleted 10000 requestsFinished 10000 requestsServer Software: lighttpd/1.4.28Server Hostname: linux.co.ukServer Port: 80Document Path: /Document Length: 59079 bytesConcurrency Level: 4Time taken for tests: 10.546 secondsComplete requests: 10000Failed requests: 0Write errors: 0Total transferred: 593949114 bytesHTML transferred: 590790000 bytesRequests per second: 948.24 [#/sec] (mean)Time per request: 4.218 [ms] (mean)Time per request: 1.055 [ms] (mean, across all concurrent requests)Transfer rate: 55000.66 [Kbytes/sec] receivedConnection Times (ms) min mean[+/-sd] median maxConnect: 0 0 0.6 0 7Processing: 1 4 3.1 3 216Waiting: 1 4 3.0 3 215Total: 1 4 3.2 3 216Percentage of the requests served within a certain time (ms) 50% 3 66% 4 75% 5 80% 6 90% 7 95% 9 98% 11 99% 13 100% 216 (longest request)