View previous topic :: View next topic |
Author |
Message |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Mon Aug 11, 2003 11:21 pm Post subject: PHP4.3.2 really slow to respond |
|
|
Hi
Just updated to PHP 4.3.2, on Abyss 1.1.6 (Win XP Home).
Problem is that suddenly my php scripts take for ever to load. For example, a really basic script just took 25 seconds to produce any output in my browser. Here's how basic it is ...
<?php
$v = 3;
echo "The value is $v";
?>
Anyone know what might be causing this to be so slow? I hope so!
Martin Taylor |
|
Back to top |
|
 |
yalrighty -
Joined: 24 Jun 2003 Posts: 99
|
Posted: Tue Aug 12, 2003 2:07 am Post subject: |
|
|
Don't use the windows installer to install php first - if you have used the full zip of php and not the windows installer, have you tried restarting abyss server or even the entire machine? |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Tue Aug 12, 2003 1:30 pm Post subject: |
|
|
OK, I did use the Windows installer, so I'll try uninstalling and then using the full zip version instead, and I'll report back. What is it about the Win install that might cause the problem, d'you think?
Meantime, fwiw, some scripts work normally at first, but then if I refresh the page a few times, they go slow. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Aug 12, 2003 3:11 pm Post subject: Re: PHP4.3.2 really slow to respond |
|
|
docdunning,
That's strange! With the same configuration as yours (Windows XP, PHP 4.3.2 from the Windows Installer and Abyss 1.1.6) the script works at a normal speed.
Does the same speed problem occur with Perl and the following script for example (save it as test.pl) ?
Code: |
print "Content-type: text/html\n\n";
$v=3;
print "The value is $v";
1;
|
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Tue Aug 12, 2003 8:17 pm Post subject: |
|
|
Hi
Not sure that I have Perl installed ... how would I tell? I only use the webserver to test my PHP pages before uploading them to my webspace, so I havent tried Perl at all.
Meantime, I've reinstalled both PHP (at version 4.3.0 this time, from the raw .zip files), and Abyss 1.1.6. The little script in my example still always takes about 20-30 secs to load. Other more complex pages seem to be OK on a first load and then for a few refreshes, but then usually on about the 4th try, they give up and go slow. Really weird.
So ... as a comparison I just installed Sambar (maybe I shouldnt mention that here?) and everything works fine - consistent quick responses. Now, of course, Sambar uses the ISAPI module and not the .exe, so there's a difference straight away.
To be helpful to you, I ought to try some other servers, perhaps, but I tried to install Apache once and couldnt work it out. I used Xitami for some time but can't get that to work under XP. So I'm stuck for ways to narrow down the problem.
At least I can use S****r in the meantime, but I's still like to sort out why it is that the PHP/Abyss combination isnt working properly, if possible.
Martin Taylor |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Aug 13, 2003 1:39 pm Post subject: |
|
|
Can you please install Perl as described in http://www.aprelium.com/abyssws/perl.html and do the test with the small script listed above? This can help us to locate the problem.
By the way, can you try using the Windows installer version of PHP. Have you done some modifications to php.ini that may be the cause of these high reponse times? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Wed Aug 13, 2003 7:23 pm Post subject: |
|
|
Hi
OK, I'll give that a try ... and I'll let you know.
Martin :) |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Wed Aug 13, 2003 8:03 pm Post subject: |
|
|
OK. Installed Perl, and tried your script, which runs instantly, and refreshes instantly.
Given that this PC has been powered off overnight, so the server and PHP are all fresh copies, I tried the PHP version as well, and :? it's slow.
I've not done a "Windows install" of PHP yet, but in the meantime, I've amended the simple PHP script to show the time of day. What happens is - when I click Refresh, I get the new content shown straight away. I know, because the time display changes. But the browser progress bar keeps struggling across for another 20 seconds or so, and then finally disappears. Its like the page is complete, but the browser doesnt realise.
This is in IE6 .. thinks .. what happens in Opera/NS4/NS7?
Martin
Edit: I havent done anything with the recommended php.ini, other than to set the doc root, and to add in the gd2 extension. I've still got Abyss set up as per your instructions, with REDIRECT_STATUS set to 200. |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Wed Aug 13, 2003 8:31 pm Post subject: |
|
|
Just tried the time of day PHP script in Opera 7, NS4 and NS7.
Code: | <?php
$v = 3;
echo "The value is $v at ".date("h:i:s");
?> |
They all do the same, in that they sometimes refresh immediately, but more often, they sit and wait, saying "Receiving data from 127.0.0.1 ...". Interesting though that NS4 shows the number of bytes received while it waits, and shows "26 bytes read" while the progress indicator flits to and fro. The page meantime correctly shows "The value is 3 at 08:19:55", which is of course 26 bytes.
Eventually they all complete - but I can't tell what they're doing or waiting for in the meantime. I've called up the XP task manager, and php.exe is showing as loaded, but not doing anything.
Martin |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Aug 14, 2003 12:35 pm Post subject: |
|
|
Since the small Perl script works fine, the problem is not related to Abyss and its CGI interface. PHP seems to have some problems on your system to run at full speed. Can you please send us to support@aprelium.com your php.ini file to check it? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Thu Aug 14, 2003 1:10 pm Post subject: |
|
|
Will do ... a bit later on today. Thanks for your help. |
|
Back to top |
|
 |
chiweb -
Joined: 20 Aug 2003 Posts: 3
|
Posted: Wed Aug 20, 2003 9:20 am Post subject: Well, I get the same problem here!!! |
|
|
I have installed PHP and I get the sam EXACT slow response from anll of my scripts. I also have active state perl installed which performs flawlessly.
Also, when using the competitions web server (ya know the S***R guys) there is no problem.
What should I do??? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Aug 20, 2003 12:27 pm Post subject: Re: Well, I get the same problem here!!! |
|
|
chiweb wrote: | I have installed PHP and I get the sam EXACT slow response from anll of my scripts. I also have active state perl installed which performs flawlessly.
Also, when using the competitions web server (ya know the S***R guys) there is no problem.
What should I do??? |
The so-called competition web server uses the PHP module and not PHP CGI, so you're just comparing the PHP module and the PHP CGI. And as you said, Perl works flawlessly, so this isn't Abyss fault with CGI interpreters. So, it is really a PHP problem that deserves to be reported to the PHP team. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
chiweb -
Joined: 20 Aug 2003 Posts: 3
|
Posted: Wed Aug 20, 2003 6:14 pm Post subject: PHP slow to respond |
|
|
Quote: | The so-called competition web server uses the PHP module and not PHP CGI, so you're just comparing the PHP module and the PHP CGI. And as you said, Perl works flawlessly, so this isn't Abyss fault with CGI interpreters. So, it is really a PHP problem that deserves to be reported to the PHP team. |
Please understand that I am in no way knocking the Abyss web server, In fact I believe it is one of the best there is because of it's simplicity to set up and administer and it's speed. I am sure it is a php problem, what i suppose my real question is will abyss ever use the php module rather than the cgi?
BTW: This problem also occurs with older PHP installations.
Thanks for a great product!
chiweb |
|
Back to top |
|
 |
chiweb -
Joined: 20 Aug 2003 Posts: 3
|
Posted: Thu Aug 21, 2003 9:12 am Post subject: |
|
|
Quote: | Quote:
The so-called competition web server uses the PHP module and not PHP CGI, so you're just comparing the PHP module and the PHP CGI. And as you said, Perl works flawlessly, so this isn't Abyss fault with CGI interpreters. So, it is really a PHP problem that deserves to be reported to the PHP team.
Please understand that I am in no way knocking the Abyss web server, In fact I believe it is one of the best there is because of it's simplicity to set up and administer and it's speed. I am sure it is a php problem, what i suppose my real question is will abyss ever use the php module rather than the cgi?
BTW: This problem also occurs with older PHP installations.
|
YAY!!! I figured it out!
There is a logitech mouseware file called Logi_MwX.exe that loads at startup with windows which conflicts somehow with php.exe. When I disable this file (through msconfig panel) and reboot, php runs flawlessly, When I reactivate the logitech file the problem returns, I permanently removed this file from the registry (HKLM/current version/run) and Voila!!
hope this helps someone else as I spent 2 days ripping out my hair!!
Thanx again for a great producct.
signed: the now Bald Chiweb |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Aug 21, 2003 3:45 pm Post subject: Re: PHP slow to respond |
|
|
Quote: |
what i suppose my real question is will abyss ever use the php module rather than the cgi?
|
Thanks, we are working on modules support. It will be available in the next major release. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Fri Dec 05, 2003 9:27 pm Post subject: |
|
|
Hi
Been ages getting round to replying, but I've just installed the latest Abyss and the PHP slow response wasnt fixed, so I came back here to see if anything had been found.
Anyway, what OS are you on? I have a Logitech mouse, but that module you mention isnt running, presumably because I'm on XP ... maybe the Logitech s/w runs as a service under XP. Also, when you stop that .exe, doesnt it mean that you lose things like the programmable mouse buttons?
Edit:
I did find that .exe in my msconfig, but I really don't want to remove it, because it enables the middle button, so I'll carry on with S****r for the time being - but thanks for the info. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Dec 07, 2003 7:25 pm Post subject: |
|
|
docdunning,
Why not upgarde to PHP 4.3.4? The problem is not with Abyss but with the PHP version you run (according to our tests, Abyss can run an average of 10 PHP scripts per second on a 600MHz Windows machine). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Mon Dec 08, 2003 1:58 am Post subject: |
|
|
Hi
I have upgraded to PhP4.3.4, and ... sorry, but I'm still getting the problem. Just to repeat, I load a page (e,g. a simple phpinfo() script) and click Refresh to check the page reload time. Sometimes its quick, and sometimes it just sits and waits for ages.
This screen image shows XP Task Manager over IE6, just after I've clicked Refresh a couple of times. Interesting that abyssws.exe appears twice, although that's what happens after I start the server, before the browser is even loaded. And see how php.exe is actually in there 4 times. But none of them is using any CPU. Its just all in a wait state, and eventually the page finishes loading, and one by one the php.exe's disappear, and I'm just left with the two abyssws.exe entries. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Dec 08, 2003 4:45 am Post subject: |
|
|
docdunning;
The two abyssws.exe isn't a problem. This is how the new version works. What's strange is the fact that php.exe is still running for a long time after it finishes.
Can you give us an estimation of the life-time of a php.exe process (the time it remains in the task list until it ends)? Is it similar to your CGI Timeout value? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Mon Dec 08, 2003 10:25 pm Post subject: |
|
|
Hi again
OK - I think that in all cases the page loads and displays quickly. But the progress bar on the browser still crawls slowly across, and php.exe stays in the task list, for almost exactly 30 seconds. It is always the same length of time. How would I know whether this is the timeout value?
Edit - Aha, I just found the CGI Timeout in the abyss.conf file, and yes, that is set to 30. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Dec 09, 2003 1:48 am Post subject: |
|
|
docdunning,
Can you do this to help us locate the problem: set the CGI Timeout value to 50 and redo the test. How must the PHP.exe is kept alive? 30 seconds or 50 seconds?
Can you do also the test with a simple script such as:
Code: | <?php
phpinfo();
?> |
Do you have the same results with this script?
You can send us the results of these experiments to support@aprelium.com as well as your abyss.conf file and your php.ini file. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Tue Dec 09, 2003 1:50 pm Post subject: |
|
|
OK, will do. Thanks. |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Tue Dec 09, 2003 2:10 pm Post subject: |
|
|
Quote: | Back a while, Chiweb said "There is a logitech mouseware file called Logi_MwX.exe that loads at startup with windows which conflicts somehow with php.exe." |
Well, it looks like thats the problem here too. On Task Manager, there's a task EM_EXEC.exe which is the Logitech mouse software (allows a double click on the middle button, say). If I stop that task, PHP runs happily with Abyss. When that task is running, then I usually get the problem where PHP hangs.
But I want to keep that task running, so ... do you think that it is PHP or Abyss that's conflicting with EM_EXEC?
BTW, I tried disabling ZoneAlarm and NAV too, but that made no difference.
Meantime, I've sent you an email with the config files. |
|
Back to top |
|
 |
docdunning -
Joined: 11 Aug 2003 Posts: 14
|
Posted: Tue Dec 09, 2003 2:35 pm Post subject: |
|
|
Just found a newsgroup on Google that says that this problem has also been found by Apache users and OmniHTTPD users.
So it looks like it's not Abyss thats the problem, which is good news :)
But now its something between Logitech and PHP, which is odd. I'll have to try emailing Logitech and see if they wnat to help at all.
Using the ISAPI version of PHP, with Sambar, this problem doesnt happen, though. |
|
Back to top |
|
 |
|