Anton A. Zabannikh writes:
 > 
 > I have a strange problem with MySQL 3.23.30 running on my server.
 > Configuration:
 > 1 Intel Pentium III
 > 512 meg. RAM
 > RedHat Linux.
 > 
 > Basically eveithing works fine. Eventually, the system comes to a grinding
 > halt,
 > with load average hovering around 20.00.
 > 
 > Here's a processlist  :
<cut > 
 > Why there is so many threads with "Locked" or "Copying to tmp table" state ?
 > How to solve this problem ?
 > 
 > 
 > ______________________________________________
 > Anton Zabannikh | http://www.securityelf.net
 > work: (3432)-651811 | Mobile: 8-34348-31924
 > 
 > 


Actually the above is expected behaviour. You should normalize your
schema , optmize queries and tune up MySQL so that fewer tmp tables
are created. 

This way locked processes simply wait  for the slow queries to finish
and release tables.


Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to