Results 1 to 22 of 22
-
09-03-2006, 04:00 PM #1Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
Help me find out why are my load averages so high
This box should have virtually no activity, but for some reason something is causing load. I cannot figure it out so I'm coming here.
Here is a printout from top:
15:55:17 up 6 days, 14:51, 2 users, load average: 4.57, 4.43, 4.28
94 processes: 92 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 0.0% user 0.5% system 0.0% nice 0.0% iowait 99.4% idle
Mem: 247172k av, 237168k used, 10004k free, 0k shrd, 6812k buff
158608k actv, 23060k in_d, 2308k in_c
Swap: 787176k av, 323524k used, 463652k free 31268k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
7 root 15 0 0 0 0 SW 0.3 0.0 12:15 0 kscand/Normal
8401 root 15 0 1176 1176 828 R 0.3 0.4 0:00 0 top
1 root 15 0 484 448 424 S 0.0 0.1 0:17 0 init
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_CPU0
9 root 15 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 3:28 0 kswapd
6 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 kscand/DMA
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/HighMem
10 root 15 0 0 0 0 SW 0.0 0.0 0:03 0 kupdated
11 root 23 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
53 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
637 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
967 root 15 0 564 524 484 S 0.0 0.2 0:32 0 syslogd
971 root 15 0 440 384 380 S 0.0 0.1 0:00 0 klogd
1050 named 15 0 6816 5680 776 S 0.0 2.2 3:18 0 named
1063 root 15 0 828 616 592 S 0.0 0.2 0:12 0 sshd
1077 root 15 0 704 620 552 S 0.0 0.2 0:05 0 xinetd
1094 ntp 15 0 2408 2408 2160 S 0.0 0.9 0:00 0 ntpd
1107 root 15 0 216 52 48 S 0.0 0.0 0:00 0 safe_mysqld
1145 root 15 0 244 60 56 S 0.0 0.0 0:00 0 couriertcpd
1148 root 15 0 312 140 136 S 0.0 0.0 0:00 0 courierlogger
1157 root 25 0 188 4 0 S 0.0 0.0 0:00 0 couriertcpd
1160 root 25 0 168 4 0 S 0.0 0.0 0:00 0 courierlogger
1167 root 15 0 184 4 0 S 0.0 0.0 0:01 0 couriertcpd
1173 root 15 0 176 4 0 S 0.0 0.0 0:01 0 courierlogger
1178 root 15 0 184 4 0 S 0.0 0.0 0:00 0 couriertcpd
1181 root 15 0 176 4 0 S 0.0 0.0 0:00 0 courierlogger
1189 qmails 15 0 156 96 64 S 0.0 0.0 1:07 0 qmail-send
1191 qmaill 15 0 200 136 132 S 0.0 0.0 0:09 0 splogger
1192 root 15 0 88 4 0 S 0.0 0.0 0:06 0 qmail-lspawn
1193 qmailr 15 0 148 128 60 S 0.0 0.0 0:04 0 qmail-rspawn
1194 qmailq 15 0 60 24 4 S 0.0 0.0 0:02 0 qmail-clean
1310 root 16 0 18664 4 0 S 0.0 0.0 0:02 0 spamd
1334 popuser 16 0 18580 4 0 S 0.0 0.0 0:01 0 spamd
1339 popuser 16 0 18584 4 0 S 0.0 0.0 0:01 0 spamd
1369 root 24 0 260 4 0 S 0.0 0.0 0:00 0 stunnel
Thanks!
-
09-03-2006, 04:03 PM #2Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
Got this one too about a week ago before the machine crashed:
15:33:41 up 5 days, 17:56, 1 user, load average: 15.02, 16.66, 16.73
101 processes: 100 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 2.9% user 1.7% system 0.0% nice 0.0% iowait 95.2% idle
Mem: 247172k av, 243872k used, 3300k free, 0k shrd, 2412k buff
155472k actv, 32136k in_d, 4264k in_c
Swap: 787176k av, 641140k used, 146036k free 25404k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
1314 root 15 0 5576 100 64 S 2.3 0.0 25:54 0 httpd
4163 root 16 0 1152 1152 840 R 0.3 0.4 0:00 0 top
4205 popuser 20 0 848 848 668 D 0.3 0.3 0:00 0 pop3d
1143 mysql 15 0 13428 5096 1140 S 0.1 2.0 23:18 0 mysqld
1 root 15 0 484 448 424 S 0.0 0.1 0:07 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_CPU0
9 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 1:50 0 kswapd
6 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/DMA
7 root 15 0 0 0 0 SW 0.0 0.0 4:35 0 kscand/Normal
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/HighMem
10 root 15 0 0 0 0 SW 0.0 0.0 0:02 0 kupdated
11 root 23 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
53 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
637 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
967 root 15 0 568 528 488 D 0.0 0.2 0:27 0 syslogd
971 root 19 0 440 384 380 S 0.0 0.1 0:00 0 klogd
1050 named 25 0 7128 4708 1136 S 0.0 1.9 2:47 0 named
1063 root 15 0 796 644 564 S 0.0 0.2 0:02 0 sshd
1077 root 15 0 736 648 588 S 0.0 0.2 0:03 0 xinetd
1094 ntp 15 0 2408 2408 2160 S 0.0 0.9 0:00 0 ntpd
1107 root 25 0 216 64 60 S 0.0 0.0 0:00 0 safe_mysqld
1145 root 15 0 244 104 56 S 0.0 0.0 0:01 0 couriertcpd
1147 root 15 0 344 212 168 S 0.0 0.0 0:00 0 courierlogger
1157 root 25 0 188 4 0 S 0.0 0.0 0:00 0 couriertcpd
1159 root 25 0 168 4 0 S 0.0 0.0 0:00 0 courierlogger
1167 root 15 0 252 112 64 S 0.0 0.0 0:00 0 couriertcpd
1173 root 15 0 344 212 168 S 0.0 0.0 0:00 0 courierlogger
1178 root 15 0 184 4 0 S 0.0 0.0 0:00 0 couriertcpd
1182 root 15 0 176 4 0 S 0.0 0.0 0:00 0 courierlogger
1189 qmails 15 0 184 172 92 S 0.0 0.0 1:32 0 qmail-send
1191 qmaill 15 0 224 212 156 S 0.0 0.0 0:10 0 splogger
1192 root 15 0 148 144 60 S 0.0 0.0 0:08 0 qmail-lspawn
1193 qmailr 15 0 164 140 72 S 0.0 0.0 0:03 0 qmail-rspawn
-
09-03-2006, 04:04 PM #3Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
When I logged onto the console after it appeared to be siezed, I got this message:
Code:Out of Memory: Killed process 4301 (mysqld). Out of Memory: Killed process 4000 (httpd). Out of Memory: Killed process 4291 (httpd). Out of Memory: Killed process 5436 (httpd). Out of Memory: Killed process 7954 (httpd).
-
09-03-2006, 04:40 PM #4Retired Moderator
- Join Date
- Nov 2002
- Location
- WebHostingTalk
- Posts
- 8,901
* Moved to Technical and Security Issues
SiriusI support the Human Rights Campaign!
Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.
-
09-03-2006, 07:30 PM #5Eternal Member
- Join Date
- Dec 2004
- Location
- New York, NY
- Posts
- 10,710
You seem to have a lot of memory used there and you seem to be swapping as well.
Can you paste the result from:
ps auxf
free -m
cat /proc/cpuinfoMediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business
-
09-03-2006, 07:54 PM #6Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
Thanks in advance for any ideas on what to do.
# ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1388 448 ? S Aug28 0:17 init
root 3 0.0 0.0 0 0 ? SW Aug28 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN Aug28 0:00 [ksoftirqd_CPU0]
root 9 0.0 0.0 0 0 ? SW Aug28 0:00 [bdflush]
root 5 0.0 0.0 0 0 ? SW Aug28 3:32 [kswapd]
root 6 0.0 0.0 0 0 ? SW Aug28 0:01 [kscand/DMA]
root 7 0.1 0.0 0 0 ? SW Aug28 12:26 [kscand/Normal]
root 8 0.0 0.0 0 0 ? SW Aug28 0:00 [kscand/HighMem]
root 10 0.0 0.0 0 0 ? SW Aug28 0:03 [kupdated]
root 11 0.0 0.0 0 0 ? SW Aug28 0:00 [mdrecoveryd]
root 53 0.0 0.0 0 0 ? SW Aug28 0:00 [khubd]
root 637 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 967 0.0 0.2 1448 524 ? S Aug28 0:33 syslogd -m 0
root 971 0.0 0.1 1380 384 ? S Aug28 0:00 klogd -x
named 1050 0.0 2.1 36192 5352 ? S Aug28 3:23 /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/na
root 1063 0.0 0.2 3520 520 ? S Aug28 0:12 /usr/sbin/sshd
root 8172 0.0 0.2 6844 684 ? S 15:50 0:03 \_ /usr/sbin/sshd
root 8195 0.0 0.3 4368 748 pts/4 S 15:50 0:00 \_ -bash
root 12334 0.0 0.3 2708 768 pts/4 R 19:51 0:00 \_ ps auxf
root 1077 0.0 0.2 2068 628 ? S Aug28 0:05 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp 1094 0.0 0.9 2412 2408 ? SL Aug28 0:00 ntpd -U ntp -g
root 1107 0.0 0.0 4208 52 ? S Aug28 0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mysql 17335 0.2 2.2 23560 5584 ? S Aug28 22:31 \_ /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/
root 1145 0.0 0.0 3328 116 ? S Aug28 0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1148 0.0 0.0 3220 212 ? S Aug28 0:00 /usr/sbin/courierlogger imapd
root 1157 0.0 0.0 3328 4 ? S Aug28 0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1160 0.0 0.0 3216 4 ? S Aug28 0:00 /usr/sbin/courierlogger imapd-ssl
root 1167 0.0 0.0 3328 112 ? S Aug28 0:01 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1173 0.0 0.0 3220 212 ? S Aug28 0:01 /usr/sbin/courierlogger pop3d
root 1178 0.0 0.0 3324 4 ? S Aug28 0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1181 0.0 0.0 3220 4 ? S Aug28 0:00 /usr/sbin/courierlogger pop3d-ssl
qmails 1189 0.0 0.0 1440 164 ? S Aug28 1:08 qmail-send
qmaill 1191 0.0 0.0 1384 208 ? S Aug28 0:09 \_ splogger qmail
root 1192 0.0 0.0 1404 56 ? S Aug28 0:06 \_ qmail-lspawn ./Maildir/
qmailr 1193 0.0 0.0 1400 128 ? S Aug28 0:05 \_ qmail-rspawn
qmailq 1194 0.0 0.0 1372 48 ? S Aug28 0:02 \_ qmail-clean
root 1310 0.0 0.0 25036 4 ? S Aug28 0:02 /usr/bin/spamd -d -c -a -m5 -H
popuser 1334 0.0 0.0 24952 4 ? S Aug28 0:01 /usr/bin/spamd --username=popuser --daemonize --helper-home-dir
popuser 1339 0.0 0.0 24956 4 ? S Aug28 0:01 /usr/bin/spamd --username=popuser --daemonize --helper-home-dir
root 1369 0.0 0.0 3512 4 ? S Aug28 0:00 /usr/sbin/stunnel /usr/local/psa/etc/stunnel.conf
root 1451 0.0 0.0 45920 80 ? S Aug28 0:07 /usr/local/psa/admin/bin/httpsd
psaadm 4007 0.0 0.0 50340 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4008 0.0 0.0 50860 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4009 0.0 0.0 51100 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4034 0.0 0.0 51200 12 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4036 0.0 0.0 50540 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4037 0.0 0.0 50860 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4117 0.0 0.0 49744 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4302 0.0 0.0 46100 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
root 1474 0.0 0.0 1448 148 ? S Aug28 0:01 crond
xfs 1503 0.0 0.0 5360 56 ? S Aug28 0:00 xfs -droppriv -daemon
root 1529 0.0 0.0 3412 24 ? S Aug28 0:00 rhnsd --interval 240
mailman 1556 0.0 0.0 7016 8 ? S Aug28 0:00 /usr/bin/python /var/mailman/bin/mailmanctl -s -q start
mailman 1557 0.0 0.4 7068 1124 ? S Aug28 0:08 \_ qrunner /var/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman 1558 0.0 0.2 7068 616 ? S Aug28 0:04 \_ qrunner /var/mailman/bin/qrunner --runner=BounceRunner:0:1
mailman 1559 0.0 0.3 7068 952 ? S Aug28 0:08 \_ qrunner /var/mailman/bin/qrunner --runner=CommandRunner:0:1
mailman 1562 0.0 0.5 7068 1312 ? S Aug28 0:09 \_ qrunner /var/mailman/bin/qrunner --runner=IncomingRunner:0:
mailman 1563 0.0 0.4 7108 1172 ? S Aug28 0:09 \_ qrunner /var/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman 1564 0.0 0.4 7152 1224 ? S Aug28 0:09 \_ qrunner /var/mailman/bin/qrunner --runner=OutgoingRunner:0:
mailman 1567 0.0 0.4 7060 1192 ? S Aug28 0:08 \_ qrunner /var/mailman/bin/qrunner --runner=VirginRunner:0:1
root 1586 0.0 0.0 1364 4 tty1 S Aug28 0:00 /sbin/mingetty tty1
root 1587 0.0 0.0 1364 4 tty2 S Aug28 0:00 /sbin/mingetty tty2
root 1588 0.0 0.0 1364 4 tty3 S Aug28 0:00 /sbin/mingetty tty3
root 1589 0.0 0.0 1364 4 tty4 S Aug28 0:00 /sbin/mingetty tty4
root 1590 0.0 0.0 1364 4 tty5 S Aug28 0:00 /sbin/mingetty tty5
root 1591 0.0 0.0 1356 4 tty6 S Aug28 0:00 /sbin/mingetty tty6
root 2712 0.0 0.0 0 0 ? DW Aug28 1:00 [pico]
root 1940 0.0 0.0 2308 4 ? S Aug28 0:00 login -- root
root 1947 0.0 0.0 4452 4 ttyS0 S Aug28 0:00 \_ -bash
root 2273 0.0 0.0 0 0 ? DW Aug29 0:00 [bash]
root 2802 0.0 0.0 0 0 ? DW Aug29 0:00 [bash]
root 4238 0.0 0.0 24696 92 ? S Aug29 0:05 /usr/sbin/httpd
root 31170 0.0 0.0 24692 4 ? S 04:26 0:00 \_ /usr/sbin/httpd
apache 31171 0.1 3.8 33384 9596 ? S 04:26 1:24 \_ /usr/sbin/httpd
apache 31199 0.1 2.5 37084 6220 ? S 04:26 1:16 \_ /usr/sbin/httpd
apache 31201 0.1 4.0 34124 10100 ? S 04:26 1:23 \_ /usr/sbin/httpd
apache 31203 0.1 4.9 34728 12344 ? S 04:26 1:19 \_ /usr/sbin/httpd
apache 31204 0.1 4.4 34348 10960 ? S 04:26 1:21 \_ /usr/sbin/httpd
apache 31210 0.1 3.9 34300 9736 ? S 04:26 1:18 \_ /usr/sbin/httpd
apache 31216 0.1 4.1 35228 10336 ? S 04:26 1:22 \_ /usr/sbin/httpd
apache 31218 0.1 2.5 31476 6248 ? S 04:26 1:18 \_ /usr/sbin/httpd
apache 31220 0.1 2.2 33288 5564 ? S 04:26 1:22 \_ /usr/sbin/httpd
apache 31224 0.1 4.8 34172 11912 ? S 04:26 1:20 \_ /usr/sbin/httpd
apache 2234 0.1 4.9 33616 12304 ? S 09:45 1:08 \_ /usr/sbin/httpd
apache 2235 0.1 2.6 32356 6440 ? S 09:45 1:06 \_ /usr/sbin/httpd
apache 2236 0.1 3.5 34700 8660 ? S 09:45 1:11 \_ /usr/sbin/httpd
apache 2237 0.1 2.7 35656 6848 ? S 09:45 1:08 \_ /usr/sbin/httpd
apache 2238 0.1 3.5 32904 8872 ? S 09:45 1:00 \_ /usr/sbin/httpd
apache 2241 0.1 3.7 33904 9272 ? S 09:45 1:12 \_ /usr/sbin/httpd
apache 2242 0.1 3.6 33160 8948 ? S 09:45 1:00 \_ /usr/sbin/httpd
apache 2243 0.1 3.6 33128 8968 ? S 09:46 1:04 \_ /usr/sbin/httpd
apache 2247 0.1 2.2 32932 5580 ? S 09:46 1:05 \_ /usr/sbin/httpd
apache 2249 0.2 4.1 37804 10180 ? S 09:46 1:13 \_ /usr/sbin/httpd
root 4409 0.0 0.0 0 0 ? DW Aug29 0:00 [bash]
# free -m
total used free shared buffers cached
Mem: 241 237 3 0 4 30
-/+ buffers/cache: 203 38
Swap: 768 337 431
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Celeron(R) CPU 2.00GHz
stepping : 9
cpu MHz : 2003.458
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 3997.69
Originally Posted by layer0
-
09-03-2006, 08:00 PM #7Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
these two were in the faq:
# vmstat 5 5
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
0 0 4 344984 5040 7300 28248 25 66 70 7 68 18 4 1 22
0 0 4 344984 5036 7272 28276 5 164 5 164 145 46 6 1 93
0 0 4 344980 5160 7272 28228 58 74 58 74 157 90 11 1 89
0 0 4 345104 4832 7240 28260 66 164 66 164 170 95 11 2 87
0 0 4 345104 4752 7196 28304 3 139 3 141 144 27 0 0 100
# uname -r
2.4.20-31.9
-
09-04-2006, 03:15 AM #8Disabled
- Join Date
- Aug 2006
- Posts
- 56
Upgrade your memory, it seems heavy iowait process and swap consuption in your box.
-
09-04-2006, 04:37 AM #9Quality Web Hosting Matters
- Join Date
- Mar 2006
- Location
- Servers
- Posts
- 1,590
Is it a VPS or own Dedicated ? And what is CPU , RAM ?
█ QHoster.com - Web Hosting with DDoS Protection | Shared & Reseller in Europe/North America
█ Linux/Windows RDP VPS 13 Locations : UK, US (5 states), Mexico, Canada, Bulgaria, Lithuania,
█ Italy, France, Germany,Netherlands, Switzerland, Rissia, Singapore | OpenVPN/PPTP Enabled
█ INSTANT | PayPal, Skrill, Payza, Bitcoin, WebMoney, Perfect Money, Ukash, CashU, paysafecard
-
09-04-2006, 10:54 AM #10Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
It's dedicated. 1/4gig ram; 2ghz celeron.
I can't believe 1/4 gig doesn't do it nowadays. Has linux/apache become that bloated? Back in Y2k, I had a P2 350 with 1/4 gig that had way more traffic then this thing has. Like 750k hits/day and the bottleneck was my T1 connection.
It seems like those apache processes are taking a lot of ram. Maybe I should tweak the httpd.conf file?
-
09-04-2006, 11:01 AM #11Quality Web Hosting Matters
- Join Date
- Mar 2006
- Location
- Servers
- Posts
- 1,590
Depends but even 512 is not good enought if you use MySQL, CPanel, SpamAssassin ... If it is really loaded server maybe 2GB of RAM is OK You may make some optimisations but I not sure will help you a lot with 256MB of RAM.
█ QHoster.com - Web Hosting with DDoS Protection | Shared & Reseller in Europe/North America
█ Linux/Windows RDP VPS 13 Locations : UK, US (5 states), Mexico, Canada, Bulgaria, Lithuania,
█ Italy, France, Germany,Netherlands, Switzerland, Rissia, Singapore | OpenVPN/PPTP Enabled
█ INSTANT | PayPal, Skrill, Payza, Bitcoin, WebMoney, Perfect Money, Ukash, CashU, paysafecard
-
09-04-2006, 11:12 AM #12Quality Web Hosting Matters
- Join Date
- Mar 2006
- Location
- Servers
- Posts
- 1,590
Is it normal to have :
psaadm 4007 0.0 0.0 50340 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4008 0.0 0.0 50860 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4009 0.0 0.0 51100 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4034 0.0 0.0 51200 12 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4036 0.0 0.0 50540 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4037 0.0 0.0 50860 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4117 0.0 0.0 49744 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4302 0.0 0.0 46100 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
and this :
root 31170 0.0 0.0 24692 4 ? S 04:26 0:00 \_ /usr/sbin/httpd
apache 31171 0.1 3.8 33384 9596 ? S 04:26 1:24 \_ /usr/sbin/httpd
apache 31199 0.1 2.5 37084 6220 ? S 04:26 1:16 \_ /usr/sbin/httpd
apache 31201 0.1 4.0 34124 10100 ? S 04:26 1:23 \_ /usr/sbin/httpd
apache 31203 0.1 4.9 34728 12344 ? S 04:26 1:19 \_ /usr/sbin/httpd
apache 31204 0.1 4.4 34348 10960 ? S 04:26 1:21 \_ /usr/sbin/httpd
apache 31210 0.1 3.9 34300 9736 ? S 04:26 1:18 \_ /usr/sbin/httpd
apache 31216 0.1 4.1 35228 10336 ? S 04:26 1:22 \_ /usr/sbin/httpd
apache 31218 0.1 2.5 31476 6248 ? S 04:26 1:18 \_ /usr/sbin/httpd
apache 31220 0.1 2.2 33288 5564 ? S 04:26 1:22 \_ /usr/sbin/httpd
apache 31224 0.1 4.8 34172 11912 ? S 04:26 1:20 \_ /usr/sbin/httpd
apache 2234 0.1 4.9 33616 12304 ? S 09:45 1:08 \_ /usr/sbin/httpd
apache 2235 0.1 2.6 32356 6440 ? S 09:45 1:06 \_ /usr/sbin/httpd
apache 2236 0.1 3.5 34700 8660 ? S 09:45 1:11 \_ /usr/sbin/httpd
apache 2237 0.1 2.7 35656 6848 ? S 09:45 1:08 \_ /usr/sbin/httpd
apache 2238 0.1 3.5 32904 8872 ? S 09:45 1:00 \_ /usr/sbin/httpd
apache 2241 0.1 3.7 33904 9272 ? S 09:45 1:12 \_ /usr/sbin/httpd
apache 2242 0.1 3.6 33160 8948 ? S 09:45 1:00 \_ /usr/sbin/httpd
apache 2243 0.1 3.6 33128 8968 ? S 09:46 1:04 \_ /usr/sbin/httpd
apache 2247 0.1 2.2 32932 5580 ? S 09:46 1:05 \_ /usr/sbin/httpd
apache 2249 0.2 4.1 37804 10180 ? S 09:46 1:13 \_ /usr/sbin/httpd
?█ QHoster.com - Web Hosting with DDoS Protection | Shared & Reseller in Europe/North America
█ Linux/Windows RDP VPS 13 Locations : UK, US (5 states), Mexico, Canada, Bulgaria, Lithuania,
█ Italy, France, Germany,Netherlands, Switzerland, Rissia, Singapore | OpenVPN/PPTP Enabled
█ INSTANT | PayPal, Skrill, Payza, Bitcoin, WebMoney, Perfect Money, Ukash, CashU, paysafecard
-
09-04-2006, 04:49 PM #13Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
Thanks for the reply.
I don't know. The 20 apache processes don't look right. I don't see all of them when I do a top.
I probably also don't need all the secure servers as the only thing that is used for is admin.
I'm open to suggestions. All the sites I host I host for friends or myself and don't charge so I can experiment and not worry about pissing paying customers off.
Originally Posted by WebHostDog
-
09-04-2006, 04:52 PM #14Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
I'm confused. Both tops I posted have iowaits of 0.0%. Isn't that what we want?
Originally Posted by sysconfig
-
09-04-2006, 05:18 PM #15Quality Web Hosting Matters
- Join Date
- Mar 2006
- Location
- Servers
- Posts
- 1,590
what exactly is Apache in your box httpsd or httpd ? think about this
█ QHoster.com - Web Hosting with DDoS Protection | Shared & Reseller in Europe/North America
█ Linux/Windows RDP VPS 13 Locations : UK, US (5 states), Mexico, Canada, Bulgaria, Lithuania,
█ Italy, France, Germany,Netherlands, Switzerland, Rissia, Singapore | OpenVPN/PPTP Enabled
█ INSTANT | PayPal, Skrill, Payza, Bitcoin, WebMoney, Perfect Money, Ukash, CashU, paysafecard
-
09-04-2006, 07:38 PM #16WHT Addict
- Join Date
- Dec 2005
- Location
- United Kingdom, Liverpool
- Posts
- 117
You should try lighthttpd - has a smaller memory footprint and works great.
Linux/Windows Technician
JCulpin [at] Gmail.com
-
09-05-2006, 10:37 PM #17Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
I've tweaked my httpd.conf.... brought the StartServers and MaxSpareServers down.
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 4
MinSpareServers 2
MaxSpareServers 6
MaxClients 150
MaxRequestsPerChild 1000
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
# perchild MPM
# NumServers: constant number of server processes
# StartThreads: initial number of worker threads in each server process
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# MaxThreadsPerChild: maximum number of worker threads in each server process
# MaxRequestsPerChild: maximum number of connections per server process
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
Swap use is down, but load averages are still up there:
22:34:16 up 8 days, 21:30, 2 users, load average: 8.10, 8.10, 8.08
84 processes: 82 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 0.3% user 0.5% system 0.0% nice 0.0% iowait 99.0% idle
Mem: 247172k av, 228028k used, 19144k free, 0k shrd, 11696k buff
138892k actv, 12528k in_d, 3956k in_c
Swap: 787176k av, 145700k used, 641476k free 115572k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
3804 root 15 0 11604 10M 6156 S 0.3 4.4 5:06 0 httpd
31604 root 15 0 1208 1208 868 R 0.3 0.4 0:00 0 top
17335 mysql 15 0 11356 10M 1180 S 0.1 4.3 29:53 0 mysqld
1 root 15 0 484 452 424 S 0.0 0.1 0:17 0 init
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_CPU
9 root 15 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 4:05 0 kswapd
6 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 kscand/DMA
7 root 15 0 0 0 0 SW 0.0 0.0 13:54 0 kscand/Normal
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand/HighMe
10 root 15 0 0 0 0 SW 0.0 0.0 0:04 0 kupdated
11 root 23 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
53 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
637 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
967 root 15 0 564 532 484 S 0.0 0.2 0:40 0 syslogd
971 root 15 0 440 384 380 S 0.0 0.1 0:00 0 klogd
1050 named 15 0 7260 7036 1216 S 0.0 2.8 4:20 0 named
1063 root 15 0 836 696 600 S 0.0 0.2 1:00 0 sshd
1077 root 15 0 780 704 628 S 0.0 0.2 0:06 0 xinetd
1094 ntp 15 0 2408 2408 2160 S 0.0 0.9 0:00 0 ntpd
1107 root 15 0 216 52 48 S 0.0 0.0 0:00 0 safe_mysqld
1145 root 15 0 252 116 64 S 0.0 0.0 0:00 0 couriertcpd
1148 root 15 0 328 196 152 S 0.0 0.0 0:00 0 courierlogger
1157 root 25 0 188 4 0 S 0.0 0.0 0:00 0 couriertcpd
1160 root 25 0 168 4 0 S 0.0 0.0 0:00 0 courierlogger
1167 root 15 0 248 112 64 S 0.0 0.0 0:01 0 couriertcpd
1173 root 15 0 344 212 168 S 0.0 0.0 0:01 0 courierlogger
1178 root 15 0 248 104 64 S 0.0 0.0 0:00 0 couriertcpd
1181 root 15 0 328 156 152 S 0.0 0.0 0:00 0 courierlogger
1189 qmails 15 0 220 208 128 S 0.0 0.0 1:16 0 qmail-send
1191 qmaill 15 0 224 208 156 S 0.0 0.0 0:12 0 splogger
1192 root 15 0 148 144 60 S 0.0 0.0 0:08 0 qmail-lspawn
1193 qmailr 15 0 168 156 80 S 0.0 0.0 0:06 0 qmail-rspawn
1194 qmailq 15 0 104 88 48 S 0.0 0.0 0:02 0 qmail-clean
1310 root 16 0 18664 4 0 S 0.0 0.0 0:02 0 spamd
-
09-05-2006, 10:39 PM #18Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
# ps -auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1388 452 ? S Aug28 0:17 init
root 3 0.0 0.0 0 0 ? SW Aug28 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN Aug28 0:00 [ksoftirqd_CPU0]
root 9 0.0 0.0 0 0 ? SW Aug28 0:00 [bdflush]
root 5 0.0 0.0 0 0 ? SW Aug28 4:05 [kswapd]
root 6 0.0 0.0 0 0 ? SW Aug28 0:01 [kscand/DMA]
root 7 0.1 0.0 0 0 ? SW Aug28 13:54 [kscand/Normal]
root 8 0.0 0.0 0 0 ? SW Aug28 0:00 [kscand/HighMem]
root 10 0.0 0.0 0 0 ? SW Aug28 0:04 [kupdated]
root 11 0.0 0.0 0 0 ? SW Aug28 0:00 [mdrecoveryd]
root 53 0.0 0.0 0 0 ? SW Aug28 0:00 [khubd]
root 637 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 967 0.0 0.2 1448 532 ? S Aug28 0:40 syslogd -m 0
root 971 0.0 0.1 1380 384 ? S Aug28 0:00 klogd -x
named 1050 0.0 2.8 36192 7036 ? S Aug28 4:20 /usr/sbin/named -u named -c /etc/named.conf -u named -t /var/na
root 1063 0.0 0.2 3520 696 ? S Aug28 0:13 /usr/sbin/sshd
root 8781 0.0 0.2 6884 692 ? S Sep04 0:47 \_ /usr/sbin/sshd
root 8791 0.0 0.2 4380 732 pts/7 S Sep04 0:00 \_ -bash
root 31741 0.0 0.3 2696 760 pts/7 R 22:38 0:00 \_ ps -auxf
root 1077 0.0 0.2 2068 704 ? S Aug28 0:06 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp 1094 0.0 0.9 2412 2408 ? SL Aug28 0:00 ntpd -U ntp -g
root 1107 0.0 0.0 4208 52 ? S Aug28 0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mysql 17335 0.2 4.3 23708 10740 ? S Aug28 29:54 \_ /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/
root 1145 0.0 0.0 3328 116 ? S Aug28 0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1148 0.0 0.0 3220 196 ? S Aug28 0:00 /usr/sbin/courierlogger imapd
root 1157 0.0 0.0 3328 4 ? S Aug28 0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1160 0.0 0.0 3216 4 ? S Aug28 0:00 /usr/sbin/courierlogger imapd-ssl
root 1167 0.0 0.0 3328 112 ? S Aug28 0:01 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1173 0.0 0.0 3220 212 ? S Aug28 0:01 /usr/sbin/courierlogger pop3d
root 1178 0.0 0.0 3324 104 ? S Aug28 0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr
root 1181 0.0 0.0 3220 156 ? S Aug28 0:00 /usr/sbin/courierlogger pop3d-ssl
qmails 1189 0.0 0.0 1440 208 ? S Aug28 1:16 qmail-send
qmaill 1191 0.0 0.0 1384 208 ? S Aug28 0:12 \_ splogger qmail
root 1192 0.0 0.0 1404 144 ? S Aug28 0:08 \_ qmail-lspawn ./Maildir/
qmailr 1193 0.0 0.0 1400 156 ? S Aug28 0:06 \_ qmail-rspawn
qmailq 1194 0.0 0.0 1372 88 ? S Aug28 0:02 \_ qmail-clean
root 1310 0.0 0.0 25036 4 ? S Aug28 0:02 /usr/bin/spamd -d -c -a -m5 -H
popuser 1334 0.0 0.0 24952 4 ? S Aug28 0:01 /usr/bin/spamd --username=popuser --daemonize --helper-home-dir
popuser 1339 0.0 0.0 24956 4 ? S Aug28 0:01 /usr/bin/spamd --username=popuser --daemonize --helper-home-dir
root 1369 0.0 0.0 11808 4 ? S Aug28 0:00 /usr/sbin/stunnel /usr/local/psa/etc/stunnel.conf
root 1451 0.0 0.0 45920 112 ? S Aug28 0:07 /usr/local/psa/admin/bin/httpsd
psaadm 4007 0.0 0.0 50340 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4008 0.0 0.0 50860 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4009 0.0 0.0 51100 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4034 0.0 0.0 51200 12 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4036 0.0 0.0 50540 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4037 0.0 0.0 50860 8 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4117 0.0 0.0 49744 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
psaadm 4302 0.0 0.0 46100 4 ? S Aug29 0:00 \_ /usr/local/psa/admin/bin/httpsd
root 1474 0.0 0.0 1448 148 ? S Aug28 0:01 crond
xfs 1503 0.0 0.0 5360 56 ? S Aug28 0:00 xfs -droppriv -daemon
root 1529 0.0 0.0 3412 108 ? S Aug28 0:00 rhnsd --interval 240
mailman 1556 0.0 0.0 7016 8 ? S Aug28 0:00 /usr/bin/python /var/mailman/bin/mailmanctl -s -q start
mailman 1557 0.0 0.4 7068 1124 ? S Aug28 0:10 \_ qrunner /var/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman 1558 0.0 0.4 7068 1052 ? S Aug28 0:04 \_ qrunner /var/mailman/bin/qrunner --runner=BounceRunner:0:1
mailman 1559 0.0 0.3 7068 960 ? S Aug28 0:10 \_ qrunner /var/mailman/bin/qrunner --runner=CommandRunner:0:1
mailman 1562 0.0 0.5 7068 1312 ? S Aug28 0:10 \_ qrunner /var/mailman/bin/qrunner --runner=IncomingRunner:0:
mailman 1563 0.0 0.4 7108 1172 ? S Aug28 0:10 \_ qrunner /var/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman 1564 0.0 0.4 7152 1224 ? S Aug28 0:10 \_ qrunner /var/mailman/bin/qrunner --runner=OutgoingRunner:0:
mailman 1567 0.0 0.4 7060 1192 ? S Aug28 0:09 \_ qrunner /var/mailman/bin/qrunner --runner=VirginRunner:0:1
root 1586 0.0 0.0 1364 4 tty1 S Aug28 0:00 /sbin/mingetty tty1
root 1587 0.0 0.0 1364 4 tty2 S Aug28 0:00 /sbin/mingetty tty2
root 1588 0.0 0.0 1364 4 tty3 S Aug28 0:00 /sbin/mingetty tty3
root 1589 0.0 0.0 1364 4 tty4 S Aug28 0:00 /sbin/mingetty tty4
root 1590 0.0 0.0 1364 4 tty5 S Aug28 0:00 /sbin/mingetty tty5
root 1591 0.0 0.0 1356 4 tty6 S Aug28 0:00 /sbin/mingetty tty6
root 2712 0.0 0.0 0 0 ? DW Aug28 1:00 [pico]
root 1940 0.0 0.0 2308 4 ? S Aug28 0:00 login -- root
root 1947 0.0 0.0 4452 4 ttyS0 S Aug28 0:00 \_ -bash
root 2273 0.0 0.0 0 0 ? DW Aug29 0:00 [bash]
root 2802 0.0 0.0 0 0 ? DW Aug29 0:00 [bash]
root 4409 0.0 0.0 0 0 ? DW Aug29 0:00 [bash]
root 8195 0.0 0.0 0 0 ? DW Sep03 0:01 [bash]
root 3660 0.0 0.0 0 0 ? DW Sep04 0:00 [bash]
root 3804 0.0 4.4 24712 11028 ? S Sep04 0:04 /usr/sbin/httpd -k start
root 29728 0.0 4.4 24708 10992 ? S 20:48 0:00 \_ /usr/sbin/httpd -k start
apache 29729 1.0 6.3 28700 15696 ? S 20:48 1:08 \_ /usr/sbin/httpd -k start
apache 29731 0.5 6.3 28604 15704 ? S 20:48 0:39 \_ /usr/sbin/httpd -k start
apache 29732 1.0 6.2 28492 15372 ? S 20:48 1:08 \_ /usr/sbin/httpd -k start
apache 30108 1.1 5.9 27896 14824 ? S 21:13 1:01 \_ /usr/sbin/httpd -k start
apache 30298 0.6 5.9 27764 14808 ? S 21:21 0:28 \_ /usr/sbin/httpd -k start
apache 31118 1.7 5.8 27380 14488 ? S 21:56 0:42 \_ /usr/sbin/httpd -k start
root 8461 0.0 0.0 0 0 ? DW Sep04 0:01 [top]
root 9472 0.0 0.0 0 0 ? DW Sep04 0:00 [bash]
-
09-05-2006, 10:44 PM #19Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
Before:
Originally Posted by howards
After:
# free -m
total used free shared buffers cached
Mem: 241 234 7 0 10 114
-/+ buffers/cache: 109 131
Swap: 768 139 628
-
09-06-2006, 12:18 AM #20Junior Guru Wannabe
- Join Date
- Apr 2003
- Posts
- 47
Anyone think that there are stalled processes creating a false load average?
Originally Posted by howards
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
1 0 8 134312 10992 11740 112072 0 0 0 0 101 17 0 0 100
0 0 8 134312 10976 11740 112072 0 0 0 26 136 56 10 1 89
0 0 8 134312 10976 11740 112072 0 0 0 0 108 19 0 0 99
0 0 8 134312 10064 11740 112128 0 0 11 18 119 64 9 1 89
0 0 8 134312 10064 11740 112128 0 0 0 0 121 55 9 1 89
0 0 8 134312 10064 11740 112128 0 0 0 26 108 20 0 0 100
1 0 8 134312 10064 11744 112152 0 0 3 0 177 113 12 2 86
0 0 8 134312 10064 11744 112156 0 0 0 0 163 66 6 0 93
0 0 8 134312 10064 11744 112156 0 0 0 26 110 22 0 0 100
0 0 8 134312 10032 11748 112164 0 0 2 106 132 43 6 0 93
0 0 8 134312 9428 11752 112172 0 0 2 3 134 56 8 2 90
0 0 8 134312 9428 11752 112180 0 0 2 6 106 28 0 0 100
0 0 8 134312 9420 11752 112180 0 0 0 26 121 37 5 0 95
0 0 8 134312 9420 11752 112180 0 0 0 0 136 60 9 2 89
0 0 8 134312 9420 11752 112180 0 0 0 0 102 16 0 0 100
0 0 8 134312 9420 11752 112180 0 0 0 0 123 38 4 1 95
0 0 8 134312 9420 11752 112180 0 0 0 26 140 40 7 0 93
0 0 8 134312 9420 11752 112180 0 0 0 0 121 26 3 0 97
0 0 8 134312 9420 11752 112180 0 0 0 26 107 17 0 0 100
0 0 8 134312 9420 11752 112180 0 0 0 16 106 21 0 0 100
0 0 8 134312 9420 11752 112180 0 0 0 0 101 17 0 0 100
0 0 8 134312 9428 11760 112184 0 0 2 3 124 28 0 1 99
0 0 8 134312 9436 11760 112184 0 0 0 3 112 42 5 1 94
0 0 8 134312 9456 11760 112184 0 0 0 0 109 35 4 1 96
0 0 8 134312 9456 11760 112184 0 0 0 0 102 17 0 0 100
1 0 8 134312 9464 11760 112192 0 0 2 6 107 28 0 0 100
0 0 8 134312 9464 11760 112200 0 0 2 32 113 35 0 0 100
0 0 8 134312 9464 11760 112200 0 0 0 0 102 17 0 0 100
0 0 8 134312 9440 11760 112204 0 0 0 5 116 25 24 2 74
0 0 8 134312 9436 11760 112204 0 0 0 26 118 34 4 1 95
0 0 8 134312 9580 11760 112204 0 0 0 0 159 79 15 1 84
0 0 8 134312 9580 11760 112204 0 0 0 0 101 17 0 0 100
0 0 8 134312 9580 11760 112204 0 0 0 0 101 17 0 0 100
0 0 8 134312 9580 11760 112204 0 0 0 0 102 17 0 0 100
0 0 8 134312 9580 11760 112204 0 0 0 77 120 36 6 1 94
0 0 8 134312 9580 11760 112204 0 0 0 5 133 56 5 1 94
0 0 8 134312 9580 11760 112204 0 0 0 26 113 21 0 0 100
1 0 8 134312 9580 11760 112204 0
-
09-06-2006, 01:18 AM #21
howard, having such low minspare and maxspare servers is going to make your apache processes thrash.
think, you have a maximum of 150 client slots. what happens if one moment you need 50, apache will try to make sure there's between 52 and 56 free servers.
say the next moment, apache needs 40 servers, it wants between 42 and 46 free servers, but just one moment ago it had somewhere between 52 and 56, and needs to kill some.
then the next moment, apache needs to service 60 requests, but only has somewhere between 42 and 46 slots, so it has to create 14-18 new slots just to service the requests, then another 2-6 slots to meet the min/max spare clients.
all this unnecessary client creation and teardown is going to significantly increase your cpu usage. if you're running out of ram from having too many apache clients, reduce maxclients, not minspare / maxspare
minspare / maxspare, i would recommend for a server with 150 maxclients, say 10/30. on my servers i use more, but thats because my site uses more maxclients and is more heavily trafficked. 10 / 30 should work fine for your other configurations.
without looking into things too deeply, i notice you've only got 256mb ram. thats really not a lot if you're trying to host 150 client slots, mysql, and other basic server stuff. you're either going to need more ram, or find ways to strip out every bit of overhead in your apache / mysql / operating system.IOFLOOD.com -- We Love Servers
Phoenix, AZ Dedicated Servers in under an hour
★ Ryzen 9: 7950x3D ★ Dual E5-2680v4 Xeon ★
Contact Us: sales@ioflood.com ★
-
09-06-2006, 02:18 AM #22Disabled
- Join Date
- Aug 2006
- Posts
- 56
howards:
Lookinig to the top output it seems problem with your hard disk either it is not responding to cpu process as fast as cpu execute the process or some part of it is in bad sector.