2014-06-18 3 views
0

대규모 호스팅 제공 업체가있는 전용 서버에 꽤 표준 LAMP 스택 (Ubuntu 12.04 - Apache2 - MySQL - PHP)이 있습니다.우분투에 느린 아파치

우리는 며칠 이래로 때때로 웹 성능이 느려지므로 (요청은 성공할 수 있지만 때로는 10-15 초 정도 걸립니다).

나는 top 명령으로 서버 사용량을 확인하려고했지만 아무 것도 비정상적이거나 과도한 사용을 나타내지는 않습니다 (CPU 사용량은 10-30 % 사이입니다).

Tasks: 268 total, 2 running, 266 sleeping, 0 stopped, 0 zombie 
Cpu(s): 4.2%us, 2.8%sy, 0.0%ni, 80.3%id, 11.3%wa, 0.0%hi, 1.4%si, 0.0%st 
Mem: 8070300k total, 7779400k used, 290900k free, 66648k buffers 
Swap:  0k total,  0k used,  0k free, 2799188k cached 

누구도 내가 확인할 수있는 다른 통계를 찾고 어떤 방향으로 계속 검색해야합니까?

답변

0

아파치에서 허용되는 동시 연결 수에 문제가있었습니다 (기본적으로 /etc/apache2/apache2.conf 파일에서 150으로 설정 됨).

<IfModule mpm_prefork_module> 
    ServerLimit  1500 
    StartServers   5 
    MinSpareServers  5 
    MaxSpareServers  10 
    MaxClients   1500 
    MaxRequestsPerChild 0 
</IfModule> 

또한 읽기 :

http://oxpedia.org/wiki/index.php?title=Tune_apache2_for_more_concurrent_connections How do you increase the max number of concurrent connections in Apache?

나는 지시를 업데이트