Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 5:22 PM   #1
Nick Bartos
 
Nick Bartos's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default php fastcgi process dies every 3-4 hours?

I am running php with fastcgi. Everything appears to be working fine
except for some errors in my logs, which I get about every 3-4 hours:

[Tue Aug 19 17:20:48 2003] [warn] FastCGI: (dynamic) server
"/var/www/php/php.fcgi" (pid 22390) terminated by calling exit with
status '0'

[Tue Aug 19 17:20:48 2003] [warn] FastCGI: (dynamic) server
"/var/www/php/php.fcgi" (uid 45, gid 45) restarted (pid 26326)


From my understanding, fastcgi is supposed to keep 5 servers running by
default even if there is no demand for them. This is a very low traffic
server right now (really just 2 users for webmail). I leave my webmail
window open all night, which refreshes every 30 seconds so it shouldn't be
idle anyway. Also it starts right back up, so I do not think it has
anything to do with idle timeouts.

It seems funny that it exists with success, like if it will only run for
so long no matter what.

Any ideas? I have tried the latest php and mod_fastcgi cvs snapshots. It
appears to be a problem with php (since mod_fastcgi shouldn't be causing
the php process to exit, at least I don't think), but of course I can't be
certain.
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 5:22 PM   #2
Nick Bartos
 
Nick Bartos's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default php fastcgi process dies every 3-4 hours?

after digging in some more I found out that it dies every 500 requests, so
I found a place in the php fastcgi code where it will exit after 500
requests.

I can't seem to find any comments in the code as to why this is so. Any
ideas?

I would like to see this error less, so I may up the limit.
However when I do agressive testing using the apache bench program, it
will die too much and stay dead for a while (due to some fcgi timeouts it
looks like), which seems bad as it could fail under high loads (although
it would start up again eventually).



On Wed, 20 Aug 2003 12:10:17 -0500, Nick Bartos wrote:

> I am running php with fastcgi. Everything appears to be working fine
> except for some errors in my logs, which I get about every 3-4 hours:
>
> [Tue Aug 19 17:20:48 2003] [warn] FastCGI: (dynamic) server
> "/var/www/php/php.fcgi" (pid 22390) terminated by calling exit with
> status '0'
>
> [Tue Aug 19 17:20:48 2003] [warn] FastCGI: (dynamic) server
> "/var/www/php/php.fcgi" (uid 45, gid 45) restarted (pid 26326)
>
>
> From my understanding, fastcgi is supposed to keep 5 servers running by
> default even if there is no demand for them. This is a very low traffic
> server right now (really just 2 users for webmail). I leave my webmail
> window open all night, which refreshes every 30 seconds so it shouldn't be
> idle anyway. Also it starts right back up, so I do not think it has
> anything to do with idle timeouts.
>
> It seems funny that it exists with success, like if it will only run for
> so long no matter what.
>
> Any ideas? I have tried the latest php and mod_fastcgi cvs snapshots. It
> appears to be a problem with php (since mod_fastcgi shouldn't be causing
> the php process to exit, at least I don't think), but of course I can't be
> certain.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:23 PM   #3
Nick Bartos
 
Nick Bartos's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default php fastcgi process dies every 3-4 hours?

I swear it never fails. No matter how much research I do before posting,
shortly after I post a question I seem to find the answer shortly
thereafter.

Anyway at the top of the php-fcgi main source file it mentions an
environment variable that can override the default 500 requests, to help
with possible memory leaks in php. I guess I can understand that
(although I would think the apache mod_php would need to do the same, if
thinking was consistant across the sapi's. not sure if it does though).
Anyway perhaps I have more faith in php than the developers do, but I have
increased the default to 1,000,000 requests. I may back that down later.

I would think that the default of 500 should perhaps be raised a bit. It
seems that during a burst of high traffic you could get 1500 (500 * 3)
requests in 30 seconds, which would cause mod_fastcgi to kill php-fcgi for
a while because it was restarting to quickly. I had this happen in
several test cases (which are not by any means real-world, but I am a
supporter of overkill most of the time). Of course mod_fastcgi will start
php-fcgi up again, but not after a few minutes. During that time the
apache won't be able to surve up any php documents.

After raising the limit to 1,000,000 I ran over a million requests (1 at a
time, as fast as my script could pump them out), and all seemed well. I
did not get any break in answering requests, or any errors in the logs
(execpt of course an error after 1 millino requests saying that php-cgi
died, 1 per million requests). Also I was able to browse other php stuff
on the server while running the test with not too much lag, and it never
skipped a beat.



On Wed, 20 Aug 2003 12:36:10 -0500, Nick Bartos wrote:

> after digging in some more I found out that it dies every 500 requests,
> so I found a place in the php fastcgi code where it will exit after 500
> requests.
>
> I can't seem to find any comments in the code as to why this is so. Any
> ideas?
>
> I would like to see this error less, so I may up the limit. However when
> I do agressive testing using the apache bench program, it will die too
> much and stay dead for a while (due to some fcgi timeouts it looks
> like), which seems bad as it could fail under high loads (although it
> would start up again eventually).
>
>
>
> On Wed, 20 Aug 2003 12:10:17 -0500, Nick Bartos wrote:
>
>> I am running php with fastcgi. Everything appears to be working fine
>> except for some errors in my logs, which I get about every 3-4 hours:
>>
>> [Tue Aug 19 17:20:48 2003] [warn] FastCGI: (dynamic) server
>> "/var/www/php/php.fcgi" (pid 22390) terminated by calling exit with
>> status '0'
>>
>> [Tue Aug 19 17:20:48 2003] [warn] FastCGI: (dynamic) server
>> "/var/www/php/php.fcgi" (uid 45, gid 45) restarted (pid 26326)
>>
>>
>> From my understanding, fastcgi is supposed to keep 5 servers running by
>> default even if there is no demand for them. This is a very low
>> traffic server right now (really just 2 users for webmail). I leave my
>> webmail window open all night, which refreshes every 30 seconds so it
>> shouldn't be idle anyway. Also it starts right back up, so I do not
>> think it has anything to do with idle timeouts.
>>
>> It seems funny that it exists with success, like if it will only run
>> for so long no matter what.
>>
>> Any ideas? I have tried the latest php and mod_fastcgi cvs snapshots.
>> It appears to be a problem with php (since mod_fastcgi shouldn't be
>> causing the php process to exit, at least I don't think), but of course
>> I can't be certain.

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Halo 2 - Master Chief Dies near the beginning The Magnificent Bastard Console Subjects 51 06-26-2007 2:10 PM
Keyes dies on me! Tim.T Console Subjects 27 06-26-2007 1:57 PM
Only 20 hours to go for this cpu converter Skook Ebay Technical Questions 0 05-31-2007 12:38 AM
Mfrs of Tungsten Carbide Wire,Bar & Tube Drawing Dies in all shapes & sizes. Inder Pal S Khurana Building An Internet Business 0 05-29-2007 1:38 AM


Featured Websites




All times are GMT +1. The time now is 12:25 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98