zoukankan      html  css  js  c++  java
  • IEE修改最大连接数

    IEE版本:5.1.40
    1.查看当前IEE最大连接数(缺省值)
    mysql> show variables like 'max_connections';
    +-----------------+-------+
    | Variable_name   | Value |
    +-----------------+-------+
    | max_connections | 151   |
    +-----------------+-------+
    1 row in set (0.00 sec)
     
    2.停库,修改最大连接数为300
    常规停库:
    #/etc/init.d/mysql-ib stop
    常规停不了的话就只能强制杀进程:
    # ps -ef|grep mysql|grep -v grep|awk '{print $2}'|xargs kill -9 
    # vi /etc/my-ib.cnf  加入配置max_connections = 300
    # Example Infobright config file  (mysql server).
    # In this file, you can use all long options that mysql supports.
    # If you want to know which options a program supports, run the program
    # with the "--help" option.
    
    # The following options will be passed to all MySQL clients
    [client]
    #password       = your_password
    port            = 5029
    socket          = /tmp/mysql-ib.sock
    loose-local-infile=1
    
    # Here follows entries for some specific programs
    
    # The MySQL server
    [mysqld]
    basedir = /usr/local/infobright-4.0.6-x86_64
    datadir = /usr2/iee/data
    log-error = /usr2/iee/data/bh.err
    log-output = FILE
    #general_log=1
    #general_log_file=path-of-datadir/general_query.log
    #slow_query_log=1
    #slow_query_log_file=path-of-datadir/slow_query.log
    max_connections = 300
    port            = 5029
    socket          = /tmp/mysql-ib.sock
    skip-locking
    key_buffer = 16M
    max_allowed_packet = 500M
    table_cache = 16
    sort_buffer_size = 1M
    read_buffer_size = 1M
    read_rnd_buffer_size = 4M
    myisam_sort_buffer_size = 8M
    net_buffer_length = 8K
    thread_cache_size = 32
    thread_stack = 512K
    query_cache_size = 8M
    query_cache_type=0
    # Try number of CPU cores*4 for thread_concurrency
    thread_concurrency = 8
    #core-file
    
    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    "/etc/my-ib.cnf" 90L, 2112C written 
     
    3.启动数据库,查看最大连接数已成功修改为300
    #/etc/init.d/mysql-ib start
    mysql> show variables like 'max_connections';
    +-----------------+-------+
    | Variable_name   | Value |
    +-----------------+-------+
    | max_connections | 300   |
    +-----------------+-------+
    1 row in set (0.00 sec)
    mysql>
  • 相关阅读:
    由博客园页面样式挖出的一款心机软件
    SQL Server 各任务所维护
    [转载]SQL Server查找包含某关键字的存储过程3种方法
    Hibernate简单注解开发和事务处理(四)
    Hibernate实现简单的CRUD操作和常见类(三)
    Hibernate中hibernate.cfg.xml文件和Xxx.hbm.xml文件的详细解释(二)
    Hibernate开发环境的简单搭建及常见错误(一)
    Struts2配置异常错误处理(十六)
    Struts2实现类型转换器(十五)
    Struts2实现JSON和Ajax操作(十四)
  • 原文地址:https://www.cnblogs.com/jyzhao/p/3949363.html
Copyright © 2011-2022 走看看