QuicksearchCodenews SearchDisclaimerThe individual owning this blog works at Sun Microsystems GmbH in Germany, a subsidiary of Oracle. The opinions expressed here are his own, are not necessarily reviewed in advance by anyone but the individual author, and neither Oracle nor any other party necessarily agrees with them.
NavigationCategories
|
< links for 2010-01-06 | The Deliverer's knowledge: Sun Cluster Step by Step - How to add an additional node to an existing single-node cluster? >
Detecting Mysql full-table scans with dtraceThursday, January 7. 2010Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
log_slow_queries = on
long_query_time = 0.1 log_queries_not_using_indexes = on und ggf. min_examined_row_limit = irgendwas Das erste schaltet das Slow Log an (in 5.1 endlich auch ohne einen Neustart des Servers). long_query_time kann nun endlich auch auf Werte unter 1s gesetzt werden. log_queries_not_using_indexes loggt Full Table Scans, und min_examined_row_limit sorgt dafür, daß solche Scans auf kleinen Tabellen nicht das Log cluttern.
Das min_examined_row_limit kannte ich noch nicht .... was gelernt
log_slow_queries can't log queries which take less than 1s - at least not in mysql 5.0 and older (I'm not sure about newer ones). Then this is only example and one can extend the script to do much more.
For example see MySQL TOP - http://milek.blogspot.com/2010/01/mysql-top.html |
Links in this articleThe LKSF bookThe book with the consolidated Less known Solaris Tutorials is available for download here
Twitterfeedstwitter.com/c0t0d0s0
just blogged: links for 2010-03-19: Gedanken eines Fliegenden: Freikoerperkultur ... http://bit.ly/c21ARU twitter.com/codenews 6935782 need to manually increment build number one more time http://bit.ly/aMqEbX twitter.com/SunPatches 128365-04 - Sun Crypto Accelerator 6000 1.1: Driver Patch. Available for SPARC since Mar/19/10. http://bit.ly/agl9Nw twitter.com/SolPatchesX86 118192-04 - SunOS 5.9_x86: gtar patch. Available since Mar/19/10. http://bit.ly/cbnoJ7 twitter.com/SolPatchesSPARC 118191-04 - SunOS 5.9: gtar patch. Available since Mar/19/10. http://bit.ly/cb2Drj Web 2.0Contact
Networking open.bc My photos SyndicationTagged articlesAMD Apple avs Bahn Blogging Blogosphere braindump Business Travel CeBIT cec cec2006 CMT del.icio.us deutsch dtrace fliegen Fundsache General Hamburg IBM i hate sundays Intel iscsi jumpstart Links Linux lksf Mindfuck Movies Music Musik Niagara Opensolaris Opteron Photographie policy of ... Politik Security Solaris storage Sun suncec2007 sunw t1 The IT Business Ultrasparc ultrasparc t1 Wirtschaft Work ZFS
Comments about Who are you?
Sat, 20.03.2010 02:15
Ich bin im Rahmen der Diskussi
on um das Zugangserschwerungsg
esetz auf dein Blog gestoßen.
Als Linux-Begeisterter d [...]
Sat, 20.03.2010 00:32
The article doesn't explain wh
y the adquisition of Sun is go
ing to be a sucessfull. It onl
y says that we all know: [...]
Fri, 19.03.2010 20:58
Well, I am being paid to take
care of Solaris 10 systems and
my company will continue to u
se it. But the relativel [...]
Fri, 19.03.2010 17:36
Actually I am curious to know
what would have happened if th
ey objected.
Fri, 19.03.2010 17:31
I agree, it has been a very il
l and stupid waiting...full of
stupid statements...I was so
much waiting for them to [...]
Buttons![]() This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Germany License
![]() ![]() ![]() Blog Administration |