php-cgi.exe not terminating

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
northwst
-


Joined: 12 Jan 2006
Posts: 29

PostPosted: Wed Jun 14, 2006 5:09 am    Post subject: php-cgi.exe not terminating Reply with quote

I have already read this post http://www.aprelium.com/forum/viewtopic.php?t=8640
I have set my time out to 240 seconds... but for some reason I have 40-50 instances running and they wont terminate I have shut down abyss and they are still there 10 minutes after doing so....
here is a pic:


sorry so big.....
I know abyss is running in the pics...I did shut it down and waited to see if they would terminate...

I am running:
Abyss/2.3.2-X1-Win32 AbyssLib/2.3.2

PHP Version
5.1.4

MySQL
5.0.20a-nt

What do I need to do? if anything....Thank you.
_________________
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Wed Jun 14, 2006 7:41 am    Post subject: Reply with quote

This seems to be a bug yet again.

It occurs sometimes on my system but Im unable to recreate it.

In the mean time report it to aprelium and make a bat file with the following code in it to kill all the fast cgi processes:

Code:
@echo off
taskkill /f /IM php-cgi.exe


Also if your site is very popular, I doubt its THAT popular, some cgi-processes will be reused for each "hit" you get. I usually have 3-5 at most.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
northwst
-


Joined: 12 Jan 2006
Posts: 29

PostPosted: Wed Jun 14, 2006 8:45 am    Post subject: Reply with quote

Thank you for that.... I dont have windows xp pro on this computer but I managed to get the file and sucessfully made the batch file... neat utility cant believe I have'nt seen it yet...I used to write all kinds of batch files for running multiple apps when I booted my computer.... anyway

I have this now as a download on my site incase anyone needs it.

I will submit this as a bug soon just not tonight...I need to see if I can recreate it.....going to bed.
_________________
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jun 14, 2006 10:21 am    Post subject: Re: php-cgi.exe not terminating Reply with quote

northwst,

Thank you for your report.

Could you please send us your abyss.conf file? Please do not forget to add in the email a reference to this forum message.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
cyberstyles
-


Joined: 04 Jun 2006
Posts: 31

PostPosted: Wed Jun 14, 2006 3:07 pm    Post subject: Reply with quote

I dont believe it to be a bug I had the same problem once as well if you didnt use it.

Use the prepackaged php5 abyss has when i used php5 from the creator i would get php and cgi instances and they wouldnt terminate. when i uninstalled php5 and used the abyss prepackage then it stopped all that termination problem.

hoped this helped.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Wed Jun 14, 2006 5:00 pm    Post subject: Reply with quote

So it looks like earlier versions of PHP could be the culprit?
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
northwst
-


Joined: 12 Jan 2006
Posts: 29

PostPosted: Wed Jun 14, 2006 11:52 pm    Post subject: Reply with quote

ok bug is submitted....

I thought of the preconfigured php as well...I used it when I first set up abyss...but have upgraded it and changed some things in the php.ini file...so that could be it...

do you think since I upgraded from php 5.0* to 5.1.4 that could be the problem?

"I am not sure if this is related but Photoshop CS2 really sucks up the memory and cpu lately...whats wierd is that I have PS CS installed also and it is fine.... it works ok if abyss is not running... and it will work ok if I just let it sit undisturbed for 20 minutes while it is using all the cpu....then all of a sudden it works great but after a while it will do it again... wierd...."
this is just a little more info....like I said dont know if it could be related....and just to see if anyone else has the same issue...


I have three instances of php-ini.exe running from last night.... I will start to track my habits and my site to see what could be causing it...
_________________
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jun 15, 2006 11:19 am    Post subject: Reply with quote

northwst,

We do not think PHP version number is a problem. But we'll continue our investigations.

By the way, our latest preconfigured PHP package is using the latest PHP 5 release 5.1.4.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Sun Jun 25, 2006 3:23 pm    Post subject: Reply with quote

I also cannot get php-cgi.exe to terminate. At present there are 22 instances running. Although the latest version of 2.3.2 and Aprelium configured php 5.1.4 has fixed the 100% cpu usage. My specs are as follows:

Windows XP SP2
Abyss X2 Ver.2.3.2
PHP 5.1.4 (Aprelium configured version) - tried my php.ini and unchanged.
Fast cgi is configured to pipes and timeout configured to default of 240 secs (I did try 60 and 120 secs with same results).

I am running Inquisitors killtask bat file scheduled to terminate php-cgi.exe instances every 6 hours in the task scheduler.
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jun 26, 2006 10:00 am    Post subject: Reply with quote

mg66,

Thank you for reporting this problem. We're working on reproducing it and on fixing this behavior. We'll contact you as soon as a patch is available for tests.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
transmission1
-


Joined: 04 Feb 2004
Posts: 2
Location: UK

PostPosted: Tue Jun 27, 2006 9:58 am    Post subject: Reply with quote

I also have the same problem - just checked this morning and found about 25 instances of php-cgi.exe running.

Windows XP SP2
Abyss X2 Ver.2.3.2
PHP 5.1.4

I would be interested in a fix if possible because I'm going to be on holiday soon and out of the country for two weeks and I'm worried the server will crash whilst I'm gone and can't guarantee that I will have remote access where I'm going.

Thanks
Simon
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jun 27, 2006 10:16 am    Post subject: Reply with quote

transmission1 wrote:
I also have the same problem - just checked this morning and found about 25 instances of php-cgi.exe running.

Windows XP SP2
Abyss X2 Ver.2.3.2
PHP 5.1.4

I would be interested in a fix if possible because I'm going to be on holiday soon and out of the country for two weeks and I'm worried the server will crash whilst I'm gone and can't guarantee that I will have remote access where I'm going.

Thanks
Simon


Try setting the batch script I posted to execute every hour. That should help.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jun 27, 2006 1:23 pm    Post subject: Reply with quote

transmission1,

The other workaround is to set PHP to use the CGI/ISAPI interface instead of FastCGI.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
benyboi
-


Joined: 10 May 2007
Posts: 3

PostPosted: Thu May 10, 2007 8:47 pm    Post subject: Reply with quote

has this issue been solved? i am getting lots of instances running..

i am using apache with the preconfigured abyss php package?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu May 10, 2007 8:50 pm    Post subject: Reply with quote

The package is for abyss, not apache... Surely you should know that through common sense.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
benyboi
-


Joined: 10 May 2007
Posts: 3

PostPosted: Thu May 10, 2007 8:54 pm    Post subject: Reply with quote

yeh but it's the only package that works with apache on windows! i tried installing the .dll file in the zip that comes from php.net but it just gives blank pages.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu May 10, 2007 8:56 pm    Post subject: Reply with quote

The fastCGI issue shouldnt be there as Im sure it was fixed in this php version. Its normal for them to stay for a certain time period because thats the point of it (the exe stays loaded). It should disappear after a timeout set in your configuration.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 14, 2007 1:38 pm    Post subject: Reply with quote

benyboi,

Our preconfigured package will work with Abyss Web Server out of the box. Unfortunately if you are using it with another server, we cannot help.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
benyboi
-


Joined: 10 May 2007
Posts: 3

PostPosted: Mon May 14, 2007 2:16 pm    Post subject: Reply with quote

ok, i'm trying out the abyss webserver now.

is there anyway to install php as the .dll instead of php-cgi.exe? so that php is loaded into the server rather than just an application on the side?

thanks
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon May 14, 2007 4:39 pm    Post subject: Reply with quote

benyboi wrote:
ok, i'm trying out the abyss webserver now.

is there anyway to install php as the .dll instead of php-cgi.exe? so that php is loaded into the server rather than just an application on the side?

thanks


There is, ISAPI, but it will bring the server down if php crashes. You are better off with CGI/fastCGI for reliability.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI 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