
06-20-2006, 12:00 PM
|
|
Junior Guru
|
|
Join Date: Jun 2004
Posts: 234
|
|
what can cause slowdowns if ram, cpu, disk io, load are all fine?
my sites have been going really really slowly, but top looks fine.
Quote:
10:58:44 up 23:46, 1 user, load average: 1.13, 1.44, 1.45
252 processes: 247 sleeping, 1 running, 4 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 17.8% 0.0% 13.0% 0.3% 0.8% 4.3% 63.4%
cpu00 22.3% 0.0% 13.7% 0.7% 1.5% 4.1% 57.3%
cpu01 13.3% 0.0% 12.3% 0.0% 0.1% 4.5% 69.5%
Mem: 3081932k av, 3048644k used, 33288k free, 0k shrd, 26764k buff
2369504k actv, 293588k in_d, 47228k in_c
Swap: 2040212k av, 0k used, 2040212k free 2734648k cached
|
what else could cause this? the bandwidth looks like it's fine too (ie I'm not on a 10mbps line and using 100% of that, or anywhere near it). I've tried restarting, no change
|

06-20-2006, 12:05 PM
|
|
Disabled
|
|
Join Date: Jun 2006
Location: Earth
Posts: 98
|
|
Have you seen how fast other people can access the sites? It could be just your connection to the server if you haven't.
It could be an direct ISP issue or a routing issue through your ISP.
Regards,
Drac
|

06-20-2006, 12:21 PM
|
|
Disabled
|
|
Join Date: Aug 2005
Posts: 439
|
|
If the sites in your signature are the ones you're referring to - the first one loaded just fine for me (and very quickly).
|

06-20-2006, 12:22 PM
|
|
Web Hosting Guru
|
|
Join Date: May 2005
Posts: 280
|
|
What are those 4 zombies there ?
Also, you should check your I/O and CS Rate with the "vmstat" and "iostat" command to have a more accurate picture.
|

06-20-2006, 12:28 PM
|
|
Junior Guru
|
|
Join Date: Jun 2004
Posts: 234
|
|
iostat
Quote:
Linux 2.4.21-40.ELsmp (herpes.supersalesmall.com) 06/20/2006
avg-cpu: %user %nice %system %iowait %idle
14.81 0.00 12.96 5.14 67.09
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
hdc 20.07 1615.08 36.48 140681058 3177360
hdc1 20.07 1615.08 36.48 140680810 3177360
hda 10.49 146.48 242.47 12759396 21119910
hda1 0.00 0.02 0.00 1394 30
hda2 1.52 4.87 41.15 424370 3584560
hda3 1.60 5.30 25.16 461298 2191616
hda4 0.00 0.00 0.00 8 0
hda5 5.24 135.46 103.68 11799362 9030800
hda6 0.82 0.77 33.92 66914 2954440
hda7 1.30 0.02 38.56 1746 3358464
hda8 0.00 0.00 0.00 248 0
|
vmstat:
Quote:
procs memory swap io system cpu
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 24552 25828 2743648 0 0 196 71 28 26 15 12 68 5
|
how can I tell what processes are zombies? would zombie processes somehow be related to the slowdown potentially?
one of the sites in question is: http://gh.ffshrine.org
other people have reported slowdowns and I've noticed them as well
|

06-20-2006, 12:32 PM
|
|
Disabled
|
|
Join Date: Jun 2006
Location: Earth
Posts: 98
|
|
Ok, you're right, the site is extremely slow. It doesn't seem to be slow as in bandwidth because the images loaded pretty fast, but it just seems to take a while to process the HTTP request through the server.
Not sure what the problem could be, but I'll be watching this one.
Regards,
Drac
|

06-20-2006, 01:06 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,563
|
|
hitting max clients in apache?
|

06-20-2006, 01:19 PM
|
|
Junior Guru
|
|
Join Date: Jun 2004
Posts: 234
|
|
wouldn't that cause errors, not slowdowns?
how can I see how many clients there currently are?
|

06-20-2006, 01:29 PM
|
|
Performance Specialist
|
|
Join Date: Dec 2004
Location: New York, NY
Posts: 10,338
|
|
Quote:
|
Originally Posted by disgust
wouldn't that cause errors, not slowdowns?
how can I see how many clients there currently are?
|
It would appear as slow-downs to the end user browsing your site though...
You could try something as simple as:
netstat -ntu | grep :80 | wc -l
If there are a lot of connections you may consider adjusting your MaxClients in httpd.conf to a higher number.
__________________
MediaLayer, LLC - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!
|

06-20-2006, 01:35 PM
|
|
Heaven is a Beach and a Girl
|
|
Join Date: Jan 2004
Posts: 1,183
|
|
Looks like apache is poorly configured.
You might want to tweak the numbers of open server, the max open servers, max client and initial server start in apache.
For you to figure out what commads are defunct:
ps -eaf | grep defunct
Do you have cpanel + munin? our mrtg our other soft. to analise the server usage so you can tweak apache?
|

06-20-2006, 01:49 PM
|
|
Junior Guru
|
|
Join Date: Jun 2004
Posts: 234
|
|
I got something like 1,200 results from netstat -ntu | grep :80 | wc -l, but the total running processes was significantly less than that (~300). does apache use multiple clients in a single process?
I have cpanel/whm. don't know what munin is. what numbers would you suggest for open server, max open servers, max clients and initial server start? it's a P4 2.8GHZ, 3GB ram, handles both mysql & http processes.
I upped the maxclients but it didn't seem to improve anything.
the defunct results:
nobody 24262 19423 0 12:49 ? 00:00:00 [httpd <defunct>]
nobody 24420 19423 0 12:49 ? 00:00:00 [httpd <defunct>]
nobody 24698 19423 1 12:49 ? 00:00:00 [httpd <defunct>]
nobody 24879 19423 0 12:49 ? 00:00:00 [httpd <defunct>]
|

06-20-2006, 02:06 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,563
|
|
|

06-20-2006, 02:11 PM
|
|
Engineer
|
|
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,379
|
|
Quote:
|
Originally Posted by disgust
I got something like 1,200 results from netstat -ntu | grep :80 | wc -l, but the total running processes was significantly less than that (~300). does apache use multiple clients in a single process?
I have cpanel/whm. don't know what munin is. what numbers would you suggest for open server, max open servers, max clients and initial server start? it's a P4 2.8GHZ, 3GB ram, handles both mysql & http processes.
I upped the maxclients but it didn't seem to improve anything.
the defunct results:
nobody 24262 19423 0 12:49 ? 00:00:00 [httpd <defunct>]
nobody 24420 19423 0 12:49 ? 00:00:00 [httpd <defunct>]
nobody 24698 19423 1 12:49 ? 00:00:00 [httpd <defunct>]
nobody 24879 19423 0 12:49 ? 00:00:00 [httpd <defunct>]
|
Do not up your maxclients you will just make it even slower.
What does,
free -m
cat /proc/cpuinfo
cat /usr/local/apache/conf/httpd.conf | awk -F= '/MaxClients|KeepAlive/ {print $1}'
-Scott
__________________
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. Keep your servers online.
United Kingdom: *0800 8620073* // United States: *585 563 1729* // Australia: *02 9037 2448* // International: *+44.1412800134*
Scott Mcintyre
|

06-20-2006, 02:19 PM
|
|
Junior Guru
|
|
Join Date: Jun 2004
Posts: 234
|
|
free -m
Quote:
total used free shared buffers cached
Mem: 3009 2950 58 0 24 2654
-/+ buffers/cache: 271 2738
Swap: 1992 0 1992
|
cat/proc/cpuinfo:
Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 9
cpu MHz : 2793.047
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
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 : 5570.56
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 9
cpu MHz : 2793.047
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
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 : 5583.66
|
the httpd.conf awk results
Quote:
# KeepAlive: Whether or not to allow persistent connections (more than
KeepAlive Off
# MaxKeepAliveRequests: The maximum number of requests to allow
MaxKeepAliveRequests 100
# KeepAliveTimeout: Number of seconds to wait for the next request from the
KeepAliveTimeout 15
MaxClients 600
|
I just lowered the maxclients to 600.
another thing I don't understand, how could raising maxclients slow things down if they're not being used?
|

06-20-2006, 03:02 PM
|
|
Web Hosting Master
|
|
Join Date: Apr 2004
Location: San Jose
Posts: 902
|
|
In WHM try Server Status > Apache Status and show us this part:
Code:
Current Time: Tuesday, 20-Jun-2006 15:00:05 EDT
Restart Time: Friday, 16-Jun-2006 01:03:57 EDT
Parent Server Generation: 0
Server uptime: 4 days 13 hours 56 minutes 8 seconds
Total accesses: 3354923 - Total Traffic: 34.1 GB
CPU Usage: u14721.4 s2179.72 cu17.18 cs37.5 - 4.28% CPU load
8.48 requests/sec - 90.5 kB/second - 10.7 kB/request
33 requests currently being processed, 26 idle servers
KKKK___WKK_K____WWKK__KK__KK_K_K_K_KK_KK_KKKK____KKWKK_K___.....
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"L" Logging, "G" Gracefully finishing, "." Open slot with no current process
__________________
Specializing in MySQL and website tuning for high traffic sites. cmwsci.com/
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|