<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7007679638950378162</atom:id><lastBuildDate>Fri, 20 Mar 2026 13:37:17 +0000</lastBuildDate><category>心情日记</category><category>互联网络</category><category>网站开发</category><category>ubuntu</category><category>ubuntu学习笔记</category><category>博客建设</category><category>酷软推荐</category><category>linux</category><category>免费资源</category><category>C语言学习</category><category>linux工具箱</category><category>perl</category><category>未分类</category><category>洋白菜</category><category>centos</category><category>电影</category><category>C语言</category><category>android</category><category>squid</category><category>vps</category><category>关于我</category><category>近况</category><category>CPAN</category><category>Perl的学习之路</category><category>proxy</category><category>rpm</category><category>spdy</category><category>ssl</category><category>博客</category><category>数码电子</category><category>2014</category><category>FCITX</category><category>arm</category><category>dpkg</category><category>ftp</category><category>gfw</category><category>java学习</category><category>mysql</category><category>nginx</category><category>php</category><category>server</category><category>ubuntu12.04</category><category>vpn</category><category>vsftp</category><category>中文乱码</category><category>模块</category><category>监控</category><category>编译</category><category>转载</category><category>139 139.com sns 网络社区</category><category>139手机邮箱 冻结 中国移动</category><category>16g</category><category>2012</category><category>2013</category><category>4g</category><category>8g</category><category>DNS</category><category>Google adsense 申请 博客</category><category>Google app engine apps python 申请 博客</category><category>Google appengine</category><category>Google blogger live writer 博客 离线发布</category><category>Google blogger 和谐 gfw</category><category>Google blogspot 谷歌 博客申请</category><category>Google chrome 浏览器 书签</category><category>Google ping blog seo</category><category>Google 文档 picasa 手机版</category><category>Google 百度 恶搞 搜索.sb</category><category>Google 自定义搜索 Customizable Search 专业搜索</category><category>Google 高校 巡讲 企业文化</category><category>HTC HERO 智能手机 手机评测 Google android</category><category>JAVA学习笔记</category><category>JDK</category><category>Linux ubuntu movable type 4 本地安装</category><category>Milestone 里程碑 vps android openvpn pptpvpn buyvm</category><category>Ruby</category><category>U盘</category><category>U盘安装，分区</category><category>Windows 7 下载</category><category>apt</category><category>arm2440</category><category>arm9</category><category>blogger</category><category>btsync</category><category>chrome</category><category>cn 域名 抢注</category><category>cpanm</category><category>curl</category><category>debian</category><category>dj</category><category>dnspod 博客 无法访问 dns</category><category>do</category><category>docx xlsx pptx ppsx office 2003 office 2007 格式兼容包</category><category>dokuwik</category><category>dreamhost</category><category>dropbox</category><category>eviews 计量经济学 软件 破解</category><category>exclude</category><category>fanqiang</category><category>feedsky验证</category><category>framebuffer</category><category>fxclub 外汇保证金 expressfx 福瑞斯</category><category>gfw Google app engine.网络自由</category><category>globat 主机 ip 和谐 主机商 交流</category><category>globat 免费主机 陷阱 升级 信用卡</category><category>globat 空间 gfw ip</category><category>gmail</category><category>godaddy 优惠码 org 域名 Google</category><category>godaddy 域名 info 空间 免费</category><category>godaddy 域名 paypal 支付 信用卡</category><category>godaddy 域名 优惠码</category><category>godaddy 域名 空间 免费</category><category>google</category><category>gtd</category><category>html</category><category>http</category><category>iis 安装 http500</category><category>iis6.0 500错误 iis安装失败 iis配置问题</category><category>inotify</category><category>java</category><category>javascript</category><category>kingston</category><category>libjpeg</category><category>link.Google 反向链接 网站收录</category><category>live writer  blogger</category><category>makefile</category><category>memcache</category><category>minicom</category><category>minicpan</category><category>movable type godaddy 安装 主机 空间 zblog 博客</category><category>mysql优化</category><category>mysql监控</category><category>nfs</category><category>nofollow 链接 pr spam seo</category><category>office live domain 微软 免费</category><category>openvpn</category><category>pdf word 转换 注册码 solid converter</category><category>pdf解密 pdf文档 pdf打印</category><category>pecl</category><category>perldoc</category><category>perl，bless</category><category>php-fpm</category><category>phpmyadmin</category><category>pp</category><category>pr</category><category>putty</category><category>qq 校友 校内网 sns</category><category>require</category><category>scrollLeft</category><category>sdk</category><category>shell</category><category>skype voip</category><category>sns 搭建 社交网络</category><category>sns 校内网 社区 qq校友</category><category>sns 社交网络 搭建 ucenter</category><category>spec</category><category>svn</category><category>switchsharp</category><category>tcpdump</category><category>todotxt</category><category>typeglob</category><category>ubunut</category><category>vnc</category><category>web</category><category>webhosting</category><category>wiki</category><category>winrar winzip 激活码 key 解压软件</category><category>wordpress</category><category>wordpress Windows live writer 链接错误</category><category>xrdp</category><category>yahoo 域名 1.99美元 优惠</category><category>yaml</category><category>youtube Google 视频 加速</category><category>zblog 主题 样式 css模板</category><category>中午</category><category>中国电信 天津电信 校园套餐 天翼 3g 189</category><category>中国移动 手机邮箱 冻结 续</category><category>中文</category><category>交换链接</category><category>优化</category><category>作用域</category><category>免费 光盘 系统 Linux ubuntu</category><category>分辨率</category><category>励志</category><category>包依赖</category><category>北京</category><category>博客 2009 自定义搜索引擎</category><category>博客 iis 本地架设 备份</category><category>博客 sns</category><category>博客 免费主机 自己的博客 博客程序</category><category>博客 友情链接</category><category>博客 奥运</category><category>博客 推广 流量 数据 统计</category><category>博客 洋白菜 zblog 主题 广告</category><category>博客 申请 拥有 百度</category><category>博客 申请 百度 新浪.搜狐 网易 qq空间</category><category>博客 离线写作 工具 livewriter zoundry</category><category>博客 网址 名人</category><category>博客 赚钱</category><category>原创 信心 抄袭 鄙视</category><category>反向代理</category><category>可爱 Google adsense 广告</category><category>命令</category><category>在线社区 sns habbo second life</category><category>域名 主机</category><category>域名 解析 网站</category><category>备忘</category><category>外包</category><category>外汇保证金 fxclub.美元</category><category>女排 奥运 中国 美国</category><category>妥协</category><category>字符集</category><category>学习</category><category>学习 英语 身体 早睡早起</category><category>小事感悟 心情日记</category><category>小企鹅输入法</category><category>开发工具</category><category>张宁 博客 羽毛球 奥运冠军</category><category>张曦文 博客 名人</category><category>微软</category><category>微软 盗版 黑屏 xp</category><category>心情日记 奋斗 梦想 追求</category><category>心情日记 我在忙什么</category><category>心情日记 网站建设 我在忙什么</category><category>性能</category><category>我在忙什么</category><category>我在忙什么 网站建设 模板</category><category>我要啦 域名批量查询 83g</category><category>手机</category><category>打包</category><category>拖延</category><category>排除</category><category>推广 百度 知道 网站</category><category>搬家</category><category>数码照片 误删 数据恢复 内存卡</category><category>数码相框</category><category>新东方 俞敏洪 六级词汇 mp3 下载</category><category>无线设置</category><category>日志</category><category>日记</category><category>智能 输入法 英文 triivi</category><category>服务器</category><category>服务器 出问题 博客 备份</category><category>校内网 sns 游戏 虚拟社区</category><category>梦想</category><category>模板 网站建设</category><category>模板 网站建设 divcss</category><category>正则</category><category>永远别去太在意别人对你的评价</category><category>洋白菜 ubuntu vps wordpress blog movable type</category><category>洋白菜 网站.seo</category><category>洋白菜 近况</category><category>洋白菜 近况 2008年</category><category>洋白菜 近况 打算 日记 心情</category><category>测试</category><category>济南</category><category>游戏社区 在线游戏 网络游戏 qq游戏</category><category>父亲 父亲节 我 颓废 无助 迷茫</category><category>环境</category><category>环境变量</category><category>理想</category><category>电波</category><category>电视剧</category><category>百度 Google 搜索引擎</category><category>百度 收录 pr 域名</category><category>百度 沙盒 排名 洋白菜</category><category>百度 网站 博客 收录</category><category>百度 雅虎 淘宝网 打听</category><category>离职</category><category>程序员</category><category>笔试</category><category>第十一个妈妈 电影 亲情 感动</category><category>编码</category><category>编码设置</category><category>网站建设</category><category>英语 四六级 考试 答案 cet4 cet6</category><category>葛优 活着 生活感悟</category><category>转发代理</category><category>转折</category><category>输入法</category><category>迅雷 Windows 自动 下载 任务计划</category><category>远大前程</category><category>远程桌面</category><category>迭代</category><category>迷茫</category><category>迷茫 沮丧 失落</category><category>递归</category><category>配置</category><category>重名论坛</category><category>量产</category><category>金士顿</category><category>钓鱼岛</category><category>链接</category><category>链表</category><category>静态IP</category><category>面试</category><category>韩剧</category><category>颜伟鹏 崔瑾 谷歌 巡讲</category><category>颜涛</category><category>驱动</category><category>ＶＰＮ</category><title>洋白菜的博客</title><description>在网络中成长</description><link>http://blog.chaiyalin.com/</link><managingEditor>noreply@blogger.com (lin)</managingEditor><generator>Blogger</generator><openSearch:totalResults>290</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-5682279729234148253</guid><pubDate>Fri, 20 Mar 2026 13:37:00 +0000</pubDate><atom:updated>2026-03-20T21:37:17.610+08:00</atom:updated><title>20260320-sdsyxh-职业生涯第二次失误</title><description>&lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  职业生涯的第二次失误，直接导致了客户数据的丢失。&amp;nbsp; 所有的数据丢失都是各种条件buff叠满的情况下发生，这个真是点背到家了。&amp;nbsp;&lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  &lt;br&gt;  &lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  回头该好好反思下了，到底该做什么，不该做什么，如何专注去做事，而不是各种忙，各种累，各种出差错。&amp;nbsp;&lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  &lt;br&gt;  &lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  真的有可能要给 BF say GoodBye 了&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2026/03/20260320-sdsyxh.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-7783318965674893262</guid><pubDate>Fri, 06 Feb 2026 15:33:00 +0000</pubDate><atom:updated>2026-02-06T23:33:32.706+08:00</atom:updated><title>也许是必须做出选择了</title><description>&lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  也许是必须要做出选择的时候了。 回头看过来，bf 真的不是一个很好的选择，但是又能怎么样呢，只能经历了才知道，不能选择那个看起来舒服的道路，因为没有永远平坦的道路，与其那样，不如一开始就选择一个更有挑战的道路，用脚下的力量趟出一条自己的道路。&amp;nbsp;&lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  &lt;br&gt;  &lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  &lt;br&gt;  &lt;/div&gt;  &lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  2026.02.06 &amp;nbsp; bf，zs，jky，ly，lxy&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2026/02/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-5275068920731999034</guid><pubDate>Wed, 12 Nov 2025 22:39:00 +0000</pubDate><atom:updated>2025-11-13T06:39:28.364+08:00</atom:updated><title>2025.11.11</title><description>&lt;div style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot; class=&quot;elementToProof&quot;&gt;  2025年的双11 ，第一次参加开庭，结果可能很不理想，但是无所谓，为了这口气也要硬刚到底。&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2025/11/20251111.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-6037160099746513188</guid><pubDate>Mon, 16 Jun 2025 09:26:00 +0000</pubDate><atom:updated>2025-06-16T17:26:13.856+08:00</atom:updated><title>混乱</title><description>&lt;p class=&quot;mobile-photo&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiZm1w9wYLWuTqX_KR539Knpml7BfhdspeQh3kZbtcXxObsOpl5pARbjsqIzd9I6OCqzYkpuV2RTxdV2T9f2TnINJoM5uiwAYH1PAs8yP2WCrpGybYKyPiygp_Lvf-ibsbe67PZCNwv75Xz34LwH7Vinn5JxSl1-oElHkjHgL6-TSO9Tg7Np1gpcnqHx1c&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiZm1w9wYLWuTqX_KR539Knpml7BfhdspeQh3kZbtcXxObsOpl5pARbjsqIzd9I6OCqzYkpuV2RTxdV2T9f2TnINJoM5uiwAYH1PAs8yP2WCrpGybYKyPiygp_Lvf-ibsbe67PZCNwv75Xz34LwH7Vinn5JxSl1-oElHkjHgL6-TSO9Tg7Np1gpcnqHx1c=s320&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_7516476124496436818&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  又是一个人当天来回4百多公里，回老家处理房子的事，回来的告诉上，害怕脑子要死机，将音乐放到最大，s6高速上车不多，忽然一看车速表，竟然跑到了170多，吓得一激灵。 回去的这一天各种混乱，堵门，推搡，打仗，110， 哎只能是都怪自己了，太信任别人，太不重视这个房子，期待下次更新博客时，是有个好的解决。&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2025/06/blog-post.html</link><author>noreply@blogger.com (lin)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEiZm1w9wYLWuTqX_KR539Knpml7BfhdspeQh3kZbtcXxObsOpl5pARbjsqIzd9I6OCqzYkpuV2RTxdV2T9f2TnINJoM5uiwAYH1PAs8yP2WCrpGybYKyPiygp_Lvf-ibsbe67PZCNwv75Xz34LwH7Vinn5JxSl1-oElHkjHgL6-TSO9Tg7Np1gpcnqHx1c=s72-c" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-3871476321827027644</guid><pubDate>Mon, 28 Apr 2025 12:19:00 +0000</pubDate><atom:updated>2025-04-28T20:19:10.668+08:00</atom:updated><title>在bf的又一次变动</title><description>&lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  在bf的又一次变动，被合并到 jky， 要做售前支撑，并要背负一个小目标的业绩kpi 。 感觉有点好笑，并且心里不平衡。但又怎样，也许是个机会，需要抓紧考虑推进真正自己的工作。永远为自己工作，为自己打工。&amp;nbsp;&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2025/04/bf.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-689610589885529014</guid><pubDate>Mon, 07 Apr 2025 14:56:00 +0000</pubDate><atom:updated>2025-04-07T22:56:23.272+08:00</atom:updated><title>20w的教训，靠人不如靠自己</title><description>&lt;div dir=&quot;ltr&quot;&gt;今天来回跑了好几百公里，老家的房子被fhp 给卖了快一年了，今天才知道。自己真是个傻X。挺好，也是个教训，吃一堑长一智吧，以后感觉不对劲的人就不要有什么掺和了，靠人不如靠自己，买来了自己都没管过，想挣这点房租哪有那么美的事。 &amp;nbsp; &amp;nbsp; &amp;nbsp;2025.04.07。22:55&lt;/div&gt;  &lt;div id=&quot;ms-outlook-mobile-body-separator-line&quot; dir=&quot;ltr&quot;&gt;&lt;/div&gt;  &lt;div id=&quot;ms-outlook-mobile-signature&quot; dir=&quot;ltr&quot;&gt;&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2025/04/20w.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-4045168078394131398</guid><pubDate>Tue, 04 Feb 2025 08:39:00 +0000</pubDate><atom:updated>2025-02-04T16:39:23.479+08:00</atom:updated><title>2025年新春伊始</title><description>&lt;p class=&quot;mobile-photo&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjmxYmTeYS11sujx5kmTqpIMVblAuD2gCsbyFRWRbvfoPAEQGJdnboeKR3oQs2MRkCc_Fq4sQgq5fXDY3PSKqrWbiCZ84-qGoq9IsrIqpY5S7sdlmqnrModV54KjGiTwJ3Pt8R4Qfi6JxjBIKB71zgSn2CGBu7BlXAelQ-6Toe3fQQFVEKSpInOY_pd-RI&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjmxYmTeYS11sujx5kmTqpIMVblAuD2gCsbyFRWRbvfoPAEQGJdnboeKR3oQs2MRkCc_Fq4sQgq5fXDY3PSKqrWbiCZ84-qGoq9IsrIqpY5S7sdlmqnrModV54KjGiTwJ3Pt8R4Qfi6JxjBIKB71zgSn2CGBu7BlXAelQ-6Toe3fQQFVEKSpInOY_pd-RI=s320&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_7467480811092983122&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  2025年春节在期盼和驾车的不断辗转中马上要结束了，明天2月5日初八正式开始新的一年工作。&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  2025年要身体健康和家庭和睦，dd 健康成长，工作要有突破。&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2025/02/2025.html</link><author>noreply@blogger.com (lin)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEjmxYmTeYS11sujx5kmTqpIMVblAuD2gCsbyFRWRbvfoPAEQGJdnboeKR3oQs2MRkCc_Fq4sQgq5fXDY3PSKqrWbiCZ84-qGoq9IsrIqpY5S7sdlmqnrModV54KjGiTwJ3Pt8R4Qfi6JxjBIKB71zgSn2CGBu7BlXAelQ-6Toe3fQQFVEKSpInOY_pd-RI=s72-c" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-5283937093326116040</guid><pubDate>Fri, 29 Nov 2024 06:36:00 +0000</pubDate><atom:updated>2024-11-29T14:36:37.073+08:00</atom:updated><title>可乐</title><description>&lt;p class=&quot;mobile-photo&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj6lZnnJbu98d-XyaO_EKLZY_dYXRz_bKebLeF-6okIV0NfTgEwl_a7qOAM6-Ws78eR77eR5EXLgVAFVOlnHJjA719oL3mhMwo0R5-AHK6db89Ok_l5PMN56e-7NEft768jtO3hcNkR_gxUotSqbUyHcTLLpzNK2NL39w-pQy-m6HusIpPs6w6nXoyN0m8&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj6lZnnJbu98d-XyaO_EKLZY_dYXRz_bKebLeF-6okIV0NfTgEwl_a7qOAM6-Ws78eR77eR5EXLgVAFVOlnHJjA719oL3mhMwo0R5-AHK6db89Ok_l5PMN56e-7NEft768jtO3hcNkR_gxUotSqbUyHcTLLpzNK2NL39w-pQy-m6HusIpPs6w6nXoyN0m8=s320&quot;  border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_7442586467681006482&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  记录下第一只猫咪，可乐&amp;nbsp; 2024.11.16-2024.11.22&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2024/11/blog-post_83.html</link><author>noreply@blogger.com (lin)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEj6lZnnJbu98d-XyaO_EKLZY_dYXRz_bKebLeF-6okIV0NfTgEwl_a7qOAM6-Ws78eR77eR5EXLgVAFVOlnHJjA719oL3mhMwo0R5-AHK6db89Ok_l5PMN56e-7NEft768jtO3hcNkR_gxUotSqbUyHcTLLpzNK2NL39w-pQy-m6HusIpPs6w6nXoyN0m8=s72-c" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-4822988256936637303</guid><pubDate>Wed, 06 Nov 2024 06:07:00 +0000</pubDate><atom:updated>2024-11-06T14:07:21.761+08:00</atom:updated><title>2024特朗普上台</title><description>&lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  中午吃完饭沿着河边往办公室走，今天是 2024年11月6日，美国 2024年大选结果一会儿就要公布了，没有意外的话，特朗普即将上任。就如蝴蝶效应一样，特朗普这对翅膀对中国经济未来的走向影像不会小。&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2024/11/2024.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-5830167231071930004</guid><pubDate>Wed, 16 Oct 2024 15:13:00 +0000</pubDate><atom:updated>2024-10-16T23:13:19.079+08:00</atom:updated><title>2024年10月念念碎</title><description>&lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  晚上右转与直行车辆碰了，全责&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  DD学英语，到23点&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  在BF的HT，续签了&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  XT控制的，还可以&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  ZW的pcjz, 继续完善&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  杂乱一切，记录一下&lt;/div&gt;  &lt;div class=&quot;elementToProof&quot; style=&quot;font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;  2024.10.16 23:13&lt;/div&gt;  </description><link>http://blog.chaiyalin.com/2024/10/202410.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-3950497250192906176</guid><pubDate>Thu, 13 Jun 2024 09:25:00 +0000</pubDate><atom:updated>2024-06-13T17:25:51.312+08:00</atom:updated><title>想都是问题，做都是答案</title><description>&lt;p&gt;恍恍惚惚，焦虑，疑惑，否定，各种负面情绪困扰。&lt;/p&gt;&lt;p&gt;不想去想那些事情，聚焦自己，勇敢去做。&amp;nbsp;&lt;/p&gt;&lt;p&gt;无论如何，要走出一条自己的路。&lt;/p&gt;&lt;p&gt;2024.06.13&amp;nbsp; sncszg &amp;nbsp; lzkr &lt;br /&gt;&lt;/p&gt;</description><link>http://blog.chaiyalin.com/2024/06/blog-post_13.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-1322251534408420300</guid><pubDate>Wed, 05 Jun 2024 12:23:00 +0000</pubDate><atom:updated>2024-06-05T20:23:19.375+08:00</atom:updated><title>中年危‘机’</title><description>&lt;p&gt;没想到我的中年危机这么快就来了，在我还没有准备好时，来的措手不及&lt;/p&gt;&lt;p&gt;昨天中午在接lk时，他问我合同到期时间，说公司准备对到期的员工不再续签，当时我就点楞在那里了，这两天一直恍恍惚惚，各种心情和想法都有过。&lt;/p&gt;&lt;p&gt;其实，刚开始来bf一段时间后，就决定了要充分利用了在这里的时间优势，尽快的把自己事业开展起来，虽然去年开始有了一些动作，但还是太慢了，慢到当听到这个结果时，自己是那样的恐慌和后悔。&lt;/p&gt;&lt;p&gt;这两天一直在有各种想法，脑袋有点痛，也许真的需要有外部压力时，才能督促自己么 ？&amp;nbsp;&lt;/p&gt;&lt;p&gt;中年危机，到底是危，还是机 ？ 希望两年后能有一个好的结果。&amp;nbsp;&lt;/p&gt;&lt;p&gt;加油，相信自己！把命运握在自己手中！&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2024.06.05 20.23 &lt;br /&gt;&lt;/p&gt;</description><link>http://blog.chaiyalin.com/2024/06/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-8713654163668598005</guid><pubDate>Mon, 15 Jan 2024 07:51:00 +0000</pubDate><atom:updated>2024-01-15T15:51:45.125+08:00</atom:updated><title>人生没有白走的路</title><description>&lt;p&gt;&amp;nbsp;下午刚和跟妈妈从医院回来，她做了肠胃镜之后卧床休息。我本打算请半天假，因为结束到家已经下午两点多了，就下午也不过去单位了。&lt;/p&gt;&lt;p&gt;打开youtube ，看到路董宇辉在央视“开讲啦”的视频。其中有个问题小环节，问题问道他过去八年的英语老师经历对于直播事业有帮助么。 董宇辉坚定的回答，一定有。因为你身上永远有你过去的影子，人生没有白走的路。&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;他的这个回答直激我的内心，是呀，人身上都有过去的影子，人生都没有白走的路。现在看到的无论是董宇辉，还是其他取得成功的人们，他们都不是一下登上了现在的高峰，他们也许在成功之前，已经前前后后的经历了多少磨练和历练。&amp;nbsp;&lt;/p&gt;&lt;p&gt;今天还看了一个采访在上海开面馆的女老板的视频，十年间她已经开了多家店，身价过千万。 让她总结自己的创业总结，她说，创业没有想的那么简单，也没有想的那么困难。&lt;/p&gt;&lt;p&gt;所以，人生没有白走的路，重要的是你开始迈开了脚。&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2024.01.15&amp;nbsp; 15:51&lt;/p&gt;</description><link>http://blog.chaiyalin.com/2024/01/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-3139915304373724663</guid><pubDate>Mon, 01 Jan 2024 14:24:00 +0000</pubDate><atom:updated>2024-01-01T22:24:10.646+08:00</atom:updated><title>2023-2024</title><description>&lt;p&gt;&amp;nbsp;今天是2024年1月1日，距离上篇博客过去了快两年了。&lt;/p&gt;&lt;p&gt;2023年发生了好多事，外部的内部都有。持续了三年的新冠疫情终于算是暂告一个段落，疫情影响了大部分人的身体健康状况，也包括我和家人的健康，让人终于意识到，身体健康是最重要的一件事。&amp;nbsp;&lt;/p&gt;&lt;p&gt;2023年的外部格局也一直在持续变差，影响着每个人。俄乌冲突、以色列，中美博弈，包括台湾大选，这些看似是很遥远的事情，却在深深的影响着中国，以及每个人。&lt;/p&gt;&lt;p&gt;2023年自己也做出了一些努力和改进，但是感觉还远远不够。 amazon 的主体注册下来后一直没有推进。年底的是很偶然兼了一个副业算是唯一欣慰的地方。&lt;/p&gt;&lt;p&gt;当然23年花了很多的时间在小区业委会这件事上，虽然最终失败了。但是也算是让自己看清楚和明白了很多事。只能说基层在很多事真的就是一个托字，不要指望太多。与其花那么多时间在这件事上，不如自己多努力，脱离当前的环境。&lt;/p&gt;&lt;p&gt;展望24年，希望在很多事上有所突破。包括 amazon 、出国签证、以及个人身体状况上。&lt;/p&gt;&lt;p&gt;2324.1月1日&amp;nbsp; 22点23分&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><link>http://blog.chaiyalin.com/2024/01/2023-2024.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-8060972232876059679</guid><pubDate>Fri, 25 Feb 2022 15:00:00 +0000</pubDate><atom:updated>2022-02-25T23:00:47.700+08:00</atom:updated><title>一年时间</title><description>看了上篇博文正是在选择下份工作的时候，当时好多选择，最终来了BF； 现在看BF和当时很多机会比真的不怎样。 但是，没有哪个选择是能够百分百让人满意的。&amp;nbsp;&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;35岁的目标，需要去实现。&lt;/div&gt;&lt;div&gt;利用在BF的时间优势，给自己一年时间，努力的去开创自己的新机遇。&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2022,02,25 于lq&lt;/div&gt;</description><link>http://blog.chaiyalin.com/2022/02/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-2567497230334730146</guid><pubDate>Sun, 29 Aug 2021 16:13:00 +0000</pubDate><atom:updated>2021-08-30T00:13:25.844+08:00</atom:updated><title>向左, 向右</title><description>&lt;p&gt;&amp;nbsp;2021年08月30日 0:03&amp;nbsp;&lt;/p&gt;&lt;p&gt;最近这两天天气都还不错，当然主要还是心情不错&lt;/p&gt;&lt;p&gt;下雨下的有深秋的感觉， 坐在电脑桌前， 听着深夜广播&lt;/p&gt;&lt;p&gt;最近工作的变动可能很快就有个结果了， 向左，向右，&amp;nbsp;&lt;/p&gt;&lt;p&gt;虽然有点选择犹豫，但是内心还是有倾向的&lt;/p&gt;&lt;p&gt;无论怎样，都是自己做的选择 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description><link>http://blog.chaiyalin.com/2021/08/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-3925015743905557722</guid><pubDate>Tue, 31 Dec 2019 05:22:00 +0000</pubDate><atom:updated>2019-12-31T13:57:07.187+08:00</atom:updated><title>2019年12月31日</title><description>转眼，距离上篇博客过去了5年多&lt;br /&gt;
&lt;div&gt;
变化很多， 但和21世纪的头20年的变化比，感觉自己又没什么突破&lt;/div&gt;
&lt;div&gt;
2000年的时候，互联网刚刚浮现，2019年的现在已是沧海变桑田&lt;/div&gt;
&lt;div&gt;
但，33岁的我，感觉困顿踱步，走不出现在的圈子，看不到一条自己的路&lt;/div&gt;
&lt;div&gt;
2020年要来了，又是一个新的10年，需要更大的目标，更多的&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
行动！&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2019.12.31&amp;nbsp; @jinan&amp;nbsp; dhds&amp;nbsp; szwp&lt;/div&gt;
</description><link>http://blog.chaiyalin.com/2019/12/20191231.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-391701108178017729</guid><pubDate>Mon, 08 Dec 2014 21:36:00 +0000</pubDate><atom:updated>2014-12-09T05:36:21.192+08:00</atom:updated><title>年少不可欺</title><description>年少不可欺&lt;br /&gt;
2014 .12. 09&lt;br /&gt;
济南&lt;br /&gt;
biaoshu&lt;br /&gt;
jq&lt;br /&gt;
-----------&lt;br /&gt;
5:00/day</description><link>http://blog.chaiyalin.com/2014/12/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-4904430155673972308</guid><pubDate>Sun, 31 Aug 2014 15:48:00 +0000</pubDate><atom:updated>2014-08-31T23:50:19.265+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">妥协</category><category domain="http://www.blogger.com/atom/ns#">理想</category><title>理想和妥协</title><description>&lt;div&gt;
理想和妥协&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
周日的晚上,偶然看到有人转&quot;盲山&quot; 这部电影, 是优酷上的删减版. &amp;nbsp;&lt;br /&gt;
&lt;div&gt;
电影中的陈姐,刚被拐卖到山村里的时候, 也逃了好几次, 每次被抓回来遭受挨打, 后来就不再逃了, 还生下了两个孩子.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
抛开这个剧情事件本身, 现实生活中的我们,都是妥协现实的陈姐: &amp;nbsp;你还记的初中,高中时的那些写在日记本上理想吗? &amp;nbsp;在大学毕业后, 进入社会, 没有人胁迫你, 但现实世界的种种一次又一次的强X了你的理想, 你痛了, 你开始妥协了, 开始随遇而安, 开始饱食终日, 开始就这样了, 一辈子就这样了. 忘记了曾经梦想的终点, 像一只温水中的青蛙.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
---------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
老罗虽然不是一个很纯粹的人, 但是他的经历一样值得去学习, 像冯唐那样, 有梦想, 但是要先能财务自由, 这才能保护你爱的人, 才能去实现自己的理想. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://blog.chaiyalin.com/2014/08/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-1705144466714605784</guid><pubDate>Wed, 13 Aug 2014 21:26:00 +0000</pubDate><atom:updated>2014-08-14T05:27:21.114+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">2014</category><category domain="http://www.blogger.com/atom/ns#">日志</category><category domain="http://www.blogger.com/atom/ns#">近况</category><title>记2014年8月</title><description>2014年8月, 在经历了漫长而又煎熬的等待后, haixia 同学很偶然的去了brhk, 而不是等待了大半年的qldb, 感觉真的是印证了阿甘正传的那句话:&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: arial; font-size: 14px; line-height: 26.428998947143555px;&quot;&gt;Life&amp;nbsp;was&amp;nbsp;like&amp;nbsp;a&amp;nbsp;box&amp;nbsp;of&amp;nbsp;chocolates,&amp;nbsp;you&amp;nbsp;never&amp;nbsp;know&amp;nbsp;what&amp;nbsp;you’re&amp;nbsp;gonna&amp;nbsp;get.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
在yzw的8月份, 经历了每年一次的8.8活动, 感受不想多说, 以后还是要多反思自己了, 如何提高自己是永远的工作主线 ;&lt;br /&gt;
&lt;br /&gt;
8月11日跟haixia 同学去北京, 下午的火车, 又是一次赶火车的经历, 直接带领haixia 同学翻过签票口上的车, 哎, 拖延症, 以后得注意了&lt;br /&gt;
&lt;br /&gt;
就算在北京呆过一年多, 这次到了北京, 还是有些茫然; 在北京的经历还算顺利吧, 虽然很累, 但还是把计划的事情给办完了. &lt;br /&gt;
&lt;br /&gt;
最后希望haixia 在北京的这两个月一切顺利,早日归来.</description><link>http://blog.chaiyalin.com/2014/08/20148.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-3091147086596609585</guid><pubDate>Fri, 25 Jul 2014 08:45:00 +0000</pubDate><atom:updated>2014-07-25T16:47:01.200+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">memcache</category><category domain="http://www.blogger.com/atom/ns#">pecl</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>PHP中的Memcache和Memcached扩展的区别</title><description>PHP PECL 中的 Memcache 和 Memcached 扩展的区别&lt;br /&gt;
&lt;br /&gt;
最近打算在线上业务部署 memcache 服务， 公司的网站使用的是 php 编写，在查找 PECL 的扩展的时候，发现有 memcache 和 memcached 两个扩展，有些迷糊这两个扩展的区别，google 一下解决问题&lt;br /&gt;
&lt;br /&gt;
首先，这两个扩展都是连接的 memcache server 的 php 客户端实现，这两个扩展可以同时安装并启用，并且两者在使用方法上相差不大。&lt;br /&gt;
&lt;br /&gt;
其次， memcached 是基于 memcache server 官方维护的 libmemcached 库来实现的，有人认为它的性能会更好些。&lt;br /&gt;
&lt;br /&gt;
下面是关于的两个扩展库的基本使用的方法：&lt;br /&gt;
&lt;br /&gt;
1. PECL memcached 的使用用例&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;具体&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;// create PECL memcached Object
$m = new Memcached();

// add a server, connection is established lazily as far as I know
$m-&amp;gt;addServer( &#39;localhost&#39;, 11211 );

// set values, those are written into your server&#39;s memory using the memcached server
$m-&amp;gt;set( &#39;integer&#39;, 1 );
$m-&amp;gt;set( &#39;intIncrement&#39;, 1 );
$m-&amp;gt;set( &#39;intDecrement&#39;, 1 );
$m-&amp;gt;set( &#39;string&#39;, &#39;I am a string&#39; );
$m-&amp;gt;set( &#39;array&#39;, array( &#39;a&#39;, &#39;b&#39;, &#39;c&#39; ) );

// increment
$m-&amp;gt;increment( &#39;intIncrement&#39; );

// decrement
$m-&amp;gt;decrement( &#39;intDecrement&#39; );

// get values again
var_dump ( $m-&amp;gt;get( &#39;integer&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;intIncrement&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;intDecrement&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;string&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;array&#39; ) );

// delete values
$m-&amp;gt;delete( &#39;integer&#39; );
$m-&amp;gt;delete( &#39;intIncrement&#39; );
$m-&amp;gt;delete( &#39;intDecrement&#39; );
$m-&amp;gt;delete( &#39;string&#39; );
$m-&amp;gt;delete( &#39;array&#39; );

// close connection
$m-&amp;gt;close();

&lt;/pre&gt;
&lt;br /&gt;
2. PECL memcache 的使用用例&lt;br /&gt;
&lt;pre&gt;// create PECL memcache object
$m = new Memcache;

// connect to the memcached server
$m-&amp;gt;connect(&#39;localhost&#39;, 11211);

// set values
$m-&amp;gt;set( &#39;integer&#39;, 1 );
$m-&amp;gt;set( &#39;intIncrement&#39;, 1 );
$m-&amp;gt;set( &#39;intDecrement&#39;, 1 );
$m-&amp;gt;set( &#39;string&#39;, &#39;I am a string&#39; );
$m-&amp;gt;set( &#39;array&#39;, array( &#39;a&#39;, &#39;b&#39;, &#39;c&#39; ) );

// increment
$m-&amp;gt;increment( &#39;intIncrement&#39; );

// decrement
$m-&amp;gt;decrement( &#39;intDecrement&#39; );

// get values again
var_dump ( $m-&amp;gt;get( &#39;integer&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;intIncrement&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;intDecrement&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;string&#39; ) );
var_dump ( $m-&amp;gt;get( &#39;array&#39; ) );

// delete values
$m-&amp;gt;delete( &#39;integer&#39; );
$m-&amp;gt;delete( &#39;intIncrement&#39; );
$m-&amp;gt;delete( &#39;intDecrement&#39; );
$m-&amp;gt;delete( &#39;string&#39; );
$m-&amp;gt;delete( &#39;array&#39; );

// close connection
$m-&amp;gt;close();&lt;/pre&gt;
&lt;br /&gt;
参考链接：http://stackoverflow.com/questions/13974818/pecl-memcache-and-pecl-memcached </description><link>http://blog.chaiyalin.com/2014/07/php-pecl-memcached-vs-pecl-memcache.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-8097239113118780949</guid><pubDate>Sun, 13 Jul 2014 07:29:00 +0000</pubDate><atom:updated>2014-07-13T15:30:22.298+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">debian</category><category domain="http://www.blogger.com/atom/ns#">FCITX</category><category domain="http://www.blogger.com/atom/ns#">linux</category><title>debian 修该 fcitx  输入法字体大小</title><description>&amp;nbsp;debian 修该 fcitx &amp;nbsp;输入法字体大小. &amp;nbsp;从 ubuntu 转到 debian ， 感觉 debian 真的像个新生的婴儿， 一切都是这么的简洁。 默认安装的话， 一切都配置好了， 自带的 fcitx 输入法感觉不错， 就是 感觉字体有些小， google 一下后解决。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
修改：&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: monospace, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 12px; line-height: 14.399999618530273px;&quot;&gt;/usr/share/fcitx/skin/classic/fcitx_skin.conf &amp;nbsp;里面的 Fontsize&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: monospace, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 12px; line-height: 14.399999618530273px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
debian 修该 fcitx &amp;nbsp;输入法字体大小&lt;/div&gt;
</description><link>http://blog.chaiyalin.com/2014/07/debian-fcitx.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-6734838060451363222</guid><pubDate>Sat, 31 May 2014 20:19:00 +0000</pubDate><atom:updated>2014-06-01T04:19:18.032+08:00</atom:updated><title>失眠</title><description>2014年6月1日, 儿童节. &amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
回忆:&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
2点躺下后, 一直翻来覆去的睡不着, 打开手机, 登上了有将近半年没有登陆过的 QQ , 朋友圈里面有一个一个熟悉的面孔, 发现每个人都在变化, 在成为我们这个年龄段该成为的角色, 虽然有些陌生, 但后来想想包括自己也一样的在变.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
工作:&lt;/div&gt;
&lt;div&gt;
突然想起工作来了, 发觉自己有点不够努力, 其实自我感觉也还好,只是看到大家都那么上进, 自己压力挺大. &amp;nbsp;现在的工作有点不太在状态; 虽然工作这块儿一直是随自己的意愿来一步一步的来选择的, 但不知为何总是感觉进步不大, 和自己希望的状态差距好远, 时间好快, 但是自己的效率一直提不起来.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;4点18 , 不知道该写点什么了, 不困, 忙工作了. &amp;nbsp;&lt;/div&gt;
</description><link>http://blog.chaiyalin.com/2014/06/blog-post.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-1654821597430857343</guid><pubDate>Thu, 13 Feb 2014 02:42:00 +0000</pubDate><atom:updated>2014-02-13T10:42:30.978+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">mysql优化</category><category domain="http://www.blogger.com/atom/ns#">mysql监控</category><category domain="http://www.blogger.com/atom/ns#">优化</category><category domain="http://www.blogger.com/atom/ns#">命令</category><category domain="http://www.blogger.com/atom/ns#">监控</category><title>MySQL 数据库 show status 命令汇总</title><description>&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;&lt;span style=&quot;font-family: Helvetica, Tahoma, Arial, sans-serif;&quot;&gt;MySQL 数据库 show status 命令汇总; &amp;nbsp;对于mysql 数据库运行情况的监控, &amp;nbsp;可以使用 mysql 的 show status 命令, &amp;nbsp;实现对 mysql 运行情况的监控.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;文章转载自: &amp;nbsp;&lt;span style=&quot;font-family: Helvetica, Tahoma, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;http://lxneng.iteye.com/blog/451985&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica, Tahoma, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;1, 查看MySQL服务器配置信息&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;2, 查看MySQL服务器运行的各种状态值&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;3, 慢查询&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;%slow%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;log_slow_queries&amp;nbsp;|&amp;nbsp;OFF&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;slow_launch_time&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;%slow%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Slow_launch_threads&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Slow_queries&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;279&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;配置中关闭了记录慢查询（最好是打开，方便优化），超过2秒即为慢查询，一共有279条慢查询&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;4, 连接数&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;max_connections&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;max_connections&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;500&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;max_used_connections&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+----------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+----------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Max_used_connections&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;498&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+----------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;设置的最大连接数是500，而响应的连接数是498&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;max_used_connections / max_connections * 100% = 99.6% （理想值 ≈ 85%）&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;5, key_buffer_size&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;key_buffer_size是对MyISAM表性能影响最大的一个参数, 不过数据库中多为Innodb&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;key_buffer_size&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;key_buffer_size&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;67108864&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;key_read%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Key_read_requests&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;25629497&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Key_reads&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;66071&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;一共有25629497个索引读取请求，有66071个请求在内存中没有找到直接从硬盘读取索引，计算索引未命中缓存的概率：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;key_cache_miss_rate ＝ Key_reads / Key_read_requests * 100% =0.27%&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;需要适当加大key_buffer_size&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;key_blocks_u%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Key_blocks_unused&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;10285&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Key_blocks_used&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;47705&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Key_blocks_unused表示未使用的缓存簇(blocks)数，Key_blocks_used表示曾经用到的最大的blocks数&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Key_blocks_used / (Key_blocks_unused + Key_blocks_used) * 100% ≈ 18% （理想值 ≈ 80%）&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;6， 临时表&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;created_tmp%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Created_tmp_disk_tables&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4184337&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Created_tmp_files&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4124&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Created_tmp_tables&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4215028&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;每次创建临时表，Created_tmp_tables增加，如果是在磁盘上创建临时表，Created_tmp_disk_tables也增加,Created_tmp_files表示MySQL服务创建的临时文件文件数：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Created_tmp_disk_tables / Created_tmp_tables * 100% ＝ 99% （理想值&amp;lt;= 25%）&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;where&amp;nbsp;Variable_name&amp;nbsp;in&amp;nbsp;(&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;tmp_table_size&#39;&lt;/span&gt;,&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;max_heap_table_size&#39;&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------------+-----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------------+-----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;max_heap_table_size&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;134217728&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;tmp_table_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;134217728&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------------+-----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;需要增加tmp_table_size&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;7,open table 的情况&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;open%tables%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Open_tables&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;1024&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Opened_tables&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;1465&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Open_tables 表示打开表的数量，Opened_tables表示打开过的表数量，如果Opened_tables数量过大，说明配置中 table_cache(5.1.3之后这个值叫做table_open_cache)值可能太小，我们查询一下服务器table_cache值&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;table_cache&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;table_cache&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;1024&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Open_tables / Opened_tables * 100% =69% 理想值 （&amp;gt;= 85%）&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Open_tables / table_cache * 100% = 100% 理想值 (&amp;lt;= 95%)&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;8, 进程使用情况&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;Thread%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Threads_cached&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;31&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Threads_connected&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;239&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Threads_created&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;2914&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Threads_running&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;如果我们在MySQL服务器配置文件中设置了thread_cache_size，当客户端断开之后，服务器处理此客户的线程将会缓存起来以响应下一个客户而不是销毁（前提是缓存数未达上限）。Threads_created表示创建过的线程数，如果发现Threads_created值过大的话，表明 MySQL服务器一直在创建线程，这也是比较耗资源，可以适当增加配置文件中thread_cache_size值，查询服务器 thread_cache_size配置：&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;thread_cache_size&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;thread_cache_size&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;32&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;9, 查询缓存(query cache)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;qcache%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_free_blocks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;2226&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_free_memory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;10794944&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_hits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;5385458&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_inserts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;1806301&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_lowmem_prunes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;433101&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_not_cached&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4429464&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_queries_in_cache&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;7168&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Qcache_total_blocks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;16820&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_free_blocks：缓存中相邻内存块的个数。数目大说明可能有碎片。FLUSH QUERY CACHE会对缓存中的碎片进行整理，从而得到一个空闲块。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_free_memory：缓存中的空闲内存。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_hits：每次查询在缓存中命中时就增大&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_inserts：每次插入一个查询时就增大。命中次数除以插入次数就是不中比率。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_lowmem_prunes：缓存出现内存不足并且必须要进行清理以便为更多查询提供空间的次数。这个数字最好长时间来看；如果这个数字在不断增长，就表示可能碎片非常严重，或者内存很少。（上面的&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; free_blocks和free_memory可以告诉您属于哪种情况）&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_not_cached：不适合进行缓存的查询的数量，通常是由于这些查询不是 SELECT 语句或者用了now()之类的函数。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_queries_in_cache：当前缓存的查询（和响应）的数量。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Qcache_total_blocks：缓存中块的数量。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;我们再查询一下服务器关于query_cache的配置：&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;query_cache%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;query_cache_limit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;33554432&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;query_cache_min_res_unit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4096&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;query_cache_size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;33554432&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;query_cache_type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;ON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;query_cache_wlock_invalidate&amp;nbsp;|&amp;nbsp;OFF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;各字段的解释：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;query_cache_limit：超过此大小的查询将不缓存&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;query_cache_min_res_unit：缓存块的最小大小&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;query_cache_size：查询缓存大小&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;query_cache_type：缓存类型，决定缓存什么样的查询，示例中表示不缓存 select sql_no_cache 查询&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;query_cache_wlock_invalidate：当有其他客户端正在对MyISAM表进行写操作时，如果查询在query cache中，是否返回cache结果还是等写操作完成再读表获取结果。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;query_cache_min_res_unit的配置是一柄”双刃剑”，默认是4KB，设置值大对大数据查询有好处，但如果你的查询都是小数据查询，就容易造成内存碎片和浪费。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;查询缓存碎片率 = Qcache_free_blocks / Qcache_total_blocks * 100%&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;如果查询缓存碎片率超过20%，可以用FLUSH QUERY CACHE整理缓存碎片，或者试试减小query_cache_min_res_unit，如果你的查询都是小数据量的话。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;查询缓存利用率 = (query_cache_size – Qcache_free_memory) / query_cache_size * 100%&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;查询缓存利用率在25%以下的话说明query_cache_size设置的过大，可适当减小；查询缓存利用率在80％以上而且Qcache_lowmem_prunes &amp;gt; 50的话说明query_cache_size可能有点小，要不就是碎片太多。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;查询缓存命中率 = (Qcache_hits – Qcache_inserts) / Qcache_hits * 100%&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;示例服务器 查询缓存碎片率 ＝ 20.46％，查询缓存利用率 ＝ 62.26％，查询缓存命中率 ＝ 1.94％，命中率很差，可能写操作比较频繁吧，而且可能有些碎片。&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;10,排序使用情况&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;sort%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Sort_merge_passes&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;2136&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Sort_range&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;81888&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Sort_rows&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;35918141&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Sort_scan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;55269&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-------------------+----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Sort_merge_passes 包括两步。MySQL 首先会尝试在内存中做排序，使用的内存大小由系统变量 Sort_buffer_size 决定，如果它的大小不够把所有的记录都读到内存中，MySQL 就会把每次在内存中排序的结果存到临时文件中，等 MySQL 找到所有记录之后，再把临时文件中的记录做一次排序。这再次排序就会增加 Sort_merge_passes。实际上，MySQL 会用另一个临时文件来存再次排序的结果，所以通常会看到 Sort_merge_passes 增加的数值是建临时文件数的两倍。因为用到了临时文件，所以速度可能会比较慢，增加 Sort_buffer_size 会减少 Sort_merge_passes 和 创建临时文件的次数。但盲目的增加 Sort_buffer_size 并不一定能提高速度，见 How fast can you sort data with MySQL?（引自http://qroom.blogspot.com/2007/09/mysql-select-sort.html）&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;另外，增加read_rnd_buffer_size(3.2.3是record_rnd_buffer_size)的值对排序的操作也有一点的好处，参见：http://www.mysqlperformanceblog.com/2007/07/24/what-exactly-is- read_rnd_buffer_size/&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;11.文件打开数(open_files)&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;open_files&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Open_files&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;821&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;variables&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;open_files_limit&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;open_files_limit&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;65535&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+------------------+-------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;比较合适的设置：Open_files / open_files_limit * 100% &amp;lt;= 75％&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;正常&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;12。 表锁情况&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;table_locks%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Table_locks_immediate&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;4257944&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Table_locks_waited&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;25182&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;Table_locks_immediate 表示立即释放表锁数，Table_locks_waited表示需要等待的表锁数，如果 Table_locks_immediate / Table_locks_waited &amp;gt; 5000，最好采用InnoDB引擎，因为InnoDB是行锁而MyISAM是表锁，对于高并发写入的应用InnoDB效果会好些.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;13. 表扫描情况&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;handler_read%&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------------+-----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------------+-----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Handler_read_first&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;108763&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Handler_read_key&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;92813521&lt;/span&gt;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Handler_read_next&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;486650793&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Handler_read_prev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;688726&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Handler_read_rnd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;9321362&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Handler_read_rnd_next&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;153086384&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+-----------------------+-----------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;各字段解释参见http://hi.baidu.com/thinkinginlamp/blog/item/31690cd7c4bc5cdaa144df9c.html，调出服务器完成的查询请求次数：&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;dp-highlighter&quot; id=&quot;&quot; style=&quot;background-color: white; font-family: Monaco, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, Consolas, &#39;Courier New&#39;, monospace; font-size: 12px; line-height: 25.200000762939453px; margin-left: 9px; overflow: auto; padding: 1px; width: 679px; word-break: break-all; word-wrap: break-word;&quot;&gt;
&lt;div class=&quot;bar&quot;&gt;
&lt;div class=&quot;tools&quot; style=&quot;font-weight: bold; margin: 0px; padding: 3px;&quot;&gt;
Java代码&amp;nbsp;&amp;nbsp;&lt;a href=&quot;&quot; style=&quot;color: #620091; text-decoration: underline;&quot; title=&quot;收藏这段代码&quot;&gt;&lt;img alt=&quot;收藏代码&quot; class=&quot;star&quot; src=&quot;http://lxneng.iteye.com/images/icon_star.png&quot; style=&quot;border: 0px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ol class=&quot;dp-j&quot; start=&quot;1&quot; style=&quot;border: 1px solid rgb(209, 215, 220); color: #2b91af; font-size: 1em; line-height: 1.4em; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px; padding: 2px 0px;&quot;&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;mysql&amp;gt;&amp;nbsp;show&amp;nbsp;global&amp;nbsp;status&amp;nbsp;like&amp;nbsp;&lt;span class=&quot;string&quot; style=&quot;color: blue;&quot;&gt;&#39;com_select&#39;&lt;/span&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Variable_name&amp;nbsp;|&amp;nbsp;Value&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&amp;nbsp;Com_select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&lt;span class=&quot;number&quot; style=&quot;color: #c00000;&quot;&gt;2693147&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: #fafafa; border-left-color: rgb(209, 215, 220); border-left-style: solid; border-left-width: 1px; font-size: 1em; line-height: 18px; margin: 0px 0px 0px 38px; padding: 0px 0px 0px 10px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;+---------------+---------+&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;计算表扫描率：&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;表扫描率 ＝ Handler_read_rnd_next / Com_select&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;br style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.200000762939453px;&quot;&gt;如果表扫描率超过4000，说明进行了太多表扫描，很有可能索引没有建好，增加read_buffer_size值会有一些好处，但最好不要超过8MB。&lt;/span&gt;</description><link>http://blog.chaiyalin.com/2014/02/mysql-show-status.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7007679638950378162.post-889379729891333905</guid><pubDate>Sat, 08 Feb 2014 06:18:00 +0000</pubDate><atom:updated>2014-02-08T19:40:37.752+08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">exclude</category><category domain="http://www.blogger.com/atom/ns#">inotify</category><category domain="http://www.blogger.com/atom/ns#">排除</category><category domain="http://www.blogger.com/atom/ns#">正则</category><category domain="http://www.blogger.com/atom/ns#">监控</category><title>inotifywait  exclude 排除指定后缀文件</title><description>inotifywait &amp;nbsp;exclude 排除指定后缀文件&lt;br /&gt;
&lt;br /&gt;
今天打算使用 inotify-tool 来对线上程序文件进行监控, 因为有些目录是缓存目录, 所以要进行排除, 同时还要排除一些指定的后缀的文件, 比如 .swp 等&lt;br /&gt;
&lt;br /&gt;
需要递归监控的目录为:　/tmp/inotify-test-dir&lt;br /&gt;
需要排除的目录为: &amp;nbsp; &amp;nbsp; &amp;nbsp;/tmp/inotify-test-dir/cache&lt;br /&gt;
需要排除特定后缀文件: &amp;nbsp;.log &amp;nbsp;.swp 文件&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
根据网上看的一些资料, 我先做了如下尝试:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
/usr/local/bin/inotifywait -mr -e close_write,modify,create,move,delete --exclude ^.*\.(log|swp)$ --exclude &quot;^/tmp/inotify-test-dir/cache&quot;&amp;nbsp;--timefmt %Y/%m/%d %H:%M --format %T %w%f %e /tmp/inotify-test-dir
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
发现无论如何改, 第一个排除指定后缀 .log 和 .swp 都不生效, 我以为是我写的正则有问题, 又修改了很多次, 还是不行. 没办法再次google, 最终还是让我发现了问题的所在, 原来 inotifywait 不支持两次 --exclude , 否则,后面的规则将覆盖前面的规则.&lt;br /&gt;
&lt;br /&gt;
明白问题的所在后, 再次修改:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
/usr/bin/inotifywait -mr -e modify,create,move,delete --exclude &#39;^/tmp/inotify-test-dir/(cache|(.*/*\.log|.*/*\.swp)$)&#39; --timefmt &#39;%Y/%m/%d %H:%M&#39; --format &#39;%T %w%f %e&#39; /tmp/inotify-test-dir
&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
这次ok 通过&lt;br /&gt;
&lt;br /&gt;
-----------&lt;br /&gt;
inotifywait 有&amp;nbsp;--fromfile 选项, 可以直接从文件中读入要监控的目录,和排除的目录. 在这里我使用 &amp;nbsp;--fromfile &#39;/tmp/inotify-file-list&#39; &amp;nbsp;选项&lt;br /&gt;
&lt;br /&gt;
/tmp/inotify-file-list 文件的内容如下:&lt;br /&gt;
&lt;br /&gt;
/tmp/inotify-test-dir&lt;br /&gt;
@/tmp/inotify-test-dir/cache&lt;br /&gt;
&lt;br /&gt;
以@开头的路径代表的是要排除的目录和文件,其他的为要监控的文件&lt;br /&gt;
&lt;br /&gt;
假如：我要递归监控　/tmp/inotify-test-dir　目录下的所有的所有的 .php 文件, 但是排除 /tmp/inotify-test-dir/cache 目录下的所有文件&lt;br /&gt;
&lt;br /&gt;
我就可以这样写&lt;br /&gt;
&lt;br /&gt;
/usr/bin/inotifywait -mr -e modify,create,move,delete --exclude ^.+\.[^php]$ --fromfile &#39;/tmp/inotify-file-list&#39; --timefmt &#39;%Y/%m/%d %H:%M&#39; --format &amp;nbsp;&#39;%T %w%f %e&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><link>http://blog.chaiyalin.com/2014/02/inotifywait-exclude.html</link><author>noreply@blogger.com (lin)</author><thr:total>0</thr:total></item></channel></rss>