compixtr Posted October 29, 2012 Share Posted October 29, 2012 hi everyone. i have a strange problem, i have a client running a very simple php script on my server which is somehow causing a really high load and making server unresponsive by creating hundreds of simultaneous connections. (i see lots of php processes under this user and i see hundreds of incoming connections from server to itself again as if the script is causing a loop?) i am not a php expert. but when i look at his script it seems as if it's acting like a proxy, that should try to connect a remote server to retrieve something. when i look at the error log in the same directory i just see the errors below and i couldn't understand what this error exactly means? [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 [29-Oct-2012 13:40:09] 302 .... anyone have any idea about how to track down this issue? i almost checked all web server-php related logs but could not find anything. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/270043-php-script-causing-too-many-simultaneous-connections/ Share on other sites More sharing options...
requinix Posted October 29, 2012 Share Posted October 29, 2012 Is there more to the log messages than you're posting? What you've posted isn't enough to determine what's happening. Only thing we can say now is that the 302 probably means the script redirected someplace. Quote Link to comment https://forums.phpfreaks.com/topic/270043-php-script-causing-too-many-simultaneous-connections/#findComment-1388503 Share on other sites More sharing options...
compixtr Posted October 29, 2012 Author Share Posted October 29, 2012 the log file is quite long. i've just checked the whole file and found two more error types as below; [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:37:01] 200 [29-Oct-2012 13:30:58] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0 [29-Oct-2012 13:30:58] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0 [29-Oct-2012 13:30:58] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0 [29-Oct-2012 13:30:58] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0 and below is access log; x.x.x.x - - [29/Oct/2012:12:30:51 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:50 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:50 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:52 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:52 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:56 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:57 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:57 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:57 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x - - [29/Oct/2012:12:30:51 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" "-" x.x.x.x is the ip of server itself. Quote Link to comment https://forums.phpfreaks.com/topic/270043-php-script-causing-too-many-simultaneous-connections/#findComment-1388508 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.