[英]Determine Issue with Slow CentOS 6 Apache Server
Background: I have 2 servers - 1 Apache server and 1 MySQL server running CentOS 6. The web server connects to the MySQL server via a private IP behind the router. 背景:我有2台服务器-1台Apache服务器和1台运行CentOS 6的MySQL服务器。Web服务器通过路由器后面的专用IP连接到MySQL服务器。 Both have /etc/hosts.allow/deny setup, and iptables is limited to specific ports and IP's being able to access they system on port 22 and/or 3306. Port 80 and 443 are open to all on the web server.
两者都具有/etc/hosts.allow/deny设置,并且iptables限于特定端口,并且IP能够在端口22和/或3306上访问它们的系统。端口80和443对Web服务器上的所有人开放。
Starting last week after a yum update the web server is extremely slow, on occasion, serving data. 从yum更新后的上周开始,Web服务器有时会非常缓慢地提供数据。 Some Javascript files served locally take 30 seconds or more to deliver.
本地提供的某些Javascript文件需要30秒或更长时间才能交付。 Running
top
rarely shows any resources being used: 运行
top
很少显示正在使用的任何资源:
top - 17:54:32 up 6 days, 21:37, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 123 total, 1 running, 122 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.0%sy, 0.0%ni, 99.5%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1916548k total, 1696236k used, 220312k free, 189352k buffers
Swap: 0k total, 0k used, 0k free, 386004k cached
free -m
shows: free -m
显示:
[gnet@itv ~]$ free -m
total used free shared buffers cached
Mem: 1871 1662 209 0 184 378
-/+ buffers/cache: 1099 772
Swap: 0 0 0
I cannot see anywhere where an issue could be found. 我看不到任何地方可以找到问题。 I have checked /var/log/secure and /var/log/messages with no issues.
我已经检查了/ var / log / secure和/ var / log / messages没有问题。 I ran
mysqlcheck
on the DB and all tables report OK. 我在
mysqlcheck
上运行mysqlcheck
,所有表均报告正常。 Pinging the servers on the private network is as expected (quick). 按预期(快速)对专用网络上的服务器执行ping操作。 I see very few long queries in the MySQL query log.
我在MySQL查询日志中看到很少的长查询。
My host (Rackspace) tells me there are no 'noisy neighbors' and that the parent node is fine, and there are no network issues. 我的主机(Rackspace)告诉我没有“嘈杂的邻居”,并且父节点很好,也没有网络问题。
What can I look at to see what the issue might be? 我应该怎么看才能找出问题所在? I have run
iotop
and show only minor, quick writes. 我已经运行了
iotop
并仅显示次要的快速写入。 But when I'm ssh'd in, the connection "acts" like the server is under tremendous load. 但是,当我按下ssh'd键时,连接就像服务器一样承受巨大的负载。
Any ideas would be appreciated! 任何想法,将不胜感激!
It seems the issue was, indeed, hardware. 看来问题确实是硬件。 They migrated my VM to another host and the problem has disappeared.
他们将我的VM迁移到另一台主机,问题消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.