When I run the command 'top' on my ubuntu server I see that there are lots of apache2 processes but always only one msyql process. Is that correct? I have turned off persistent connections. Furthermore this one
mysql process uses a measly 7% of the available memory. I had thought that I had set the parameters for my
sql so that it would use a lot of memory for buffers and caches. Here are the relevant settings from my.cnf (My server has 1.5Gb of memory).
#
# * Fine Tuning
#
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 16M
thread_stack = 128K
I am interested in finding out what I may have done wrong because of lately users occasionally get the database overloaded error.