View previous topic :: View next topic |
Author |
Message |
northwst -
Joined: 12 Jan 2006 Posts: 29
|
Posted: Wed Jun 14, 2006 5:09 am Post subject: php-cgi.exe not terminating |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Wed Jun 14, 2006 7:41 am Post subject: |
|
|
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 |
|
|
northwst -
Joined: 12 Jan 2006 Posts: 29
|
Posted: Wed Jun 14, 2006 8:45 am Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jun 14, 2006 10:21 am Post subject: Re: php-cgi.exe not terminating |
|
|
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 |
|
|
cyberstyles -
Joined: 04 Jun 2006 Posts: 31
|
Posted: Wed Jun 14, 2006 3:07 pm Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Wed Jun 14, 2006 5:00 pm Post subject: |
|
|
So it looks like earlier versions of PHP could be the culprit? _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
northwst -
Joined: 12 Jan 2006 Posts: 29
|
Posted: Wed Jun 14, 2006 11:52 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jun 15, 2006 11:19 am Post subject: |
|
|
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 |
|
|
mg66 -
Joined: 15 Aug 2004 Posts: 85 Location: USA, Illinois
|
Posted: Sun Jun 25, 2006 3:23 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jun 26, 2006 10:00 am Post subject: |
|
|
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 |
|
|
transmission1 -
Joined: 04 Feb 2004 Posts: 2 Location: UK
|
Posted: Tue Jun 27, 2006 9:58 am Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Jun 27, 2006 10:16 am Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Jun 27, 2006 1:23 pm Post subject: |
|
|
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 |
|
|
benyboi -
Joined: 10 May 2007 Posts: 3
|
Posted: Thu May 10, 2007 8:47 pm Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Thu May 10, 2007 8:50 pm Post subject: |
|
|
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 |
|
|
benyboi -
Joined: 10 May 2007 Posts: 3
|
Posted: Thu May 10, 2007 8:54 pm Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Thu May 10, 2007 8:56 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon May 14, 2007 1:38 pm Post subject: |
|
|
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 |
|
|
benyboi -
Joined: 10 May 2007 Posts: 3
|
Posted: Mon May 14, 2007 2:16 pm Post subject: |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Mon May 14, 2007 4:39 pm Post subject: |
|
|
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 |
|
|
|