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

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

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 8423 | 回復(fù): 7
打印 上一主題 下一主題

open_files_limit加大不了,只到65535 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2010-08-20 22:27 |只看該作者 |倒序?yàn)g覽
本帖最后由 justin033 于 2010-08-20 23:04 編輯

背景:我們這邊大量的分庫(kù)分表,總共354個(gè)庫(kù),表總共7W多個(gè),3分1是MyISAM表。

系統(tǒng)版本:CentOS release 5.4 (Final) MySQL 版本5.1.39
  1. [root@~]# find /data02/mysql/ -name "*.frm" | wc -l
  2. 70468
復(fù)制代碼
sysctl.conf和limit.conf的配置,如下:
  1. # Add By Justin
  2. vm.swappiness = 10

  3. fs.file-max = 204800
復(fù)制代碼
  1. # Add By Justin
  2. *               soft     nofile         204800
  3. *               hard     nofile         204800
復(fù)制代碼
  1. [root@~]# ulimit -a
  2. core file size          (blocks, -c) 0
  3. data seg size           (kbytes, -d) unlimited
  4. scheduling priority             (-e) 0
  5. file size               (blocks, -f) unlimited
  6. pending signals                 (-i) 81920
  7. max locked memory       (kbytes, -l) 32
  8. max memory size         (kbytes, -m) unlimited
  9. open files                      (-n) 204800
  10. pipe size            (512 bytes, -p) 8
  11. POSIX message queues     (bytes, -q) 819200
  12. real-time priority              (-r) 0
  13. stack size              (kbytes, -s) 10240
  14. cpu time               (seconds, -t) unlimited
  15. max user processes              (-u) 81920
  16. virtual memory          (kbytes, -v) unlimited
  17. file locks                      (-x) unlimited
  18. [root@~]# cat /proc/sys/fs/file-nr
  19. 4590    0       204800
復(fù)制代碼
用戶MySQL的環(huán)境設(shè)置:
  1. [root@~]# su - mysql
  2. [mysql@~]$ whoami
  3. mysql
  4. [mysql@~]$ ulimit -a
  5. core file size          (blocks, -c) 0
  6. data seg size           (kbytes, -d) unlimited
  7. scheduling priority             (-e) 0
  8. file size               (blocks, -f) unlimited
  9. pending signals                 (-i) 81920
  10. max locked memory       (kbytes, -l) 32
  11. max memory size         (kbytes, -m) unlimited
  12. open files                      (-n) 204800
  13. pipe size            (512 bytes, -p) 8
  14. POSIX message queues     (bytes, -q) 819200
  15. real-time priority              (-r) 0
  16. stack size              (kbytes, -s) 10240
  17. cpu time               (seconds, -t) unlimited
  18. max user processes              (-u) 81920
  19. virtual memory          (kbytes, -v) unlimited
  20. file locks                      (-x) unlimited
復(fù)制代碼

但是
:mysql里open_files_limit只到65535,沒達(dá)到我設(shè)置的值,如下:
  1. "Variable_name","Value"
  2. "open_files_limit","65535"
復(fù)制代碼
主機(jī)也重啟了,mysql的open_files_limit的值還沒超過65535。。。有人遇到過沒。。。。。。。。。。。。。。。。。。。。。。。。

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2010-08-20 23:02 |只看該作者
回復(fù) 1# justin033


    peisai,補(bǔ)充下mysql error log的記錄:
  1. 100820 18:31:30 mysqld_safe mysqld from pid file /data02/mysql/db102.greenemls.org.pid ended
  2. 100820 18:32:50 mysqld_safe Starting mysqld daemon with databases from /data02/mysql
  3. 100820 18:32:50 [Warning] Could not increase number of max_open_files to more than 65535 (request: 102561)
  4. 100820 18:32:50 [Note] Plugin 'FEDERATED' is disabled.
  5. 100820 18:32:50 [Note] Plugin 'ndbcluster' is disabled.
  6. InnoDB: The InnoDB memory heap is disabled
  7. InnoDB: Mutexes and rw_locks use GCC atomic builtins.
  8. 100820 18:32:50  InnoDB: highest supported file format is Barracuda.
  9. 100820 18:32:51 InnoDB Plugin 1.0.4-7 started; log sequence number 7203394656
  10. 100820 18:32:51 [Note] Event Scheduler: Loaded 0 events
  11. 100820 18:32:51 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
  12. Version: '5.1.39-Community-log'  socket: '/data02/mysql/mysql.sock'  port: 3306  5.1.39 Source
  13. 100820 18:32:51 [Note] Event Scheduler: scheduler thread started with id 1
  14. 100820 18:33:30 [Note] /usr/local/mysql/libexec/mysqld: Normal shutdown

  15. 100820 18:33:30 [Note] Event Scheduler: Killing the scheduler thread, thread id 1
  16. 100820 18:33:30 [Note] Event Scheduler: Waiting for the scheduler thread to reply
  17. 100820 18:33:30 [Note] Event Scheduler: Stopped
  18. 100820 18:33:30 [Note] Event Scheduler: Purging the queue. 0 events
  19. 100820 18:33:30  InnoDB: Starting shutdown...
  20. 100820 18:33:32  InnoDB: Shutdown completed; log sequence number 7203394666
  21. 100820 18:33:32 [Warning] Forcing shutdown of 2 plugins
  22. 100820 18:33:32 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

  23. 100820 18:33:32 mysqld_safe mysqld from pid file /data02/mysql/db102.greenemls.org.pid ended
  24. 100820 18:37:15 mysqld_safe Starting mysqld daemon with databases from /data02/mysql
  25. 100820 18:37:16 [Warning] Could not increase number of max_open_files to more than 65535 (request: 102561)
  26. 100820 18:37:16 [Note] Plugin 'FEDERATED' is disabled.
  27. 100820 18:37:16 [Note] Plugin 'ndbcluster' is disabled.
  28. InnoDB: The InnoDB memory heap is disabled
  29. InnoDB: Mutexes and rw_locks use GCC atomic builtins.
  30. 100820 18:37:17  InnoDB: highest supported file format is Barracuda.
  31. 100820 18:37:20 InnoDB Plugin 1.0.4-7 started; log sequence number 7203394666
  32. 100820 18:37:21 [Note] Event Scheduler: Loaded 0 events
  33. 100820 18:37:21 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
  34. Version: '5.1.39-Community-log'  socket: '/data02/mysql/mysql.sock'  port: 3306  5.1.39 Source
  35. 100820 18:37:21 [Note] Event Scheduler: scheduler thread started with id 1
  36. 100820 18:37:52 mysqld_safe A mysqld process already exists
  37. [root@db102 ~]#
復(fù)制代碼

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2010-08-20 23:10 |只看該作者
設(shè)置成0好了
設(shè)置成0即不更改系統(tǒng)中的配置數(shù)
open_files_limit

Command-Line Format --open-files-limit=#
Config-File Format open-files-limit
Option Sets Variable Yes, open_files_limit
Variable Name open_files_limit
Variable Scope Global
Dynamic Variable No
  Permitted Values  
Type numeric
Default 0
Range 0-65535

The number of files that the operating system permits mysqld to open. This is the real value permitted by the system and might be different from the value you gave using the --open-files-limit option to mysqld or mysqld_safe. The value is 0 on systems where MySQL can't change the number of open files.

論壇徽章:
59
2015七夕節(jié)徽章
日期:2015-08-24 11:17:25ChinaUnix專家徽章
日期:2015-07-20 09:19:30每周論壇發(fā)貼之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38榮譽(yù)版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年紀(jì)念徽章
日期:2015-07-20 11:05:27IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-07-20 11:05:34操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:36程序設(shè)計(jì)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:40數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2015-07-20 11:05:432015年辭舊歲徽章
日期:2015-07-20 11:05:44
4 [報(bào)告]
發(fā)表于 2010-08-20 23:13 |只看該作者
好像挺多現(xiàn)在都是65535這個(gè)數(shù)字。

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2010-08-20 23:19 |只看該作者
看來(lái)是我錯(cuò)了,:wink:,認(rèn)真看了文檔的open_files_limit說明,最大只能65535。。。。。。杯具了,難道要改源代碼

論壇徽章:
8
綜合交流區(qū)版塊每周發(fā)帖之星
日期:2015-12-02 15:03:53數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34酉雞
日期:2013-10-19 10:17:1315-16賽季CBA聯(lián)賽之北京
日期:2017-03-06 15:12:44
6 [報(bào)告]
發(fā)表于 2010-08-21 09:37 |只看該作者
看來(lái)是我錯(cuò)了,,認(rèn)真看了文檔的open_files_limit說明,最大只能65535。。。。。。杯具了,難道要改源 ...
justin033 發(fā)表于 2010-08-20 23:19



    估計(jì)得改源代碼,還要注意是否影響其他的,避免crash

論壇徽章:
9
每日論壇發(fā)貼之星
日期:2016-01-04 06:20:00數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2016-01-04 06:20:00每日論壇發(fā)貼之星
日期:2016-01-04 06:20:00數(shù)據(jù)庫(kù)技術(shù)版塊每日發(fā)帖之星
日期:2016-01-04 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-04 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-01-04 06:20:00綜合交流區(qū)版塊每日發(fā)帖之星
日期:2016-01-04 06:20:00綜合交流區(qū)版塊每日發(fā)帖之星
日期:2016-01-04 06:20:00數(shù)據(jù)庫(kù)技術(shù)版塊每周發(fā)帖之星
日期:2016-03-07 16:30:25
7 [報(bào)告]
發(fā)表于 2010-08-23 09:19 |只看該作者
http://bugs.mysql.com/bug.php?id=47095
他的意思是,如果設(shè)置為0,那么就會(huì)使用ulimit -n 的值,也就不會(huì)有65535的限制。popgo可以試下~

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2010-09-09 16:28 |只看該作者
設(shè)置open_files_limit=0,mysqld起不來(lái),而且error log不報(bào)錯(cuò)
您需要登錄后才可以回帖 登錄 | 注冊(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)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP