hi,

I need some urgent help. We have encountered a problem, when we try to connect 
in shell with a mysql client to the mysqld (via socket or via localhost). The 
connection takes 5 to 50 seconds, or it happens that the connection is fast, 
but then the "use somethingdb;" needs 5 to 50 seconds.
 We have tried to use some advice from here already:  
http://www.debianhelp.co.uk/mysqlperformance.htm We tried to use mysqltuner.pl, 
which is an optimizing tool. Here we set "Maximum possible memory usage:", in 
fact the real memory usage is few megas only.  The other problem, which we 
found out in mysqlreport.txt, that if we set "Max used" to any number, sooner 
or later it gets full and that is why  the "Maximum possible memory usage:" is 
huge in the mysqltuner.txt. okay, so I can attach the mysql config currently 
used and the mysqlreport.txt and mysqltuner.txt.  The problem comes when the 
load increases during the weekend. However, this load is still not huge, around 
200 connections at a time.  Hope someone can help us with some good advice. 
Thank you in advance,  Viktor 



________________________________________________________<br>Dr. Csernus Imre: A 
férfi - Rendelje meg 20% 
kedvezménnyel!<br>http://bookline.hu/product/home!execute.action?tabname=konyv&type=22&_v=Dr_Csernus_Imre_A_ferfi&id=80504&tabname=book&affiliate=frejkakar8779


r...@sun:~# mysqlreport
MySQL 5.0.32-Debian_7et  uptime 0 1:2:8         Sun Jun  7 20:10:51 2009 

__ Key _________________________________________________________________
Buffer used     5.86M of 512.00M  %Used:   1.14                         
  Current      99.22M            %Usage:  19.38                         
Write ratio      0.45                                                   
Read ratio       0.00                                                   

__ Questions ___________________________________________________________
Total         230.79k   61.91/s                                         
Slow              723    0.19/s  %Total:   0.31  %DMS:   2.39           
DMS            30.20k    8.10/s           13.09

__ Table Locks _________________________________________________________
Waited          9.18k    2.46/s  %Total:  30.23
Immediate      21.18k    5.68/s

__ Tables ______________________________________________________________
Open              577 of 1024    %Cache:  56.35
Opened            695    0.19/s

__ Connections _________________________________________________________
Max used         1227 of 2400      %Max:  51.12
Total          41.03k   11.01/s

__ Created Temp ________________________________________________________
Disk table          0    0.00/s
Table              56    0.02/s
File                0    0.00/s
r...@sun:~# ./mysqltuner.pl

 >>  MySQLTuner 1.0.0 - Major Hayden <ma...@mhtx.net>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering

-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.32-Debian_7etch10-log
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated -InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 22M (Tables: 9)
[OK] Total fragmented tables: 0

-------- Performance Metrics -------------------------------------------------
[--] Up for: 1h 3m 4s (231K q [61.137 qps], 41K conn, TX: 184M, RX: 24M)
[--] Reads / Writes: 98% / 2%
[--] Total buffers: 602.0M global + 24.4M per thread (2400 max threads)
[!!] Maximum possible memory usage: 57.7G (367% of installed RAM)
[OK] Slow queries: 0% (733/231K)
[OK] Highest usage of available connections: 51% (1242/2400)
[OK] Key buffer size / total MyISAM indexes: 512.0M/8.6M
[OK] Key buffer hit rate: 99.7% (1M cached / 6K reads)
[OK] Query cache efficiency: 84.0% (159K cached / 189K selects)
[OK] Query cache prunes per day: 0
[OK] Temporary tables created on disk: 0% (0 on disk / 59 total)
[OK] Thread cache hit rate: 84% (6K created / 41K connections)
[OK] Table cache hit rate: 83% (577 open / 695 opened)
[OK] Open file limit used: 5% (605/12K)
[!!] Table locks acquired immediately: 70%

-------- Recommendations -----------------------------------------------------
General recommendations:
    MySQL started within last 24 hours - recommendations may be inaccurate
    Reduce your overall MySQL memory footprint for system stability
    Enable the slow query log to troubleshoot bad queries
    Optimize queries and/or use InnoDB to reduce lock wait

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=arch...@jab.org

Reply via email to