Activity Stream
48,167 MEMBERS
62621 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member
    Website's:
    PornShareProject.org MidnightDesires.org

    Default help with "my.cnf" setup/config

    Can someone help me with "my.cnf" configuration?

    I had been playing around with this for the past few days and I cannot figure out what to do with it.

    My server keeps using swap space every 6-12 hours and I'm not sure how to configure this.

    Code: 
    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    max_connections = 500
    skip-locking
    key_buffer = 256M
    myisam_sort_buffer_size = 32M
    join_buffer_size = 1M
    read_buffer_size = 1M
    sort_buffer_size = 2M
    table_cache = 1024
    thread_cache_size = 16M
    interactive_timeout = 25
    wait_timeout = 1000
    connect_timeout = 10
    max_allowed_packet = 16M
    max_connect_errors = 10
    query_cache_limit = 1M
    query_cache_size = 32M
    query_cache_type = 1
    tmp_table_size = 16M
    max_heap_table_size = 16M
    #skip-innodb
    
    user=mysql
    local-infile=0
    # Default to using old password format for compatibility with mysql 3.x
    # clients (those using the mysqlclient10 compatibility package).
    old_passwords=1
    
    [mysqld_safe]
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    open_files_limit = 8192
    
    [isamchk]
    key_buffer = 256M
    sort_buffer = 256M
    read_buffer = 16M
    write_buffer = 16M
    
    [myisamchk]
    key_buffer = 256M
    sort_buffer = 256M
    read_buffer = 16M
    write_buffer = 16M
    [mysqlhotcopy]
    interactive-timeout
    
    skip-networking
    
    #log-slow-queries = /var/log/mysql-slow.log
    AlternativeWeb Reviewed by AlternativeWeb on . help with "my.cnf" setup/config Can someone help me with "my.cnf" configuration? I had been playing around with this for the past few days and I cannot figure out what to do with it. My server keeps using swap space every 6-12 hours and I'm not sure how to configure this. datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock max_connections = 500 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    vaporhostn.com
    lower the key_buffer and sort_buffer down to something like 128M or lower...

    If its only for one site you don't need to have it that high

  4.     
    #3
    Member
    Website's:
    solidservers.ca
    Hi there,

    Your max_connections also seems high. I would suggest you lower that value to something like 150. MySQL will set aside enough RAM to make use of those connections, so when you have the value set too high, you are doing more harm than good.

    Regards,
    Chris

  5.     
    #4
    Member
    Website's:
    PornShareProject.org MidnightDesires.org
    It's actually for 3 sites, but only one of them is really the resource hog.

    These are the changes I made and I'll let you guys know how it works out in a few hours. Let me know if I missed anything, thanks!


    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    max_connections = 150
    skip-locking
    key_buffer = 128M
    myisam_sort_buffer_size = 32M
    join_buffer_size = 1M
    read_buffer_size = 1M
    sort_buffer_size = 2M
    table_cache = 1024
    thread_cache_size = 16M
    interactive_timeout = 25
    wait_timeout = 1000
    connect_timeout = 10
    max_allowed_packet = 16M
    max_connect_errors = 10
    query_cache_limit = 1M
    query_cache_size = 32M
    query_cache_type = 1
    tmp_table_size = 16M
    max_heap_table_size = 16M
    #skip-innodb

    user=mysql
    local-infile=0
    # Default to using old password format for compatibility with mysql 3.x
    # clients (those using the mysqlclient10 compatibility package).
    old_passwords=1

    [mysqld_safe]
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    open_files_limit = 8192

    [isamchk]
    key_buffer = 128M
    sort_buffer = 128M

    read_buffer = 16M
    write_buffer = 16M

    [myisamchk]
    key_buffer = 128M
    sort_buffer = 128M

    read_buffer = 16M
    write_buffer = 16M
    [mysqlhotcopy]
    interactive-timeout

    skip-networking

    #log-slow-queries = /var/log/mysql-slow.log


    ---------- Post added at 12:21 AM ---------- Previous post was at 12:06 AM ----------





    I just noticed a few processes being marked as "defunct", but i'm not really sure how bad this can be.






  6.     
    #5
    Banned
    Website's:
    vaporhostn.com
    Defunct means a process that has quit aka a zombie process.

    Have you tried updating your kernel and software to a up2date software and kernel?

  7.     
    #6
    Member
    Website's:
    PornShareProject.org MidnightDesires.org
    Even with the new my.cnf settings, the server started to use swap space again.
    Could it be something else that maybe wrong?

    Quote Originally Posted by JamesVaporH View Post
    Defunct means a process that has quit aka a zombie process.

    Have you tried updating your kernel and software to a up2date software and kernel?
    I'm not even sure how to do that. What's the command to upgrade on centos?

  8.     
    #7
    Banned
    Website's:
    vaporhostn.com
    just run a full update
    Code: 
    yum update

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Hiring] someone to setup a website for me on "windows server 2008"
    By amartin99 in forum Services
    Replies: 6
    Last Post: 18th Jun 2012, 01:15 PM
  2. Config your MultiPOSTER now to use "303 Templates"
    By CyberAff in forum Webmaster Discussion
    Replies: 107
    Last Post: 15th Jan 2012, 08:51 AM
  3. "reply" to "create" and vice versa is post update?
    By Gene_Autry in forum Technical Help Desk Support
    Replies: 0
    Last Post: 16th Sep 2011, 04:37 PM
  4. Replies: 11
    Last Post: 13th Aug 2011, 04:14 PM
  5. Filesonic "counted downloads" or "Premium sales count" now?
    By kariofilis in forum File Host Discussion
    Replies: 15
    Last Post: 18th Jan 2011, 03:18 AM

Tags for this Thread

BE SOCIAL