Apache steps on the brake. Maximum confusion!
Posted: Thu Dec 05, 2002 10:12 am
I have one Linux machine that operates as a web and mysql server in a LAN connected to the internet client-wise through an ISDN router.
The configuration is:
Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk) FrontPage/5.0.2.2623 PHP/4.2.3. And one Bind server to get DNS for my sites.
Its php direcories are mounted on a client machine with NFS.
Now and then, I am also connected to the server through SSH.
The apache server is set up with several virtual servers on one IP, each virtual server has unique DocumentRoot's, i.e.:
site1.domain.com 192.168.0.60
site2.domain.com 192.168.0.60
site3.domain.com 192.168.0.60
site4.domain.com 192.168.0.60
Let's say site4 has one single file: index.php
I browse it, it is fast and reliable...
Then i dublicate that configuration to another site called site5, with exactly the same content.
Here shows a mysterious (definetly not logic, got to be a goblin, ghost or some evil spirit
) problem:
The communtication to this new site5 is sooooo slooooow. It is accessed the same way as the other sites but takes 10 to 20 times more time to deliver pages.
The pages* are small, about 10kB ore something.
I have checked different log files to see if there are messages but none of them told me anything. Here they are:
/var/log/syslog
/var/log/httpd/error_log
my php error log file
Are there other files I should consider consulting?
I have tried to access the page with mysql shut off, in case some database connection was slow.
There was no difference except that after 10 seconds, an error message was delivered telling me about problems connecting to mysql... Of course...
So I don't understand what could be wrong
I have 8 virtual servers resolved by 8 entries in bind. It can't be a performance issue about having too many servers, right?
Even after rebooting the whole server, though accessing this page before any other**, the crap is slow.
I'm lost in the space of IP packets!
Thank you for any comments!
* I use index.php to generate several different files. (Don't ask me why, I did it for fun...)
** ...in case there was a infinite loop in a PHP script.
The configuration is:
Apache-AdvancedExtranetServer/1.3.26 (Mandrake Linux/6.1mdk) FrontPage/5.0.2.2623 PHP/4.2.3. And one Bind server to get DNS for my sites.
Its php direcories are mounted on a client machine with NFS.
Now and then, I am also connected to the server through SSH.
The apache server is set up with several virtual servers on one IP, each virtual server has unique DocumentRoot's, i.e.:
site1.domain.com 192.168.0.60
site2.domain.com 192.168.0.60
site3.domain.com 192.168.0.60
site4.domain.com 192.168.0.60
Let's say site4 has one single file: index.php
I browse it, it is fast and reliable...
Then i dublicate that configuration to another site called site5, with exactly the same content.
Here shows a mysterious (definetly not logic, got to be a goblin, ghost or some evil spirit
The communtication to this new site5 is sooooo slooooow. It is accessed the same way as the other sites but takes 10 to 20 times more time to deliver pages.
The pages* are small, about 10kB ore something.
I have checked different log files to see if there are messages but none of them told me anything. Here they are:
/var/log/syslog
/var/log/httpd/error_log
my php error log file
Are there other files I should consider consulting?
I have tried to access the page with mysql shut off, in case some database connection was slow.
There was no difference except that after 10 seconds, an error message was delivered telling me about problems connecting to mysql... Of course...
So I don't understand what could be wrong
I have 8 virtual servers resolved by 8 entries in bind. It can't be a performance issue about having too many servers, right?
Even after rebooting the whole server, though accessing this page before any other**, the crap is slow.
I'm lost in the space of IP packets!
Thank you for any comments!
* I use index.php to generate several different files. (Don't ask me why, I did it for fun...)
** ...in case there was a infinite loop in a PHP script.