Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    50c
    50c is offline
    Member
    Join Date
    Jun 2004
    Location
    UK
    Posts
    29

    Angry please help - mysql - high cpu usage!!

    Hi,
    im having some problems with mysql.
    After i restart mysql, the CPU load is ok, after some time 10-15 minutes the load starts increasing... I have checked the processes and this is the problem:

    /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/dualxeon.compacthost.com.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock

    This process eats about 90% of CPU, after some time it gets back to normal.. i have no idea what it could be..

    Here is my my.cnf:

    # The MySQL server
    [mysqld]
    port = 3306
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    skip-locking
    skip-innodb
    query_cache_limit=1M
    query_cache_size=64M
    query_cache_type=1

    max_connections = 448
    max_user_connections = 448

    interactive_timeout=6
    wait_timeout=6
    connect_timeout=6

    thread_cache_size=384
    key_buffer=96M

    max_allowed_packet=1M
    table_cache=512
    record_buffer=1M
    sort_buffer_size=1M
    read_buffer_size=1M

    thread_concurrency=4
    myisam_sort_buffer_size=64M
    server-id=1

    [mysqldump]
    quick
    max_allowed_packet = 16M

    [mysql]
    no-auto-rehash

    [isamchk]
    key_buffer=64M
    sort_buffer=64M
    read_buffer=2M
    write_buffer=2M

    [mysqlhotcopy]
    interactive-timeout

    The machine is a DualXeon 2,4GHZ with 2 GB of ram...

    Please Help..
    Thanks

    Mike

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by 50c
    im having some problems with mysql.
    After i restart mysql, the CPU load is ok, after some time 10-15 minutes the load starts increasing... I have checked the processes and this is the problem:

    /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/dualxeon.compacthost.com.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock

    This process eats about 90% of CPU, after some time it gets back to normal.. i have no idea what it could be.
    The problem is NOT MySQL itself. You need to see who is exahusting many concurrnet connections causing high server load. Use mytop to monitor MySQL processes.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 02-11-2010, 01:58 AM
  2. MySQL - high cpu usage
    By hackboys in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 03-10-2009, 12:30 AM
  3. MySQL High CPU Usage
    By sparek-3 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-22-2008, 12:04 PM
  4. mysql - high cpu usage!
    By kaeonthibe in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-11-2006, 10:24 AM
  5. mySQL has High CPU Usage
    By comcage in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-05-2003, 02:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube