I’m trying to tuning a VPS with WHM for a single website.
Sometimes, specially when I have more than 50 users connected, Apache hangs: I get a lot of "W" Sending Reply status from WHM » Home » Server Status » Apache Status and after some minutes the site get to work again.
During this problematic status CPU are not loaded and memory isn’t full.
I’ve captured Apache status and mysqlmymonlite report during the problematic minutes (attached) and here some relevant settings:
Can you help me to understand why it happens?
Sometimes, specially when I have more than 50 users connected, Apache hangs: I get a lot of "W" Sending Reply status from WHM » Home » Server Status » Apache Status and after some minutes the site get to work again.
During this problematic status CPU are not loaded and memory isn’t full.
I’ve captured Apache status and mysqlmymonlite report during the problematic minutes (attached) and here some relevant settings:
Code:
/usr/local/lib/php.ini
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 512M
apc.num_files_hint = 10000
apc.stat = 0
/usr/local/apache/conf/includes/post_virtualhost_global.conf
<IfModule mod_fcgid.c>
MaxRequestsPerProcess 2000
FcgidMaxProcesses 80
FcgidProcessLifeTime 240
MaxProcessCount 100
FcgidIOTimeout 240
FcgidIdleTimeout 60
FcgidIdleScanInterval 90
FcgidBusyTimeout 300
FcgidBusyScanInterval 80
ErrorScanInterval 3
ZombieScanInterval 3
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 6
FcgidMaxRequestLen 1073741824
</IfModule>
/etc/my.cnf
[mysqld]
innodb_file_per_table=1
max_allowed_packet=268435456
key_buffer_size=64M
query_cache_type=1
query_cache_size=96M
query_cache_limit=2M
sort_buffer_size=8M
table_cache=4092
innodb_buffer_pool_size=356M
innodb_flush_log_at_trx_commit=2
innodb_thread_concurrency=2
thread_cache_size=4
join_buffer_size=2M
tmp_table_size=32M
max_heap_table_size=32M
max_connections=100
Attachments
-
89.5 KB Views: 2
-
100.1 KB Views: 1