Hello,
Thank you sprial for the offer... These are the current steps I have taken...
I have got another 2GB RAM placed my my server so I now have 4GB. The server still hit 90% which was really stressing to know I have just spent some money that could be needed for the main problem but then I did install the eaccelerator but changed the cache location so I can get more saved into this....
I had to install PAE kernel to get it to read my new memory which caused the load to go high but not use the swap memory (hope im using the right terms)
The main thing I have done which has stopped the memory and CPU usage is removing everything from within the my.cnf The following is what I have removed from within the file which im thinking is the cause (I got told to use this in a forum once)
Code:
[mysqld]
skip-locking
#skip-networking
safe-show-database
query_cache_limit=1M
query_cache_size=128M ## 32MB for every 1GB of RAM
query_cache_type=1
max_user_connections=200
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
thread_cache_size=128
key_buffer=512M ## 128MB for every 1GB of RAM
max_connect_errors=20
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=4M ## 1MB for every 1GB of RAM
read_buffer_size=4M ## 1MB for every 1GB of RAM
read_rnd_buffer_size=4M ## 1MB for every 1GB of RAM
thread_concurrency=4 ## Number of CPUs x 2
I have just left the following in the file...
Code:
[mysqld]
max_user_connections=200
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
Im not sure what it can do with or without this code but if its this code thats causing the problem it works better without it... does anyone know how to optimize MySQL without it doing this to my server
please let me know your views on this and if you think it was this causing my problems
Thanks
Martyn