您好,登錄后才能下訂單哦!
今天報警一條error:host xxxx has more lowmem_prunes,please add Memory...
這個報警是一個shell腳本寫的
Qcache_lowmem_prunes=`$Procedure_source -h$host -P$Port -uadmin -pxxxx -e"show status" | grep "Qcache_lowmem_prunes" | awk '{print $2}'` if [ $Qcache_lowmem_prunes -gt 700000000 ] then echo "$host has more lowmem_prunes,please add Memory" | mail -s "$host has more lowmem_prunes,now lowmem_prunes is $Qcache_lowmem_prunes `date +"%R %F"`" $maillist else echo "$host lowmem_prunes ok" fi
官方文檔對 Qcache_lowmem_prunes
的解釋:
The number of queries that were deleted from the query cache because of low memory.
大概意思是cache池滿了,所以導(dǎo)致的query修剪。
結(jié)合下面兩篇文章,做了如下決定:改my.cnf文件,query_cache_type=1->0 query_cache_size=1G->0
務(wù)必重啟
參考:http://t.cn/RAF4d7z http://t.cn/RAF4d7Z
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。