亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
12下一頁(yè)
最近訪問(wèn)板塊 發(fā)新帖
查看: 3897 | 回復(fù): 17
打印 上一主題 下一主題

Open_tables與系統(tǒng)文件描述符的關(guān)系 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-06-30 15:53 |只看該作者 |倒序?yàn)g覽
show status like '%open%';中查看Open_tables  =40000,但用系統(tǒng)命令查看 lsof卻只有3000多,這是為什么呢

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2008-06-30 17:38 |只看該作者

回復(fù) #1 net_xiaobao 的帖子

lsof  是以root權(quán)限執(zhí)行的嗎???

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-07-01 10:05 |只看該作者
show global status like '%open%';

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2008-07-01 15:09 |只看該作者

回復(fù) #2 7islands 的帖子

是啊

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2008-07-01 19:10 |只看該作者
show  global status like 'open_tables'; 和 show  status like 'open_tables'; 的值應(yīng)該是一樣的   

這里的open_tables的大小應(yīng)該是 lsof 中mysql的 1/2 左右, 如果是myisam引擎的話  

把你lsof的執(zhí)行結(jié)果和show status貼出來(lái)看看

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2008-07-02 10:09 |只看該作者
show  global status like 'open_tables'; 和 show  status like 'open_tables';
The two is different with each other.
The first is global level,the other is session level.

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2008-07-02 10:30 |只看該作者
mysql> show status like 'open%tables';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Open_tables   | 6     |
| Opened_tables | 0     |
+---------------+-------+
2 rows in set (0.41 sec)

mysql> show global status like 'open%tables';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Open_tables   | 6     |
| Opened_tables | 12    |
+---------------+-------+
2 rows in set (0.00 sec)

mysql> show variables like 'version';
+---------------+------------+
| Variable_name | Value      |
+---------------+------------+
| version       | 5.0.60-log |
+---------------+------------+

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2008-07-02 11:46 |只看該作者
原帖由 7islands 于 2008-7-1 19:10 發(fā)表
show  global status like 'open_tables'; 和 show  status like 'open_tables'; 的值應(yīng)該是一樣的   

這里的open_tables的大小應(yīng)該是 lsof 中mysql的 1/2 左右, 如果是myisam引擎的話  

把你lsof的執(zhí)行 ...




我剛才查了一下系統(tǒng),兩個(gè)值是一樣的。open_tables的大小應(yīng)該是 lsof 中mysql的 1/2 左右,這個(gè)難理解,能解釋一下嗎

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2008-07-02 12:20 |只看該作者
lsof -c mysqld   可以看到 *.MYI  *MYD  和別的庫(kù)文件之類(lèi)的   一個(gè)myisam表一般要打開(kāi)  *.MYI  *MYD

[ 本帖最后由 7islands 于 2008-7-2 12:22 編輯 ]

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2008-07-02 14:17 |只看該作者
那現(xiàn)在lsof看到有3000多個(gè),但Open_tables  =40000,這又是什么呢
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP