php /fastcgi error (using GD, semaphore timeout)

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
marc2003
-


Joined: 04 Feb 2004
Posts: 15

PostPosted: Sat Jun 02, 2007 8:59 pm    Post subject: php /fastcgi error (using GD, semaphore timeout) Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jun 28, 2007 12:07 am    Post subject: Re: php /fastcgi error (using GD, semaphore timeout) Reply with quote

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 View user's profile Send private message Send e-mail
marc2003
-


Joined: 04 Feb 2004
Posts: 15

PostPosted: Thu Jun 28, 2007 5:12 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Jun 29, 2007 12:56 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
marc2003
-


Joined: 04 Feb 2004
Posts: 15

PostPosted: Fri Jun 29, 2007 8:05 pm    Post subject: Reply with quote

ah cool. thanks for your help.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group