mysql process (killing my server)

Discussion in 'MySQL' started by 1ahosting, Sep 19, 2006.

  1. #1
    Hello,
    One of my site using lot of mysql process or i should say server process. I just checked, right now its 13.89%. It starts showing red icon in whm for cpu.

    Never happened this before, its happening after i opened high traffic site to this server.

    It uses too many queries at once. What is the best solution for this? Any suggestion would help.
     
    1ahosting, Sep 19, 2006 IP
  2. VONRAT

    VONRAT Banned

    Messages:
    181
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    MySql Query Cache

    SET GLOBAL query_cache_size = <value>

    i dont know what else could help you :)
     
    VONRAT, Sep 20, 2006 IP
  3. ThomasNederman

    ThomasNederman Peon

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It could help to create indexes on your table, querys will run faster in this case.

    http://dev.mysql.com/doc/refman/5.0/en/create-index.html

    You can also try to remove some joins in the SQL if possible, there should never be more then 3 joins in one question (however, i always break this rule, but i dont have a massive traffic site)
     
    ThomasNederman, Sep 20, 2006 IP
  4. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can limit the no. of queries for a particular DB by using
    "max_questions" .........
    Search for it in mysql.com & you will get the result.
     
    Fastian, Sep 20, 2006 IP
  5. 1ahosting

    1ahosting Peon

    Messages:
    199
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i just searched on mysql.com, but it says it will limit the number of times perticular user can connect. That wouldnt solve the problem.
     
    1ahosting, Sep 20, 2006 IP
  6. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #6
    SoKickIt, Sep 20, 2006 IP