My DA server is very slow

Hayworth

Verified User
Joined
Sep 11, 2010
Messages
14
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.
 

Attachments

  • phpinfo.pdf
    230.1 KB · Views: 248
Hello,

I'd suggest to use:

CustomBuild2: NGINX+Apache, and tune services alongside with enabling of query caching in MySQL.
 
Hello,

I'd suggest to use:

CustomBuild2: NGINX+Apache, and tune services alongside with enabling of query caching in MySQL.

Thanks, but I have to reinstall the server... Somebody have other suggestions? I use DA in many vps and servers and never had a problem like that... It must be something wrong in my configuration...
 
Thanks, but I have to reinstall the server... Somebody have other suggestions? I use DA in many vps and servers and never had a problem like that... It must be something wrong in my configuration...

You do not have to reinstall the server, use custombuild (/usr/local/directadmin/custombuild).
 
have you looked to see what site (s) are using the most bandwidth , look at server-status to see what sites are doing what?
maybe its a script that is runaway and loading Apache with too many processes or malicious code doing bad things....
 
:cool:

Thank you AndyII. Your suggestion was the solution. With server-status I discover a web site missconfigured that was consuming server resources...

Because activate server-status in a Centos 6.5 server with DirectAdmin has many peculiarities I recomend this thread if somebody has a similar problem and want to activate it:

http://forum.directadmin.com/showthread.php?t=23414

Thanks everybody, I appreciate your time and effort to help me.
 
Last edited:
your most welcome, glad to have helped :)
can never have Too Many Tools...
 
Back
Top