The server is very slow. If I restart service httpd during one hour o something like that it works perfectly. After this time it becomes very slow again. If I restart again httpd is fast.
I contact wiht support and they check harware and net, an everthing is OK. No DDOS atacks or overloaded.
Intel Xeon E3 1245v2
4 c/ 8 t
3.4 GHz+
32 GB RAM
2x 2 TB SATA raid 1
System Centos 6.5
I have many web sites whit few visitors a day and a website with 500 visits a day maximum.
I found in the forum this thread, with the same problem, but the thread after few messages not offer solution.
http://forum.directadmin.com/showthread.php?t=14776&highlight=slow+server
Folowing the recomendation of other tread I increase memory_limit of php from 128 to 256
vi /usr/local/lib/php.ini
memory_limit = 256M
I attach my php.info complete in PDF
I use my.cnf:
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 384M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
This are the first 5 lines of my top when the server goes slow:
3474 mysql 20 0 1361m 194m 5756 S 0.3 0.6 2:50.12 mysqld
7802 root 20 0 15472 1692 908 R 0.3 0.0 0:00.50 top
22674 apache 20 0 203m 9236 3284 S 0.3 0.0 0:00.28 httpd
22729 apache 20 0 236m 43m 4376 S 0.3 0.1 0:00.54 httpd
22817 apache 20 0 203m 9244 3256 S 0.3 0.0 0:00.26 httpd
22822 apache 20 0 203m 9484 3380 S 0.3 0.0 0:00.27 httpd
Thank you.
I contact wiht support and they check harware and net, an everthing is OK. No DDOS atacks or overloaded.
Intel Xeon E3 1245v2
4 c/ 8 t
3.4 GHz+
32 GB RAM
2x 2 TB SATA raid 1
System Centos 6.5
I have many web sites whit few visitors a day and a website with 500 visits a day maximum.
I found in the forum this thread, with the same problem, but the thread after few messages not offer solution.
http://forum.directadmin.com/showthread.php?t=14776&highlight=slow+server
Folowing the recomendation of other tread I increase memory_limit of php from 128 to 256
vi /usr/local/lib/php.ini
memory_limit = 256M
I attach my php.info complete in PDF
I use my.cnf:
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 384M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
This are the first 5 lines of my top when the server goes slow:
3474 mysql 20 0 1361m 194m 5756 S 0.3 0.6 2:50.12 mysqld
7802 root 20 0 15472 1692 908 R 0.3 0.0 0:00.50 top
22674 apache 20 0 203m 9236 3284 S 0.3 0.0 0:00.28 httpd
22729 apache 20 0 236m 43m 4376 S 0.3 0.1 0:00.54 httpd
22817 apache 20 0 203m 9244 3256 S 0.3 0.0 0:00.26 httpd
22822 apache 20 0 203m 9484 3380 S 0.3 0.0 0:00.27 httpd
Thank you.