Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] discuz mysql资源占用过高导致拒绝服务,帮我优化一下配置文件!help me

[复制链接]
xhw925 发表于 2009-8-5 10:14:06 | 显示全部楼层 |阅读模式
论坛每天3100左右帖子,IP10000, pv 11万左右,,mysql 启动占用很是好内存,然后慢慢升高,导致不能服务了,,
  1. [mysqld]
  2. datadir=/var/lib/mysql
  3. socket=/var/lib/mysql/mysql.sock
  4. user=mysql

  5. skip-locking
  6. key_buffer = 256M
  7. max_allowed_packet = 1M
  8. table_cache = 256
  9. sort_buffer_size = 1M
  10. read_buffer_size = 1M
  11. read_rnd_buffer_size = 4M
  12. myisam_sort_buffer_size = 64M
  13. thread_cache_size = 8
  14. query_cache_size= 16M
  15. # Try number of CPU's*2 for thread_concurrency
  16. wait_timeout = 10
  17. interactive_timeout = 10
  18. max_connections = 900
  19. max_connect_errors = 10000000
  20. #thread_concurrency = 8


  21. # Default to using old password format for compatibility with mysql 3.x
  22. # clients (those using the mysqlclient10 compatibility package).
  23. old_passwords=1

  24. [mysqld_safe]
  25. log-error=/var/log/mysqld.log
  26. pid-file=/var/run/mysqld/mysqld.pid

  27. [mysqldump]
  28. quick
  29. max_allowed_packet = 16M

  30. [mysql]
  31. no-auto-rehash
  32. # Remove the next comment character if you are not familiar with SQL
  33. #safe-updates

  34. [isamchk]
  35. key_buffer = 128M
  36. sort_buffer_size = 128M
  37. read_buffer = 2M
  38. write_buffer = 2M

  39. [myisamchk]
  40. key_buffer = 128M
  41. sort_buffer_size = 128M
  42. read_buffer = 2M
  43. write_buffer = 2M

  44. [mysqlhotcopy]
  45. interactive-timeout
复制代码
mslxd 发表于 2009-8-5 10:35:18 | 显示全部楼层
进来羡慕一下,,,,,,1w ip。。
回复

使用道具 举报

mmmmd 发表于 2009-8-5 14:36:41 | 显示全部楼层
期待解决办法。。













u88调侃杂谈
回复

使用道具 举报

 楼主| xhw925 发表于 2009-8-5 14:41:27 | 显示全部楼层
可惜都没人来回复解决方案啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-17 15:45 , Processed in 0.022568 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表