View previous topic :: View next topic |
Author |
Message |
marc2003 -
Joined: 04 Feb 2004 Posts: 15
|
Posted: Sat Jun 02, 2007 8:59 pm Post subject: php /fastcgi error (using GD, semaphore timeout) |
|
|
i have an index page which contains several mysql queries. i'm then using the results from these to call an image script using gd. i'm using a loop and calling the image script 31 times per page with different parameters each time.... eg
chart.php?t=12&u=4
chart.php?t=78&u1
etc
for the most part this works fine, but every now and then, sometimes 1, 2, 3 or even 4 of the 31 images won't show. refreshing the page sorts it but i was wondering what's causing this? this is the error i get in my fastcgi log
02/Jun/2007:20:34:31 +0100 SUID: 188 PUID: 188 RUID: 1 URI: /np/chart.php connect() = The semaphore timeout period has expired.
the image script itself is only a few lines of code and gets the parameters it needs from GET, no db queries being made.
so, any ideas? abyss problem or a php problem? :) |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jun 28, 2007 12:07 am Post subject: Re: php /fastcgi error (using GD, semaphore timeout) |
|
|
marc2003,
This usually happens when PHP processes are overloaded. This is unfortunately a PHP related problem that has been reported several times in the past but they are still fixing it. Actually, PHP people have chosen to recode their own FastCGI layer (instead of using the original one published by fastcgi.com) and their implementation is not the best one ever written: it has some problems especially under high load (and if your computer is already busy doing something else). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
marc2003 -
Joined: 04 Feb 2004 Posts: 15
|
Posted: Thu Jun 28, 2007 5:12 pm Post subject: |
|
|
ok, thanks for the reply.
i was only testing on my home pc and it wasn't under any other load. i guess 30 odd simultaneous requests must be too much? :confused:
i might try and put a delay in my loop or something..... |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Jun 29, 2007 12:56 pm Post subject: |
|
|
marc2003,
You can always switch PHP to CGI only. This is guaranteed to work fine. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
marc2003 -
Joined: 04 Feb 2004 Posts: 15
|
Posted: Fri Jun 29, 2007 8:05 pm Post subject: |
|
|
ah cool. thanks for your help. |
|
Back to top |
|
 |
|