Everything slower after installing Apache 2

skyraider

Verified User
Joined
Jun 9, 2006
Messages
10
Hi,

I have a CentOS server that slowed down in the following areas after I upgraded from Apache 1.3.x to 2.59:

- SFTP login sometimes takes 5-10 seconds longer than normal
- the shell sometimes takes 5-10 seconds longer than normal to connect and ask for a username
- sometimes, typing in shell commands becomes slow (i.e., the shell will only let me type 1 character per 5 seconds)
- some http requests my PHP/MYSQL-produced pages produce that 'server may be busy' page you see in firefox (500 error, I think?)
- even directadmin takes two to five times longer to load

.. yet:

- CPU load is only about 2%
- download speed for static files from the server seems to be normal

It should be noted that I have a 10mbps (megabits) line, and I use about 2/3 of that capacity each month.

Server specs:
Pentium 4 CPU 3.00GHz
Total Memory 1017284 kB
Free Memory 841720 kB
Total Swap Memory 1048568 kB
Free Swap Memory 1048424 kB
Apache 2.0.59
DirectAdmin 1.28.0
Named 9.2.4
ProFTPd 1.3.0
sshd

PHP 4.4.4
MySql 4.1.20

And here's some odd stuff from the apache error log.. security certificate stuff? huh? note that the "apache configured" stuff is because of when I restarted apache after turning off extendedstatus, which I used to get the CPU load to quote in this post.

[Mon Oct 30 08:56:21 2006] [notice] caught SIGTERM, shutting down
[Mon Oct 30 08:56:22 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:56:22 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:56:22 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 30 08:56:22 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:56:22 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:56:22 2006] [notice] Apache configured -- resuming normal operations
[Mon Oct 30 08:58:47 2006] [notice] caught SIGTERM, shutting down
[Mon Oct 30 08:58:47 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:58:47 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:58:47 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 30 08:58:48 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:58:48 2006] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Oct 30 08:58:48 2006] [notice] Apache configured -- resuming normal operations

An odd line from the directadmin error log:

2006:10:30-08:37:58: Socket write error: fd is connected to a pipe or socket whose reading end is closed. When this happens the writing process will also receive a SIG_PIPE signal. (Thus, the write return value is seen only if the program catches, blocks or ignores this signal.)

Any ideas as to what could be causing this slowdown, and what I can do about it?

Thanks so much.
 
Last edited:
Back
Top