June 20, 2013

Comment: How to track down the source of Aborted_connects

Or…..you can just set the log-warnings variable to greater than 1. This will start logging the aborted connections in the mysql log. It’s not as detailed as tcpdump. However, in some cases running tcpdump is not an option.

Post: How to use tcpdump on very busy hosts

… can skew results dramatically. Imagine a situation where a single connection sends two queries and gets two responses, with a response… “$TMP/$LOCKFILE” ]; then echo “$self: lock file $LOCKFILE already exists, aborting” exit 1 fi # set trap to be sure tcpdump doesn…

Comment: Watch out for your CRON jobs

I’m surprised you didn’t recommend using MySQL events — many people are on 5.0 or higher and … ‘noise’ to ignore like if there’s a lot of “aborted connects“, so we see the important things), so that issues is…

Comment: How to track down the source of Aborted_connects

If you were to dig out one of my earlier Audit patches for MySQL, you could have hooked a plugin on the aborted connect event and no need to mess about with tcpdump.

Comment: Apache PHP MySQL and Runaway Scripts

… something like scripts or MySQL calls and does not output anything to the browser neither automatic termination not connection_aborted() check seems to… network send is attempted connection abort from client will not be discovered.” That’s normal for a TCP/IP connection. When the server…

Comment: Percona XtraDB Cluster reference architecture with HaProxy

…) FATAL: failed to connect to database server! FATAL: unable to connect to MySQL server, aborting… FATAL: error 2003: Can’t connect to MySQL server on ’172…) FATAL: failed to connect to database server! FATAL: unable to connect to MySQL server, aborting… FATAL: error 2003: Can’t connect to MySQL server on ’172…

Comment: Apache PHP MySQL and Runaway Scripts

… it is quite close to MySQL case – if client is gone SELECT * FROM tbl; will be aborted virtually instantly while if temporary… STOP. It should be possible to check if connection is alive from the server. connection_aborted() could in theory do that but it does not do it – which is good thing to keep in mind. MySQL SLEEP…

Post: PHP Large result sets and summary tables.

… be quite high. Sharing connection no more works If you use buffered query you can use same connection to run other queries…. Connection can timeout If you do not fetch data for long enough MySQL Server may think client is dead and close connection. This… problems with table locks and other issues plus if script aborts it may be hard to restart. So it may be…

Comment: How well does your table fits in innodb buffer pool ?

…_size=0 read_buffer_size=524288 max_used_connections=281 max_threads=2002 threads_connected=120 It is possible that mysqld could… to abort. Query (0x7fd1bccf90b8): is an invalid pointer Connection ID (thread ID): 495168 Status: NOT_KILLED The manual page at http://dev.mysql.com/doc/mysql/en/crashing…

Post: Percona Toolkit Webinar followup Q&A

… the toolkit installed. Q: How to make the tools connect to MySQL The slides are now available here, and slide 7 provides… different, you can control the way the tool discovers and connects to slaves with the –recursion-method option. Q: In the… that lock (part of) the table can make the tool abort with a ‘Lock wait timeout exceeded’ error. The table and…