120 |
<LI><A HREF="#corelin">Watch and analyze crashdumps (Linux)</A></LI> |
<LI><A HREF="#corelin">Watch and analyze crashdumps (Linux)</A></LI> |
121 |
<LI><A HREF="#tcpdump1">Start and stop tcpdump based on condition</A></LI> |
<LI><A HREF="#tcpdump1">Start and stop tcpdump based on condition</A></LI> |
122 |
<LI><A HREF="#tcpdump2">Rotate tcpdump until condition occures</A></LI> |
<LI><A HREF="#tcpdump2">Rotate tcpdump until condition occures</A></LI> |
123 |
|
<LI><A HREF="#mysqldproc">MySQL event driven process list</A></LI> |
124 |
</ul> |
</ul> |
125 |
</li> |
</li> |
126 |
</ul> |
</ul> |
1128 |
</pre> |
</pre> |
1129 |
|
|
1130 |
|
|
1131 |
|
<h3><a name="mysqldproc"">MySQL event driven process list</a></h3> |
1132 |
|
This allows to obtain process list of mysql threads as soon as mysql |
1133 |
|
refuses connections. For example we needed to know why mysql |
1134 |
|
returned "Too many connections" to clients occasionaly. (note that |
1135 |
|
for simplicity in this example is showed mysql root account without |
1136 |
|
password - you realy should use restricted account ;) |
1137 |
|
|
1138 |
|
<pre> |
1139 |
|
check process mysqld with pidfile /var/run/mysqld.pid |
1140 |
|
if failed port 3306 protocol mysql then exec "/bin/bash -c '(date && /usr/bin/mysqladmin -u root processlist && echo) >> /tmp/mysql_processlist'" |
1141 |
|
</pre> |
1142 |
|
|
1143 |
|
|
1144 |
<?php include '../include/footer.html'; ?> |
<?php include '../include/footer.html'; ?> |