My site is too slow!
I have a problem in the site not the server!?!?!?I have a dedicated server AMD Athlon(tm) XP 3000+ with 512 MB RAM
The server work smoothly and the server load is normal and the memory used is pretty good ... but the website which is the only one site in the server is too slow and the images loading are painful ... the traceroute doesn't show any thing weird
I have hosting One vB forum only in this server and there is no other scripts and I don't know why I'm facing this problem
is this apache problem !?
or in the configuration!
I will post the server status maybe you will help me in analyzing the problem
CentOS 3.4 i686
Server Load 0.52 (1 cpu) - normaly 40
Memory Used 47.2 % - normaly 45
Swap 0.875 %
Server Version: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Server Built: Mar 12 2005 15:15:53
--------------------------------------------------------------------------------
Current Time: Sunday, 10-Apr-2005 08:13:07 EDT
Restart Time: Saturday, 09-Apr-2005 08:20:48 EDT
Parent Server Generation: 1
Server uptime: 23 hours 52 minutes 19 seconds
Total accesses: 193611 - Total Traffic: 1.8 GB
CPU Usage: u49.5 s2.52 cu.08 cs.1 - .0607% CPU load
2.25 requests/sec - 21.8 kB/second - 9.7 kB/request
22 requests currently being processed, 6 idle servers
ps aux
PHP Code:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1512 92 ? S Apr09 0:04 init
root 2 0.0 0.0 0 0 ? SW Apr09 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SW Apr09 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN Apr09 0:00 [ksoftirqd/0]
root 7 0.0 0.0 0 0 ? SW Apr09 0:00 [bdflush]
root 5 0.0 0.0 0 0 ? SW Apr09 0:04 [kswapd]
root 6 0.0 0.0 0 0 ? SW Apr09 0:10 [kscand]
root 8 0.0 0.0 0 0 ? SW Apr09 0:00 [kupdated]
root 9 0.0 0.0 0 0 ? SW Apr09 0:00 [mdrecoveryd]
root 13 0.0 0.0 0 0 ? SW Apr09 0:00 [kjournald]
root 478 0.0 0.0 0 0 ? SW Apr09 0:00 [kjournald]
root 479 0.0 0.0 0 0 ? SW Apr09 0:00 [kjournald]
root 480 0.0 0.0 0 0 ? SW Apr09 0:00 [kjournald]
root 481 0.0 0.0 0 0 ? SW Apr09 0:00 [kjournald]
root 482 0.0 0.0 0 0 ? SW Apr09 0:01 [kjournald]
root 893 0.0 0.0 1592 260 ? S Apr09 0:00 syslogd -m 0
root 897 0.0 0.0 1528 36 ? S Apr09 0:00 klogd -x
root 916 0.0 0.0 1588 160 ? S Apr09 0:00 mdadm --monitor -
root 931 0.0 0.0 83576 156 ? S Apr09 0:01 /sbin/auditd
named 995 0.0 0.3 36312 1620 ? S Apr09 0:02 /usr/sbin/named -
root 1008 0.0 0.0 3664 312 ? S Apr09 0:00 /usr/sbin/sshd
root 1022 0.0 0.1 2132 452 ? S Apr09 0:00 xinetd -stayalive
root 1040 0.0 0.2 6048 1128 ? S Apr09 0:00 chkservd
mailnull 1093 0.0 0.2 6628 1224 ? S Apr09 0:00 /usr/sbin/exim -b
mailnull 1097 0.0 0.2 6616 1048 ? S Apr09 0:00 /usr/sbin/exim -t
root 1103 0.0 0.1 2916 704 ? S Apr09 0:00 antirelayd
root 1132 0.0 0.9 10204 4180 ? S Apr09 0:00 cppop - accepting
root 1162 0.0 0.3 9752 1380 ? S Apr09 0:00 /usr/local/apache
root 1170 0.0 0.0 1604 236 ? S Apr09 0:00 crond
root 1187 0.0 0.0 4244 172 ? S Apr09 0:00 /bin/sh /usr/bin/
mysql 1220 0.0 8.1 68148 36596 ? S Apr09 0:05 /usr/sbin/mysqld
root 1347 0.0 0.1 6072 460 ? S Apr09 0:00 pure-ftpd (SERVER
root 1351 0.0 0.0 5596 60 ? S Apr09 0:00 /usr/sbin/pure-au
root 1367 0.0 0.4 9516 1932 ? S Apr09 0:00 cpsrvd - waiting
mysql 1378 0.0 8.1 68148 36596 ? S Apr09 0:00 /usr/sbin/mysqld
mysql 1379 0.0 8.1 68148 36596 ? S Apr09 0:07 /usr/sbin/mysqld
root 1381 0.0 0.8 12480 4012 ? SN Apr09 0:03 cpanellogd - slee
root 1385 0.0 0.4 8152 2072 ? S Apr09 0:00 cppop - accepting
mysql 1399 0.2 8.1 68148 36596 ? S Apr09 3:47 /usr/sbin/mysqld
mysql 1410 0.2 8.1 68148 36596 ? S Apr09 3:50 /usr/sbin/mysqld
cpanel 1411 0.0 0.0 3668 232 ? S Apr09 0:00 /usr/bin/stunnel-
mysql 1418 0.2 8.1 68148 36596 ? S Apr09 3:41 /usr/sbin/mysqld
mailman 1425 0.0 0.0 7212 116 ? S Apr09 0:00 /usr/bin/python2
mailman 1443 0.0 0.6 7188 2744 ? S Apr09 0:00 /usr/bin/python2
mailman 1444 0.0 0.6 7124 2844 ? S Apr09 0:00 /usr/bin/python2
mailman 1445 0.0 0.5 7136 2612 ? S Apr09 0:00 /usr/bin/python2
mailman 1446 0.0 0.5 7228 2600 ? S Apr09 0:00 /usr/bin/python2
mailman 1447 0.0 0.5 7220 2456 ? S Apr09 0:00 /usr/bin/python2
mailman 1448 0.0 0.5 7280 2648 ? S Apr09 0:00 /usr/bin/python2
mailman 1452 0.0 0.7 7172 3152 ? S Apr09 0:00 /usr/bin/python2
mailman 1453 0.0 0.7 7176 3152 ? S Apr09 0:00 /usr/bin/python2
root 1454 0.0 0.0 1528 80 ? S Apr09 0:00 /usr/sbin/portsen
root 1469 0.0 0.0 1512 68 tty1 S Apr09 0:00 /sbin/mingetty tt
root 1470 0.0 0.0 1520 68 tty2 S Apr09 0:00 /sbin/mingetty tt
root 1471 0.0 0.0 1516 68 tty3 S Apr09 0:00 /sbin/mingetty tt
root 1472 0.0 0.0 1524 68 tty4 S Apr09 0:00 /sbin/mingetty tt
root 1473 0.0 0.0 1512 68 tty5 S Apr09 0:00 /sbin/mingetty tt
root 1474 0.0 0.0 1516 64 tty6 S Apr09 0:00 /sbin/mingetty tt
mysql 1475 0.2 8.1 68148 36596 ? S Apr09 3:46 /usr/sbin/mysqld
mysql 1480 0.2 8.1 68148 36596 ? S Apr09 4:13 /usr/sbin/mysqld
mysql 2460 0.2 8.1 68148 36596 ? S Apr09 3:40 /usr/sbin/mysqld
mysql 3185 0.2 8.1 68148 36596 ? S Apr09 3:27 /usr/sbin/mysqld
mysql 3186 0.2 8.1 68148 36596 ? S Apr09 3:23 /usr/sbin/mysqld
mysql 8958 0.1 8.1 68148 36596 ? S Apr09 1:54 /usr/sbin/mysqld
mysql 14200 0.1 8.1 68148 36596 ? S 00:05 0:49 /usr/sbin/mysqld
mysql 14203 0.1 8.1 68148 36596 ? S 00:06 0:47 /usr/sbin/mysqld
mysql 14205 0.1 8.1 68148 36596 ? S 00:06 0:49 /usr/sbin/mysqld
mysql 14216 0.1 8.1 68148 36596 ? S 00:06 0:54 /usr/sbin/mysqld
mysql 14223 0.1 8.1 68148 36596 ? S 00:06 0:47 /usr/sbin/mysqld
mysql 14224 0.1 8.1 68148 36596 ? S 00:06 0:56 /usr/sbin/mysqld
mysql 14226 0.1 8.1 68148 36596 ? S 00:06 0:53 /usr/sbin/mysqld
mysql 14229 0.1 8.1 68148 36596 ? S 00:06 0:47 /usr/sbin/mysqld
mysql 14231 0.1 8.1 68148 36596 ? S 00:06 0:47 /usr/sbin/mysqld
mysql 14232 0.1 8.1 68148 36596 ? S 00:06 0:54 /usr/sbin/mysqld
mysql 14234 0.1 8.1 68148 36596 ? S 00:06 0:54 /usr/sbin/mysqld
mysql 14236 0.1 8.1 68148 36596 ? S 00:06 0:56 /usr/sbin/mysqld
mysql 14240 0.1 8.1 68148 36596 ? S 00:06 0:48 /usr/sbin/mysqld
mysql 14241 0.1 8.1 68148 36596 ? S 00:06 0:55 /usr/sbin/mysqld
mysql 14243 0.1 8.1 68148 36596 ? S 00:07 0:49 /usr/sbin/mysqld
mysql 14245 0.1 8.1 68148 36596 ? S 00:07 0:56 /usr/sbin/mysqld
root 16611 0.0 2.5 21920 11224 ? S 02:16 0:00 /usr/bin/spamd -d
root 16622 0.0 3.9 22412 17584 ? S 02:16 0:00 spamd child
root 16623 0.0 3.8 22404 17432 ? S 02:16 0:00 spamd child
root 16624 0.0 3.9 22404 17592 ? S 02:16 0:00 spamd child
root 16625 0.0 3.9 22404 17588 ? S 02:16 0:00 spamd child
root 16626 0.0 3.8 22404 17352 ? S 02:16 0:00 spamd child
nobody 30275 0.2 1.5 13096 6872 ? S 07:27 0:04 /usr/local/apache
nobody 30361 0.1 1.5 13264 7004 ? S 07:30 0:02 /usr/local/apache
nobody 30603 0.3 1.6 13528 7300 ? S 07:44 0:03 /usr/local/apache
nobody 30604 0.2 1.5 13264 7040 ? S 07:44 0:02 /usr/local/apache
nobody 30679 0.1 1.5 13364 7112 ? S 07:46 0:01 /usr/local/apache
nobody 30685 0.4 1.5 13088 6840 ? S 07:46 0:03 /usr/local/apache
nobody 30703 0.4 1.5 13084 6864 ? S 07:48 0:03 /usr/local/apache
nobody 30704 0.5 1.6 13616 7456 ? S 07:48 0:03 /usr/local/apache
nobody 30710 0.2 1.7 14064 7756 ? S 07:48 0:01 /usr/local/apache
nobody 30809 0.3 1.5 13280 7016 ? S 07:49 0:02 /usr/local/apache
nobody 30849 0.5 1.6 13508 7276 ? S 07:50 0:02 /usr/local/apache
nobody 30867 0.4 1.5 13064 6808 ? S 07:52 0:02 /usr/local/apache
root 30871 0.0 0.3 6864 1596 ? S 07:52 0:00 sshd: anabico [pr
anabico 30883 0.0 0.4 6880 1892 ? S 07:53 0:00 sshd: anabico@pts
anabico 30886 0.0 0.3 4256 1344 pts/0 S 07:53 0:00 -bash
root 30919 0.0 0.2 4224 976 pts/0 S 07:53 0:00 su -
root 30923 0.0 0.3 4264 1360 pts/0 S 07:53 0:00 -bash
root 30986 0.0 0.0 0 0 ? Z 07:53 0:00 [cppop <defunct>]
nobody 31049 0.0 1.4 12952 6656 ? S 07:55 0:00 /usr/local/apache
nobody 31074 0.3 1.6 13464 7196 ? S 07:56 0:00 /usr/local/apache
nobody 31084 0.1 1.6 13708 7204 ? S 07:56 0:00 /usr/local/apache
nobody 31091 0.4 1.5 13060 6792 ? S 07:57 0:00 /usr/local/apache
nobody 31098 0.3 1.4 12856 6564 ? S 07:57 0:00 /usr/local/apache
nobody 31116 0.6 1.5 13016 6752 ? S 07:59 0:00 /usr/local/apache
nobody 31117 0.7 1.4 12900 6604 ? S 07:59 0:00 /usr/local/apache
nobody 31118 0.2 1.2 12004 5712 ? S 07:59 0:00 /usr/local/apache
nobody 31125 0.5 1.3 12152 5888 ? S 07:59 0:00 /usr/local/apache
nobody 31126 0.0 0.7 9936 3184 ? S 07:59 0:00 /usr/local/apache
nobody 31127 0.0 0.7 9896 3204 ? S 07:59 0:00 /usr/local/apache
nobody 31140 2.1 1.3 12224 5944 ? S 07:59 0:00 /usr/local/apache
nobody 31141 0.0 0.7 9932 3144 ? S 07:59 0:00 /usr/local/apache
nobody 31142 0.0 0.5 9752 2256 ? S 07:59 0:00 /usr/local/apache
nobody 31143 0.0 0.5 9756 2324 ? S 07:59 0:00 /usr/local/apache
nobody 31147 0.0 0.5 9756 2312 ? S 07:59 0:00 /usr/local/apache
nobody 31148 1.7 1.3 12228 5932 ? S 07:59 0:00 /usr/local/apache
nobody 31149 1.4 1.4 12924 6584 ? S 07:59 0:00 /usr/local/apache
nobody 31150 0.0 0.5 9756 2320 ? S 07:59 0:00 /usr/local/apache
root 31151 0.0 0.1 2860 808 pts/0 R 07:59 0:00 ps aux
free
PHP Code:
total used free shared buffers cached
Mem: 447328 441856 5472 0 8288 181444
-/+ buffers/cache: 252124 195204
Swap: 1052216 84128 968088
top
PHP Code:
08:14:09 up 1 day, 0 min, 1 user, load average: 0.32, 0.48, 0.48
123 processes: 120 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 13.4% 4.4% 1.8% 0.2% 0.2% 5.2% 74.8%
Mem: 447328k av, 430168k used, 17160k free, 0k shrd, 9088k buff
328168k actv, 64016k in_d, 6468k in_c
Swap: 1052216k av, 85952k used, 966264k free 177636k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
1162 root 15 0 1528 1368 532 S 7.7 0.3 0:43 0 httpd
1220 mysql 15 0 39336 30M 1224 S 6.9 6.9 46:25 0 mysqld
31297 anabico 35 19 2592 2544 936 R N 4.5 0.5 0:26 0 webalizer
30883 anabico 15 0 1916 1840 1504 R 0.1 0.4 0:00 0 sshd
1 root 15 0 124 92 68 S 0.0 0.0 0:04 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
7 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
5 root 15 0 0 0 0 SW 0.0 0.0 0:04 0 kswapd
6 root 15 0 0 0 0 SW 0.0 0.0 0:11 0 kscand
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated
9 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
13 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
478 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
479 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
480 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
481 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
482 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 kjournald
893 root 15 0 256 236 172 S 0.0 0.0 0:00 0 syslogd
897 root 15 0 92 36 32 S 0.0 0.0 0:00 0 klogd
916 root 15 0 180 160 120 S 0.0 0.0 0:00 0 mdadm
931 root RT 0 204 116 68 S 0.0 0.0 0:01 0 auditd
995 named 25 0 5520 4896 1008 S 0.0 1.0 0:07 0 named
1008 root 15 0 484 288 244 S 0.0 0.0 0:00 0 sshd
1022 root 15 0 488 448 372 S 0.0 0.1 0:00 0 xinetd
1040 root 18 0 1596 712 312 S 0.0 0.1 0:00 0 chkservd
1093 mailnull 15 0 1144 1144 796 S 0.0 0.2 0:00 0 exim
1097 mailnull 15 0 972 972 636 S 0.0 0.2 0:00 0 exim
1103 root 15 0 544 464 272 S 0.0 0.1 0:00 0 antirelayd
1132 root 15 0 5052 3988 1844 S 0.0 0.8 0:00 0 cppop
1170 root 15 0 232 228 144 S 0.0 0.0 0:00 0 crond
1187 root 25 0 172 172 32 S 0.0 0.0 0:00 0 mysqld_safe
1347 root 15 0 584 368 296 S 0.0 0.0 0:00 0 pure-ftpd
1351 root 15 0 232 52 48 S 0.0 0.0 0:00 0 pure-authd
my.cnf
PHP Code:
[mysqld]
skip-innodb
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 64
wait_timeout = 7200
connect_timeout = 10
tmp_table_size = 64M
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
[mysqld_safe]
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
httpd.conf
PHP Code:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 50
ExtendedStatus On
I always trying to modify the fules httpd.conf and my.cnf to reach the maximum performance of the server but these days I faced this problem!!
the forum with 100 users online .. but before .. I reached 300 online without any problem